From 312709360c0280dc4d080cb21368cd1f772edd5e Mon Sep 17 00:00:00 2001 From: Keton Loo <258433097+longlixiao-ong@users.noreply.github.com> Date: Sun, 18 Oct 2026 19:38:03 +0800 Subject: [PATCH] docs: credit @longlixiao-ong for prompt-cache and stream salvage The user-facing change landed via #306 after #293 could not be merged as-is. Keep the original contributor on the unreleased note so the next release credits the work that started in #293. --- changelog/unreleased/prompt-cache-and-stream-salvage.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/changelog/unreleased/prompt-cache-and-stream-salvage.md b/changelog/unreleased/prompt-cache-and-stream-salvage.md index 4dc0d6b..d189d2c 100644 --- a/changelog/unreleased/prompt-cache-and-stream-salvage.md +++ b/changelog/unreleased/prompt-cache-and-stream-salvage.md @@ -1,9 +1,9 @@ ### English -- Preserve and normalize prompt cache token metrics (`cache_read_tokens`, `prompt_cache_hit_tokens`, and `prompt_tokens_details`) across Trae, Qoder, and WorkBuddy providers in both streaming and non-streaming responses. +- Preserve and normalize prompt cache token metrics (`cache_read_tokens`, `prompt_cache_hit_tokens`, and `prompt_tokens_details`) across Trae, Qoder, and WorkBuddy providers in both streaming and non-streaming responses. Originally submitted by [@longlixiao-ong](https://github.com/longlixiao-ong) in #293. - Gracefully salvage upstream streams that finish with a terminal `finish_reason` before EOF without emitting literal `[DONE]`, preventing artificial 502 incomplete stream errors. ### 中文 -- 修复并标准化 Trae、Qoder 与 WorkBuddy 提供商在流式与非流式响应中的 Prompt 缓存 Token 指标(统一解析并透传 `cache_read_tokens`、`prompt_cache_hit_tokens` 与 `prompt_tokens_details`)。 +- 修复并标准化 Trae、Qoder 与 WorkBuddy 提供商在流式与非流式响应中的 Prompt 缓存 Token 指标(统一解析并透传 `cache_read_tokens`、`prompt_cache_hit_tokens` 与 `prompt_tokens_details`)。原稿由 [@longlixiao-ong](https://github.com/longlixiao-ong) 在 #293 提交。 - 容错处理上游流式响应在带有终态 `finish_reason` 正常结束但未显式发送 `[DONE]` 的边界情况,自动补齐结束帧,避免下游误判为 502 流异常中断。