mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 10:40:07 +08:00
fix: openai api client (#8154)
This commit is contained in:
parent
fa17c70d85
commit
06baaa1522
@ -717,7 +717,12 @@ export class OpenAIAPIClient extends OpenAIBaseClient<
|
||||
contentSource = choice.message
|
||||
}
|
||||
|
||||
if (!contentSource) continue
|
||||
if (!contentSource) {
|
||||
if ('finish_reason' in choice && choice.finish_reason) {
|
||||
emitCompletionSignals(controller)
|
||||
}
|
||||
continue
|
||||
}
|
||||
|
||||
const webSearchData = collectWebSearchData(chunk, contentSource, context)
|
||||
if (webSearchData) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user