honcho/src
Vineeth Voruganti eb386c3ceb
fix: translate canonical tool_choice in OpenAI backend for cross-provider fallback (#850)
The OpenAI backend passed tool_choice through raw while the Anthropic and
Gemini backends translate Honcho's canonical vocabulary to their native
form. On a mixed-provider fallback chain (e.g. Gemini primary -> OpenAI
backup), a canonical "any" reached OpenAI unchanged and was rejected as an
invalid param, since OpenAI only accepts none/auto/required.

Add a _convert_tool_choice to the OpenAI backend mirroring the others so a
single TOOL_CHOICE value resolves correctly regardless of which provider a
fallback lands on. "any"/"required" -> "required", auto/none pass through,
a tool-name string or {"name": ...} dict -> a function selection.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-26 12:48:02 -04:00
..
cache perf: add redis caching and reduce embedding API calls (#372) 2026-02-13 00:53:46 -05:00
crud fix: compact honcho logging (#836) 2026-06-23 15:55:03 -04:00
deriver fix: compact honcho logging (#836) 2026-06-23 15:55:03 -04:00
dialectic Track user and session ID on Langfuse traces (#814) 2026-06-23 00:03:21 -04:00
dreamer fix: compact honcho logging (#836) 2026-06-23 15:55:03 -04:00
llm fix: translate canonical tool_choice in OpenAI backend for cross-provider fallback (#850) 2026-06-26 12:48:02 -04:00
reconciler fix: compact honcho logging (#836) 2026-06-23 15:55:03 -04:00
routers Fix scoped JWTs (#679) 2026-06-22 17:30:00 -04:00
schemas fix: private ip address check for webhook creation (#793) 2026-06-11 10:35:20 -04:00
startup Make embeddings configurable (#678) 2026-05-14 15:03:35 -04:00
telemetry fix(llm): stop capturing live LLM clients in Langfuse generation spans (#849) 2026-06-26 11:25:26 -04:00
utils fix: checker bug_fix (#840) 2026-06-24 10:55:45 -04:00
vector_store feat: add new cloudevents for api routes (#637) 2026-05-20 18:25:30 -04:00
webhooks Tighten Transaction Scopes (#525) 2026-04-08 11:14:50 -04:00
__init__.py v0.0.8 Documentation Updates (#55) 2024-05-15 00:07:25 -04:00
_version.py feat: add new cloudevents for api routes (#637) 2026-05-20 18:25:30 -04:00
config.py fix: compact honcho logging (#836) 2026-06-23 15:55:03 -04:00
db.py add read db (#773) 2026-06-10 13:28:36 -04:00
dependencies.py add read db (#773) 2026-06-10 13:28:36 -04:00
embedding_client.py feat: defer embedding messages (#704) 2026-06-11 10:31:04 -04:00
exceptions.py Turbopuffer and LanceDB Integration (#287) 2026-01-16 17:04:01 -05:00
main.py feat: add route-level latency metrics (#837) 2026-06-23 14:41:33 -04:00
models.py Make embeddings configurable (#678) 2026-05-14 15:03:35 -04:00
security.py Fix scoped JWTs (#679) 2026-06-22 17:30:00 -04:00