fixed 0 token in openrouter steaming (#6493)

This commit is contained in:
Lifei Zhou
2026-01-15 13:43:13 +11:00
committed by GitHub
parent 7d4a6bd8ff
commit 9a96b84372
+1 -5
View File
@@ -612,11 +612,7 @@ where
yield (
Some(msg),
if chunk.choices[0].finish_reason.is_some() {
usage
} else {
None
},
usage,
)
} else if usage.is_some() {
yield (None, usage)