From af6753608f1ef86aa5dcf83907c2a7e60a24b1b7 Mon Sep 17 00:00:00 2001 From: "Duong M. CUONG" Date: Mon, 31 Mar 2025 03:12:18 +0000 Subject: [PATCH] Remove hard-coded o3-mini model when streaming is enabled, allowing custom o3-mini- model (#2134) Remove hard-coded o3-mini model when streaming is enabled --- src/api/providers/openai.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/providers/openai.ts b/src/api/providers/openai.ts index bc57591c01..fa71f67849 100644 --- a/src/api/providers/openai.ts +++ b/src/api/providers/openai.ts @@ -234,7 +234,7 @@ export class OpenAiHandler extends BaseProvider implements SingleCompletionHandl ): ApiStream { if (this.options.openAiStreamingEnabled ?? true) { const stream = await this.client.chat.completions.create({ - model: "o3-mini", + model: modelId, messages: [ { role: "developer",