Revert "feat: allow o1 streaming"
This reverts commit d4848faa5aad692157844c640d193bce86cbeec3.
This commit is contained in:
parent
3d9d5b6263
commit
f489b034b5
@ -197,7 +197,12 @@ export default class OpenAIProvider extends BaseProvider {
|
||||
userMessages.push(await this.getMessageParam(message, model))
|
||||
}
|
||||
|
||||
const isOpenAIo1 = this.isOpenAIo1(model)
|
||||
|
||||
const isSupportStreamOutput = () => {
|
||||
if (isOpenAIo1) {
|
||||
return false
|
||||
}
|
||||
return streamOutput
|
||||
}
|
||||
|
||||
@ -327,10 +332,15 @@ export default class OpenAIProvider extends BaseProvider {
|
||||
]
|
||||
: [{ role: 'user', content: assistant.prompt }]
|
||||
|
||||
const isOpenAIo1 = this.isOpenAIo1(model)
|
||||
|
||||
const isSupportedStreamOutput = () => {
|
||||
if (!onResponse) {
|
||||
return false
|
||||
}
|
||||
if (isOpenAIo1) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user