Skip to content

Commit

Permalink
🔨 fix(AzureOpenAI): o1 model, stream parameter check (danny-avila#4381
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ABHIJITH-EA authored Oct 10, 2024
1 parent 873e047 commit 2846779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/app/clients/OpenAIClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -1309,7 +1309,7 @@ ${convo}
/** @type {(value: void | PromiseLike<void>) => void} */
let streamResolve;

if (modelOptions.stream && /\bo1\b/i.test(modelOptions.model)) {
if (modelOptions.stream && this.isO1Model) {
delete modelOptions.stream;
delete modelOptions.stop;
}
Expand Down

0 comments on commit 2846779

Please sign in to comment.