mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 03:10:08 +08:00
fix: add blank lines between reasoning summary parts (#6827)
Co-authored-by: Chen Tao <70054568+eeee0717@users.noreply.github.com>
This commit is contained in:
parent
cb128f51cf
commit
9dcd4d299e
@ -571,6 +571,16 @@ export abstract class BaseOpenAIProvider extends BaseProvider {
|
||||
if (time_first_token_millsec === 0) {
|
||||
time_first_token_millsec = new Date().getTime()
|
||||
}
|
||||
// Insert separation between summary parts
|
||||
if (thinkContent.length > 0) {
|
||||
const separator = '\n\n'
|
||||
onChunk({
|
||||
type: ChunkType.THINKING_DELTA,
|
||||
text: separator,
|
||||
thinking_millsec: new Date().getTime() - time_first_token_millsec
|
||||
})
|
||||
thinkContent += separator
|
||||
}
|
||||
break
|
||||
case 'response.reasoning_summary_text.delta':
|
||||
onChunk({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user