feat: multiple scenes
This commit is contained in:
@@ -91,12 +91,13 @@ export function useRunStream() {
|
||||
export async function createAndStreamRun(
|
||||
recollectionId: string,
|
||||
graph: { nodes: unknown[]; edges: unknown[] },
|
||||
connectToRun: (runId: string) => void
|
||||
connectToRun: (runId: string) => void,
|
||||
sceneId?: string
|
||||
): Promise<void> {
|
||||
const res = await fetch('/api/runs', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ recollectionId, graph }),
|
||||
body: JSON.stringify({ recollectionId, sceneId, graph }),
|
||||
})
|
||||
|
||||
if (!res.ok) {
|
||||
|
||||
Reference in New Issue
Block a user