Commit graph

4 commits

Author SHA1 Message Date
narmstrong-berri
3568674359 test(native): assert each cross-API bridge runs hooks, logging and the provider call once
Some checks failed
LiteLLM Rust / rust-lint (push) Has been cancelled
LiteLLM Rust / rust-test (push) Has been cancelled
LiteLLM Rust / rust-wheel (push) Has been cancelled
2026-10-26 19:03:03 +00:00
narmstrong-berri
165a28ef7b refactor(chat): keep responses-mode models on chat when the provider has no Responses API
Some checks failed
LiteLLM Rust / rust-lint (push) Has been cancelled
LiteLLM Rust / rust-test (push) Has been cancelled
LiteLLM Rust / rust-wheel (push) Has been cancelled
Decide the chat-to-Responses bridge from the provider's Responses config, so a
responses-mode model on a provider without one stays on chat instead of bouncing
through responses() and back. That bounce was the only loop
_skip_responses_api_bridge guarded, so the flag goes away.
2026-10-26 19:03:03 +00:00
narmstrong-berri
74715e0ddf refactor: call execute_chat from the Messages to chat bridge
Some checks failed
LiteLLM Rust / rust-wheel (push) Has been cancelled
LiteLLM Rust / rust-lint (push) Has been cancelled
LiteLLM Rust / rust-test (push) Has been cancelled
The /v1/messages bridge for chat-only models now plans the chat call once
and runs execute_chat directly instead of re-entering litellm.acompletion,
so deployment hooks run once per request. Requests that need the chat
surface (fallbacks, model_list, MCP gateway tools, prompt management,
litellm_system_prompt) still go through litellm.acompletion
2026-10-26 19:03:02 +00:00
narmstrong-berri
cd10e367ff refactor: decide the native API format once with plan_route
Some checks failed
LiteLLM Rust / rust-lint (push) Has been cancelled
LiteLLM Rust / rust-test (push) Has been cancelled
LiteLLM Rust / rust-wheel (push) Has been cancelled
Messages, chat and Responses each decided inline whether to bridge to
another API format. The decisions now live in litellm/native/route_plan.py
as a tagged union so the upcoming executor split has one place to read
2026-10-20 13:31:42 -07:00