fix: AI_TypeValidationError when calling Ling-1T model (#10622)

This commit is contained in:
ABucket 2025-10-11 12:45:00 +08:00 committed by kangfenmao
parent f8fadcc73f
commit 45f033ff4e

View File

@ -41,7 +41,7 @@ export class StreamHandler {
this.usage.total_tokens += completionChunk.usage.total_tokens || 0 this.usage.total_tokens += completionChunk.usage.total_tokens || 0
} }
context = chunk.choices context = chunk.choices
.map((choice) => { ?.map((choice) => {
if (!choice.delta) { if (!choice.delta) {
return '' return ''
} else if ('reasoning_content' in choice.delta) { } else if ('reasoning_content' in choice.delta) {