diva0078
diva0078
这个问题很像 Anthropic-style 消息历史和 OpenAI-compatible 中转层混用时的“thinking / tool result 保真”问题。 我一般会先把它拆成 3 个最小用例看: 1. 多轮但不带 tools,只看普通 assistant/user 历史是否能稳定通过; 2. 带一次 tool call,但把 thinking / tool result 原样保留,看 DeepSeek 是否还报 400; 3....
This looks like a good minimal repro for an SDK-side accumulator bug. The safe fix shape is to normalize any list item that has an `index` field before appending/merging, instead...
Thanks for confirming! Our deduplication approach (per index) has been working. Have you seen any cases where it fails? Let's keep tracking this.
One practical workaround is to separate transport diagnostics from the strict Pydantic parse step. If the HTTP request succeeds but `parse()` later raises `pydantic.ValidationError`, you can still capture the request...
A practical workaround until the SDK/API exposes a stable enum is to treat a terminal background response as a second error-dispatch layer after polling, rather than relying on the HTTP...