litellm/litellm
mateo-berri 27c828d3bc fix(responses): keep leading system messages in client order once one goes to input on the bridge
A message-level cache_control on the first of two leading string system
messages sent that message to input as a breakpoint-carrying part, while
the unmarked second one still joined instructions. The Responses API reads
instructions before input, so the model saw the second message first and
followed the first one instead

The leading run that may join instructions now stops at the first message
that is not a system message with string content. A list-content system
message ends the run the same way, so the system messages after it keep
their place in input

Port of the matching change on #51783 to lts/1.108.x
2026-11-13 22:43:41 -08:00
..
_v2
a2a_protocol refactor(typing): clear 1143 basedpyright Any errors across 273 files (#46574) 2026-10-15 21:08:47 +00:00
anthropic_interface refactor(typing): clear 1143 basedpyright Any errors across 273 files (#46574) 2026-10-15 21:08:47 +00:00
assistants feat(openai)!: honor per-deployment workload identity on non-chat routes (#39966) 2026-11-10 17:08:29 +00:00
batch_completion
batches feat(gemini): file-backed batch jobs on /v1/batches with output download and spend tracking (#51032) 2026-11-12 02:08:31 +00:00
caching fix(caching): key cached async clients by a per-loop token instead of id(loop) (#48877) 2026-11-05 01:39:40 +00:00
chat_completions refactor(python-bridge): ship a signature base and read the resolved call (#45450) 2026-10-08 17:20:29 -07:00
completion_extras fix(responses): keep leading system messages in client order once one goes to input on the bridge 2026-11-13 22:43:41 -08:00
compression refactor(llms): expose public names for private provider helpers (#45037) 2026-10-07 08:49:25 -07:00
containers feat(openai)!: honor per-deployment workload identity on non-chat routes (#39966) 2026-11-10 17:08:29 +00:00
decisions feat(openai)!: honor per-deployment workload identity on non-chat routes (#39966) 2026-11-10 17:08:29 +00:00
embeddings refactor(python-bridge): ship a signature base and read the resolved call (#45450) 2026-10-08 17:20:29 -07:00
endpoints/speech/speech_to_completion_bridge
evals
experimental_mcp_client fix(mcp): backport #47034 to lts/1.108.x 2026-11-06 17:08:23 -08:00
files feat(gemini): file-backed batch jobs on /v1/batches with output download and spend tracking (#51032) 2026-11-12 02:08:31 +00:00
fine_tuning feat(openai)!: honor per-deployment workload identity on non-chat routes (#39966) 2026-11-10 17:08:29 +00:00
google_genai refactor(typing): clear 1143 basedpyright Any errors across 273 files (#46574) 2026-10-15 21:08:47 +00:00
harness refactor(typing): clear 1143 basedpyright Any errors across 273 files (#46574) 2026-10-15 21:08:47 +00:00
images feat(openai)!: honor per-deployment workload identity on non-chat routes (#39966) 2026-11-10 17:08:29 +00:00
integrations fix(responses): send cache_control as a prompt_cache_breakpoint on the chat-to-Responses bridge 2026-11-13 21:37:11 -08:00
interactions refactor(typing): clear 1143 basedpyright Any errors across 273 files (#46574) 2026-10-15 21:08:47 +00:00
litellm_core_utils feat(gemini): file-backed batch jobs on /v1/batches with output download and spend tracking (#51032) 2026-11-12 02:08:31 +00:00
llms fix(azure): add keyless Decisions authentication (#48386) (#48529) 2026-11-12 21:14:43 +00:00
messages feat(anthropic): generate auto mode safeguard_results with a classifier model on the /v1/messages chat bridge (#45600) 2026-10-14 13:09:11 +00:00
models fix(proxy): allow model instances in LiteLLM_EndUserTable validation (#41677) 2026-10-15 10:57:26 -07:00
ocr refactor(python-bridge): ship a signature base and read the resolved call (#45450) 2026-10-08 17:20:29 -07:00
passthrough fix(bedrock)!: backport #47429 deployment guardrailConfig on /bedrock pass-through routes to lts/1.108.x 2026-11-07 16:45:18 -08:00
proxy fix(mcp): treat the mcp_all scope as a wildcard any grant covers (#51578) 2026-11-13 09:07:40 -08:00
proxy_auth
rag fix(vector-stores): keep image hits to image searches and reject a caller retrievalQuery 2026-11-10 12:51:59 -08:00
realtime_api feat(openai)!: honor per-deployment workload identity on non-chat routes (#39966) 2026-11-10 17:08:29 +00:00
repositories fix(proxy): add execute_raw to the PrismaBatch protocol 2026-11-10 17:35:54 -08:00
rerank_api refactor(typing): clear 1143 basedpyright Any errors across 273 files (#46574) 2026-10-15 21:08:47 +00:00
responses fix(responses): serialize sequence_number on every bridged streaming event (#44944) 2026-11-11 14:52:45 -08:00
router_strategy fix(router): preserve tag fail-open policy through affinity and cooldown (#48470) 2026-11-05 14:56:28 -08:00
router_utils fix(videos)!: keep model_id in proxy video ids so per-model keys resolve on status/content (#44614) 2026-11-09 15:05:22 +00:00
rust_bridge fix!: backport the second batch of rc/1.107.0 CI triage fixes from main (#47090) 2026-10-17 00:20:23 -07:00
sandbox refactor(typing): clear 1143 basedpyright Any errors across 273 files (#46574) 2026-10-15 21:08:47 +00:00
search refactor(typing): clear 1143 basedpyright Any errors across 273 files (#46574) 2026-10-15 21:08:47 +00:00
secret_managers refactor(typing): clear 1143 basedpyright Any errors across 273 files (#46574) 2026-10-15 21:08:47 +00:00
skills refactor(typing): clear 1143 basedpyright Any errors across 273 files (#46574) 2026-10-15 21:08:47 +00:00
systemone feat(openai)!: honor per-deployment workload identity on non-chat routes (#39966) 2026-11-10 17:08:29 +00:00
telemetry refactor: clean up fresh tech debt in per-user Copilot auth, Ternary FOCUS export and telemetry (#45769) 2026-10-15 04:29:27 +00:00
tracing fix(proxy): cooldown errors carry 429, Sentry starts at boot without request bodies, tracing failures log at ERROR, exporter counters exported (#46344) 2026-10-16 00:53:52 +00:00
types feat(gemini): file-backed batch jobs on /v1/batches with output download and spend tracking (#51032) 2026-11-12 02:08:31 +00:00
vector_store_files refactor(typing): clear 1143 basedpyright Any errors across 273 files (#46574) 2026-10-15 21:08:47 +00:00
vector_stores fix(vector_stores): accept line-wrapped base64 in query_image data 2026-11-11 00:39:15 -08:00
videos feat(videos): serve custom_provider_map BaseVideoConfig providers on /v1/videos (#49785) 2026-11-05 01:39:40 +00:00
__init__.py fix(azure): add keyless Decisions authentication (#48386) (#48529) 2026-11-12 21:14:43 +00:00
_internal_context.py fix(anthropic): skip the SDK num_retries retry for an attempt that is sent again 2026-11-07 09:28:59 -08:00
_lazy_imports.py
_lazy_imports_registry.py fix(azure): add keyless Decisions authentication (#48386) (#48529) 2026-11-12 21:14:43 +00:00
_logging.py refactor(typing): clear 1143 basedpyright Any errors across 273 files (#46574) 2026-10-15 21:08:47 +00:00
_redis.py refactor(typing): clear 1143 basedpyright Any errors across 273 files (#46574) 2026-10-15 21:08:47 +00:00
_redis_credential_provider.py
_service_logger.py fix(caching): report Redis circuit-breaker metrics through the Prometheus services logger (#46484) 2026-10-14 14:29:54 -07:00
_uuid.py
_version.py feat(sdk): build core from an independent packaging manifest (#44340) 2026-10-08 18:40:14 -07:00
anthropic_beta_headers_config.json fix(vertex_ai): forward the inline-tools-2026-09-15 beta to Vertex and Anthropic (#45297) 2026-10-08 12:27:52 -07:00
anthropic_beta_headers_manager.py fix(bedrock): forward the per-turn-control beta to Bedrock Invoke (#43086) 2026-11-05 22:42:57 -08:00
blog_posts.json
budget_manager.py refactor(typing): clear 1143 basedpyright Any errors across 273 files (#46574) 2026-10-15 21:08:47 +00:00
constants.py fix(baseten): list current Model APIs instead of retired 2023 deployment IDs (#46945) 2026-11-11 14:39:44 -08:00
cost.json
cost_calculator.py fix(vertex_ai): bill gemini image text, thinking and priority tokens at their own rates (#51017) 2026-11-12 01:47:50 +00:00
exceptions.py feat(count_tokens)!: backport the count_tokens stack to rc/1.107.0 (#46839, #46843, #46583, #47057, #47064, #47163, #46777) (#47209) 2026-10-17 18:20:22 -07:00
main.py fix(responses): read reasoning_effort from extra_body for the bridge gate 2026-11-11 04:23:19 +00:00
model_prices_and_context_window_backup.json fix(responses): keep unset-effort gpt-5.4/5.5 tool calls on chat completions (#50968) 2026-11-11 03:44:14 +00:00
policy_templates_backup.json
provider_endpoints_support_backup.json feat(providers): add Inference APIs as OpenAI-compatible provider (#41669) 2026-10-15 08:17:36 -07:00
py.typed
router.py Merge pull request #51266 from BerriAI/litellm_backport_linktree_fixes_lts_1_108_x 2026-11-11 16:38:39 -08:00
scheduler.py fix(scheduler): remove a request's queue entry once it stops waiting (#43061) 2026-10-07 17:34:38 -07:00
setup_wizard.py
timeout.py
tool_loop.py fix(tool-choice): resolve mcp entries like the gateway and keep the choice on every hook path 2026-11-07 02:05:04 -08:00
utils.py fix(azure): add keyless Decisions authentication (#48386) (#48529) 2026-11-12 21:14:43 +00:00