mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-08 22:39:36 +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) {
|
if (time_first_token_millsec === 0) {
|
||||||
time_first_token_millsec = new Date().getTime()
|
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
|
break
|
||||||
case 'response.reasoning_summary_text.delta':
|
case 'response.reasoning_summary_text.delta':
|
||||||
onChunk({
|
onChunk({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user