honcho/tests/llm/test_backends
Aakash Kattelu dea2917fa9
fix(openai): fix content normalization in openai backend history adapter (#1064)
* fix(llm): preserve null content on OpenAI tool-call turns

OpenAI-compatible providers can return assistant tool-call messages with
content=null. Coercing that to "" before history replay breaks providers
that bind opaque reasoning state to the exact assistant message shape.

Keep null only when the normalized response has tool calls; tool-less
null still becomes "", and content_override stays authoritative.

Fixes #1061

* test(live_llm): cover OpenAI null content tool-call replay

Add a live multi-turn tool replay that asserts provider content=null stays
null through normalize + OpenAIHistoryAdapter and that the continuation
still answers. Mark gpt_4/gpt_5 families as supports_tool_replay.

* docs(llm): note content_override None sentinel semantics

None means no override, not force-null content. Addresses review on #1064.
2026-08-26 12:14:32 -04:00
..
test_anthropic.py fix(llm): support per-request provider timeouts (#832) 2026-08-04 12:43:00 -04:00
test_gemini.py fix(llm): support per-request provider timeouts (#832) 2026-08-04 12:43:00 -04:00
test_openai.py fix(openai): fix content normalization in openai backend history adapter (#1064) 2026-08-26 12:14:32 -04:00