Browse Source

Remove hard-coded o3-mini model when streaming is enabled, allowing custom o3-mini-<reasoning> model (#2134)

Remove hard-coded o3-mini model when streaming is enabled
Duong M. CUONG 11 months ago
parent
commit
af6753608f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/api/providers/openai.ts

+ 1 - 1
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",