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:
Murphy 2025-06-05 15:39:56 +08:00 committed by GitHub
parent cb128f51cf
commit 9dcd4d299e

View File

@ -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({