litellm/litellm
mateo-berri cd191b3da1
chore(typing): clear basedpyright Any errors in video, responses, and HTTP handler paths
Replaces Any seams with real types across the highest reportAny/reportExplicitAny
files: extra_headers/extra_query/extra_body/litellm_metadata payload dicts get
concrete value types, Coroutine[Any, Any, T] annotations become
Coroutine[None, None, T], and pydantic models built by dict-unpacking untyped
JSON or model dumps are constructed with model_validate instead.

Whole-tree basedpyright: reportAny 21328 -> 20914, reportExplicitAny 7259 -> 6794,
total errors 152721 -> 151787, with no rule regressing anywhere in the repo.

Also fixes the multipart filename for POST /videos/characters: a video opened
from a raw file descriptor exposes an int name, which used to be forwarded into
mimetypes.guess_type() and raise, and now falls back to the default filename.
2026-08-01 02:36:30 +00:00
..
a2a_protocol fix(otel): label retrieval and agent metrics correctly and emit gen_ai.provider.name (#35151) 2026-07-30 13:48:59 -07:00
anthropic_interface
assistants
batch_completion
batches refactor(batches): aggregate batch output cost, usage, and models in a single pass 2026-07-29 22:00:01 -07:00
caching fix(caching): stamp provider on embedding cache-hit logs so spend logs record provider 2026-07-30 22:11:01 +00:00
completion_extras fix(responses-bridge): return CustomStreamWrapper from the completed-response stream helper 2026-07-27 14:48:18 -07:00
compression fix(guardrails/headroom): stop compressing the turn the model must act on (#35294) 2026-07-30 18:53:31 -07:00
containers
endpoints/speech/speech_to_completion_bridge
evals
experimental_mcp_client fix(mcp): sanitize Anthropic tool schemas and stop encoding gateway names 2026-07-17 10:33:28 -07:00
files
fine_tuning chore(lint): zero out crash-class pyright rules and ban new type: ignore comments (#32152) 2026-07-04 16:56:12 -07:00
google_genai fix(logging): classify async anthropic_messages and generate_content as async (#33589) 2026-07-16 20:56:47 -07:00
images
integrations fix(guardrails): run bedrock guardrail on MCP tool calls in during_mcp_call mode (#35149) 2026-07-31 11:33:14 -07:00
interactions fix(responses): stop scheduling sync success_handler concurrently with async_success_handler (#32239) 2026-07-07 09:13:50 -07:00
litellm_core_utils chore(typing): clear basedpyright Any errors in video, responses, and HTTP handler paths 2026-08-01 02:36:30 +00:00
llms chore(typing): clear basedpyright Any errors in video, responses, and HTTP handler paths 2026-08-01 02:36:30 +00:00
models fix(mcp): annotate connected-app reachability on the gateway connect page (#34867) 2026-07-31 05:38:54 +00:00
ocr chore(typing): clear basedpyright Any errors in video, responses, and HTTP handler paths 2026-08-01 02:36:30 +00:00
passthrough fix(logging): classify allm_passthrough_route as async to prevent duplicate success callbacks (#32265) 2026-07-06 15:04:05 -07:00
proxy chore(typing): clear basedpyright Any errors in video, responses, and HTTP handler paths 2026-08-01 02:36:30 +00:00
proxy_auth
rag fix(rag): track LLM completion usage and spend for /v1/rag/query (#32438) 2026-07-17 17:45:27 +00:00
realtime_api fix(vertex): forward realtime health check params (#32550) 2026-07-08 17:30:46 -07:00
repositories chore(typing): clear basedpyright Any errors in proxy auth, repositories, and openai transforms 2026-07-30 13:48:43 +00:00
rerank_api fix(rerank): log optional_rerank_params at debug to stop leaking request content (#32533) 2026-07-08 18:48:03 -07:00
responses chore(typing): clear basedpyright Any errors in video, responses, and HTTP handler paths 2026-08-01 02:36:30 +00:00
router_strategy feat(spend-logs): record when a spend log row is the auto-router's own classifier call (#35300) 2026-07-30 19:26:42 -07:00
router_utils fix(proxy): reject model writes that corrupt an auto-router pseudo-model 2026-07-28 20:25:07 -07:00
rust_bridge perf(bedrock): audio transcription via rust core (py->rust bridge) (#33990) 2026-07-20 14:09:41 -07:00
sandbox
search
secret_managers fix(bedrock): stop replaying expired Google OIDC tokens to STS on guardrail auth (#34637) 2026-07-25 16:27:54 -07:00
skills
types feat(proxy): add generic list handler for /management/v1 (#35308) 2026-07-31 09:26:30 -07:00
vector_store_files
vector_stores
videos chore(typing): clear basedpyright Any errors in video, responses, and HTTP handler paths 2026-08-01 02:36:30 +00:00
__init__.py feat(proxy): add overwrite_user_with_key_hash to stamp outgoing user param with key hash (#34417) 2026-07-23 16:38:01 -07:00
_internal_context.py
_lazy_imports.py
_lazy_imports_registry.py
_logging.py
_redis.py fix(redis): stop an unreachable Redis from blocking every request (#35273) 2026-07-30 14:36:28 -07:00
_redis_credential_provider.py
_service_logger.py
_uuid.py
_version.py
anthropic_beta_headers_config.json fix(bedrock-invoke): retain clear_tool_uses_20250919 context_management edits and emit context-management-2025-06-27 beta (LIT-3393) (#32658) 2026-07-09 14:31:27 -07:00
anthropic_beta_headers_manager.py
blog_posts.json
budget_manager.py
constants.py feat(spend-logs): record when a spend log row is the auto-router's own classifier call (#35300) 2026-07-30 19:26:42 -07:00
cost.json
cost_calculator.py fix(cost_calculator): sum mirrored cache token fields once in combine_usage_objects 2026-07-23 19:07:09 -07:00
exceptions.py feat(logging): add structured budget fields to budget rejection failure logs (#33460) 2026-07-16 12:39:04 -07:00
main.py refactor(bedrock): remove the dead BedrockLLM invoke code path 2026-07-29 20:25:36 -07:00
model_prices_and_context_window_backup.json Merge pull request #35270 from BerriAI/litellm_gpt_pricing_change 2026-07-30 21:46:46 -07:00
policy_templates_backup.json
provider_endpoints_support_backup.json
py.typed
router.py chore(typing): clear basedpyright Any errors in video, responses, and HTTP handler paths 2026-08-01 02:36:30 +00:00
scheduler.py
setup_wizard.py feat(anthropic): add Claude Opus 5 2026-07-24 10:43:49 -07:00
timeout.py
utils.py Merge pull request #35270 from BerriAI/litellm_gpt_pricing_change 2026-07-30 21:46:46 -07:00