mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-02 10:29:02 +08:00
parent
3c12b0d1a3
commit
01fb9633ea
@ -197,7 +197,12 @@ export default class OpenAIProvider extends BaseProvider {
|
|||||||
userMessages.push(await this.getMessageParam(message, model))
|
userMessages.push(await this.getMessageParam(message, model))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const isOpenAIo1 = this.isOpenAIo1(model)
|
||||||
|
|
||||||
const isSupportStreamOutput = () => {
|
const isSupportStreamOutput = () => {
|
||||||
|
if (isOpenAIo1) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
return streamOutput
|
return streamOutput
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -327,10 +332,15 @@ export default class OpenAIProvider extends BaseProvider {
|
|||||||
]
|
]
|
||||||
: [{ role: 'user', content: assistant.prompt }]
|
: [{ role: 'user', content: assistant.prompt }]
|
||||||
|
|
||||||
|
const isOpenAIo1 = this.isOpenAIo1(model)
|
||||||
|
|
||||||
const isSupportedStreamOutput = () => {
|
const isSupportedStreamOutput = () => {
|
||||||
if (!onResponse) {
|
if (!onResponse) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
if (isOpenAIo1) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user