Skip to content

Commit 2846779

Browse files
authored
🔨 fix(AzureOpenAI): o1 model, stream parameter check (danny-avila#4381)
1 parent 873e047 commit 2846779

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/app/clients/OpenAIClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,7 @@ ${convo}
13091309
/** @type {(value: void | PromiseLike<void>) => void} */
13101310
let streamResolve;
13111311

1312-
if (modelOptions.stream && /\bo1\b/i.test(modelOptions.model)) {
1312+
if (modelOptions.stream && this.isO1Model) {
13131313
delete modelOptions.stream;
13141314
delete modelOptions.stop;
13151315
}

0 commit comments

Comments
 (0)