litellm/tests/unit/completion_extras
narmstrong-berri 0ba4e85496
Some checks failed
Cost map pins recheck / rerun-cost-map-guard (push) Has been cancelled
LiteLLM Rust DB / db-queries (push) Has been cancelled
LiteLLM Rust / rust-lint (push) Has been cancelled
LiteLLM Rust / rust-test (push) Has been cancelled
LiteLLM Rust / rust-wheel (push) Has been cancelled
Terraform Provider / gofmt, vet, build, test (push) Has been cancelled
Terraform Provider / Provider endpoints vs proxy OpenAPI schema (push) Has been cancelled
refactor: make cross-API bridges call native executors instead of re-entering acompletion and aresponses
Each client surface (/v1/chat/completions, /v1/responses, /v1/messages) now
decides the provider's native API format once with litellm/native/route_plan.py,
owns logging for the request, and hands the translated request to a native
executor (execute_chat, execute_responses, execute_messages) instead of calling
back into a public entry point.

- Messages to Responses, Messages to chat, Responses to chat and chat to
  Responses bridges call the native executors
- Responses-mode models on providers with no Responses API stay on chat
- Bridges price the provider reply before translating it, keep its headers,
  map provider errors and run JSON-schema validation as re-entry did
- Bridged streams are logged once, under the client's call type, when the
  client stream ends
- execute_chat and the chat provider helpers move from main.py to
  litellm/native/, and a lint check keeps litellm.native from importing
  litellm.main
2026-10-30 01:54:38 +00:00
..
litellm_responses_transformation refactor: make cross-API bridges call native executors instead of re-entering acompletion and aresponses 2026-10-30 01:54:38 +00:00
__init__.py test: add __init__.py to migrated tests/unit packages 2026-09-20 11:53:49 +00:00
test_litellm_responses_transformation_transformation.py test: migrate wave 1 phase 1 legacy tests to tests/unit 2026-09-20 09:17:57 +00:00
test_responses_bridge_provider_propagation.py refactor: make cross-API bridges call native executors instead of re-entering acompletion and aresponses 2026-10-30 01:54:38 +00:00