Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
cdea9c9
refactor: clear fresh tech debt from the last 24 hours (2026-09-05, 2…
mateo-berri Sep 6, 2026
1faefd6
Merge remote-tracking branch 'origin/litellm_internal_staging' into l…
mateo-berri Sep 9, 2026
40e96e3
refactor: clear fresh tech debt from the last 24 hours (2026-09-09)
mateo-berri Sep 9, 2026
223a24a
Merge remote-tracking branch 'origin/litellm_internal_staging' into l…
mateo-berri Sep 10, 2026
0a89eef
refactor: clear fresh tech debt from the last 24 hours (2026-09-10)
mateo-berri Sep 10, 2026
2d0ee09
refactor: keep the pre-existing cost-estimate comment and usage cost …
mateo-berri Sep 10, 2026
65eddb5
Merge remote-tracking branch 'origin/litellm_internal_staging' into l…
mateo-berri Sep 13, 2026
a84163f
refactor: clear fresh tech debt from the last 24 hours (2026-09-13)
mateo-berri Sep 13, 2026
1bc2438
refactor: keep the model info pricing helper out of the cleanup
mateo-berri Sep 13, 2026
dd0c118
Merge remote-tracking branch 'origin/main' into litellm_techdebt_2026…
devin-ai-integration[bot] Sep 16, 2026
229add2
refactor: drop suppressions that no longer suppress anything (2026-09…
devin-ai-integration[bot] Sep 16, 2026
76cb86b
refactor: keep the rebind-ok reason inside the line limit
devin-ai-integration[bot] Sep 16, 2026
715f099
fix(anthropic): rebuild the refusal message_delta by spreading the chunk
devin-ai-integration[bot] Sep 16, 2026
279ac56
Merge remote-tracking branch 'origin/main' into litellm_techdebt_2026…
devin-ai-integration[bot] Sep 17, 2026
90ea534
refactor: clear fresh tech debt from the last 24 hours (2026-09-17)
devin-ai-integration[bot] Sep 17, 2026
a55aa85
Merge remote-tracking branch 'origin/main' into litellm_techdebt_2026…
devin-ai-integration[bot] Sep 18, 2026
f349b1c
refactor: clear fresh tech debt from the last 24 hours (2026-09-18)
devin-ai-integration[bot] Sep 18, 2026
412714e
Merge remote-tracking branch 'origin/main' into litellm_techdebt_2026…
devin-ai-integration[bot] Sep 19, 2026
6290f99
refactor: clear fresh tech debt from the last 24 hours (2026-09-19)
devin-ai-integration[bot] Sep 19, 2026
523d61d
refactor: keep the pre-existing protected-resource return type out of…
devin-ai-integration[bot] Sep 19, 2026
52df288
Merge remote-tracking branch 'origin/main' into litellm_techdebt_2026…
devin-ai-integration[bot] Sep 20, 2026
6110536
refactor: clear fresh tech debt from the last 24 hours (2026-09-20)
devin-ai-integration[bot] Sep 20, 2026
3e16241
Merge remote-tracking branch 'origin/main' into litellm_techdebt_2026…
devin-ai-integration[bot] Sep 22, 2026
c54de16
refactor: type fresh getattr, Any, and bare dict debt from 2026-09-22
devin-ai-integration[bot] Sep 22, 2026
28a1ac2
fix(mcp): keep the string guard on tools/list next_cursor
devin-ai-integration[bot] Sep 22, 2026
018a6a9
refactor(vercel_ai_gateway): type the embedding error headers dict
devin-ai-integration[bot] Sep 22, 2026
3d7333d
chore(techdebt): fix inert suppressions and missing Final in 2026-09-…
devin-ai-integration[bot] Sep 23, 2026
3b0ca40
chore(techdebt): shorten suppression reason to fit line length
devin-ai-integration[bot] Sep 23, 2026
0e36a13
chore(techdebt): format provider spread so its suppression sits on th…
devin-ai-integration[bot] Sep 23, 2026
9ecd822
Merge remote-tracking branch 'origin/main' into litellm_techdebt_2026…
devin-ai-integration[bot] Sep 24, 2026
5364e9f
chore(techdebt): drop the logger extras suppression that LIT013 now f…
devin-ai-integration[bot] Sep 24, 2026
75bcfaf
Merge remote-tracking branch 'origin/litellm_techdebt_20260906' into …
devin-ai-integration[bot] Sep 24, 2026
bd480fd
chore(techdebt): clear fresh suppressions, Any aliases and slop from …
devin-ai-integration[bot] Sep 24, 2026
9d5f5f4
refactor(vercel): take a read-only headers mapping in get_error_class
devin-ai-integration[bot] Sep 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion litellm/integrations/arize/arize.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def _sampling_rate_for_request(self, kwargs: Mapping[str, object], var: str) ->
if value is None or value in ("", "None"):
return None
try:
rate = float(value)
rate: Final = float(value)
except (TypeError, ValueError):
verbose_logger.warning(
"ArizeLogger: %s value %r is not a number; exporting the request",
Expand Down
2 changes: 1 addition & 1 deletion litellm/litellm_core_utils/provider_affinity.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def get_stable_session_id(litellm_params: object | None) -> str | None:
return None


def add_provider_affinity_header( # mutable-ok: downstream handlers add auth and signing headers
def add_provider_affinity_header(
headers: Mapping[str, object], litellm_params: object | None
) -> dict[str, object]: # mutable-ok: downstream handlers add auth and signing headers
header_name: Final = _get_provider_affinity_header_name(litellm_params)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def _is_gemini_3_or_newer(model: str) -> bool:
"""
Check if the model is Gemini 3 or newer.
"""
model_name = model.split("/")[-1].lower()
model_name: Final = model.split("/")[-1].lower()
is_vertex_fine_tuned_model: Final = model_name.isdigit() or (
model.startswith("gemini/") and not model_name.startswith("gemini-")
)
Expand Down
4 changes: 1 addition & 3 deletions litellm/proxy/litellm_pre_call_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3126,9 +3126,7 @@ async def move_guardrails_to_metadata(
- Moves include_guardrail_response into request metadata before provider dispatch
"""
if "include_guardrail_response" in data:
data[_metadata_variable_name][
"include_guardrail_response"
] = ( # rebind-ok: pre-call hooks mutate the shared request dict in place
data[_metadata_variable_name]["include_guardrail_response"] = ( # rebind-ok: pre-call hooks mutate request dict
data.pop("include_guardrail_response") is True
)

Expand Down
9 changes: 6 additions & 3 deletions litellm/proxy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ def _stamp_deployment_attribution(
if "model_info" not in attribution:
return attribution
if litellm_params.get("metadata") is None:
litellm_params["metadata"] = {} # mutable-ok: legacy logging payload is populated in place
litellm_params["metadata"] = {} # rebind-ok: populated in place # mutable-ok: seeded literal
metadata: Final = litellm_params["metadata"]
if not isinstance(metadata, dict):
return attribution
Expand Down Expand Up @@ -1052,8 +1052,11 @@ def _provider_for_deployment(deployment: Mapping[str, object]) -> str | None:
)
return MappingProxyType(
{
# mutable-ok: frozen immediately by the outer MappingProxyType
**({"custom_llm_provider": shared_provider} if shared_provider is not None else {}),
**(
{"custom_llm_provider": shared_provider} # mutable-ok: frozen by the outer MappingProxyType
if shared_provider is not None
else {} # mutable-ok: frozen by the outer MappingProxyType
),
**(
{ # mutable-ok: frozen immediately by the outer MappingProxyType
"model_info": dict( # mutable-ok: preserve the router's mutable model-info payload
Expand Down
4 changes: 2 additions & 2 deletions litellm/rust_bridge/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ def emit(
(),
None,
func=target,
extra={
extra={ # mutable-ok: LogRecord requires JSON dict extras
"rust_target": target,
"rust_fields": dict(fields),
}, # mutable-ok: LogRecord requires JSON dict extras
},
)
_REDACTION.filter(record)
_CORRELATION.filter(record)
Expand Down
Loading