Skip to content

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

Merge pull request #6124 from davidneyra2804/feature/minimax-thinking-controls

milind-soni16b2fe55efb7
diff --cc server/drivers/openai-chat.ts
index d84ef94486,a606395efd..0612a6a93e
--- a/server/drivers/openai-chat.ts
+++ b/server/drivers/openai-chat.ts
@@@ -284,8 -288,8 +288,8 @@@ export function createOpenAIChatRuntime
const payload = JSON.stringify(route === "responses"
? responsesRequest({ model: served, messages, tools, replay: (message) => responseOutputs.get(message), summaries: routes.summaries(model), effort: options.requestBody(served, messages, stream, variant).reasoning_effort })
: {
- ...options.requestBody(served, messages, stream, variant),
+ ...options.requestBody(served, messages, stream, variant, threadId),
- ...(route === "chat-reasoning-off" ? { reasoning_effort: "none" } : {}),
+ ...(route === "chat-reasoning-off" ? (options.reasoningOffBody?.(served) ?? { reasoning_effort: "none" }) : {}),
...(tools.length ? { tools } : {}),
});
const send = options.timeoutMs > FETCH_LIMIT_MS ? fetchPastLimit : fetch;