Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Merge #4422 at 73334f8b2

milind-soni8ab5c6d053dc
diff --cc server/index.ts
index 7b429c62f6,e7d8adf833..da885992d6
--- a/server/index.ts
+++ b/server/index.ts
@@@ -3958,7 -3958,7 +3958,7 @@@ const handoffTicks = createHandoffTicks
standingThreadOf: botId => botMainThread(botId) ?? store.bot(botId)?.threadId,
botOfThread: threadId => store.botByThread(threadId)?.id,
},
- host: { holdReason: (node) => queuedStatus(node), statusReply: (node, prompt, signal) => sideJobs.text("status-reply", node.botId)?.generateText(prompt, { signal, timeoutMs: STATUS_REPLY_TIMEOUT_MS }) ?? Promise.resolve(undefined),
- host: { statusReply: (requester, prompt, signal) => sideJobs.text("status-reply", requester)?.generateText(prompt, { signal, timeoutMs: STATUS_REPLY_TIMEOUT_MS }) ?? Promise.resolve(undefined),
++ host: { holdReason: (node) => queuedStatus(node), statusReply: (requester, prompt, signal) => sideJobs.text("status-reply", requester)?.generateText(prompt, { signal, timeoutMs: STATUS_REPLY_TIMEOUT_MS }) ?? Promise.resolve(undefined),
validate: (node, parent) => node.mode === "notify" && node.status !== "queued" ? undefined
: !node.parentId && node.groupId ? roomRootProblem(node)
: roomHandoffProblem(node, parent) ??