Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Live calls: leave session.client out of Azure session requests
prantikmedhiee6507f7723a
diff --git a/server/live-call.test.ts b/server/live-call.test.tsindex bb090dee6b..a7a67cc6f4 100644--- a/server/live-call.test.ts+++ b/server/live-call.test.ts@@ -290,6 +290,7 @@ describe("createLiveSession on Azure", () => {const body = JSON.parse(String(init?.body));expect(body.session.model).toBe("live-prod");expect(body.session.delegation).toEqual({ type: "client" });+ expect(body.session.client).toBeUndefined();expect(String(init?.body)).not.toContain("azure-secret");});it("names Azure in its errors", async () => {diff --git a/server/live-call.ts b/server/live-call.tsindex 91e8e6f8d2..14f51784f2 100644--- a/server/live-call.ts+++ b/server/live-call.ts@@ -215,7 +215,8 @@ export async function createLiveSession(input: CreateLiveSessionInput): Promise<instructions: liveInstructions(input.bot, { cloudHome: input.cloudHome }),delegation: { type: "client" },audio: { output: { voice: liveVoice(input.voice) } },- client: { data_channel: LIVE_DATA_CHANNEL },+ // Azure's GPT-Live refuses `session.client` ("Unknown parameter"), so its data channel keeps Azure's default events.+ ...(endpoint.provider === "azure" ? {} : { client: { data_channel: LIVE_DATA_CHANNEL } }),...(initialInput.length ? { input: initialInput } : {}),},transport: { type: "webrtc", sdp: input.sdp },diff --git a/src/components/LiveProviderSettings.tsx b/src/components/LiveProviderSettings.tsxindex ee27ac3f80..af16239e10 100644--- a/src/components/LiveProviderSettings.tsx+++ b/src/components/LiveProviderSettings.tsx@@ -35,7 +35,7 @@ export function LiveProviderSettings() {return (<div className="flex flex-col gap-2"><label className="flex items-center justify-between gap-2">- <span className="text-ink-secondary">{t("call.live.provider")}</span>+ <span className="text-[13px] text-ink-secondary">{t("call.live.provider")}</span><Selectsize="sm"value={provider}