[router] bindings for go (#13384)

Signed-off-by: ybyang <ybyang7@iflytek.com>
This commit is contained in:
ybyang
2025-11-16 10:12:10 -08:00
committed by GitHub
parent 1869f25ca5
commit 3b18fd4cf5
23 changed files with 4568 additions and 3 deletions
@@ -389,9 +389,8 @@ async fn process_and_transform_sse_stream(
// Include reasoning_tokens if present
if let Some(details) = &u.completion_tokens_details {
if let Some(reasoning_tokens) = details.reasoning_tokens {
usage_obj["output_tokens_details"] = json!({
"reasoning_tokens": reasoning_tokens
});
usage_obj["output_tokens_details"] =
json!({ "reasoning_tokens": reasoning_tokens });
}
}