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
This commit is contained in:
Duong M. CUONG 2025-03-31 03:12:18 +00:00 committed by GitHub
parent 9a13041186
commit af6753608f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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",