🔨 fix(AzureOpenAI): o1 model, stream parameter check (#4381)

This commit is contained in:
Abhijith E A 2024-10-10 20:40:15 +05:30 committed by GitHub
parent 873e0473ec
commit 2846779603
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}