ui-svelte: support reasoning and reasoning_content (#708)

Support `reasoning` v1/chat/completion delta that vLLM uses.
This commit is contained in:
Benson Wong
2026-04-26 13:11:48 -07:00
committed by GitHub
parent ce28485be2
commit e8d4384cd2
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ function parseSSELine(line: string): StreamChunk | null {
const parsed = JSON.parse(data);
const delta = parsed.choices?.[0]?.delta;
const content = delta?.content || "";
const reasoning_content = delta?.reasoning_content || "";
const reasoning_content = delta?.reasoning_content || delta?.reasoning || "";
if (content || reasoning_content) {
return { content, reasoning_content, done: false };