litellm/litellm
Kris Xia be2f429087
fix(proxy): extract model from vertex ai passthrough url pattern (#18097)
extract model id from vertex ai passthrough routes that follow the pattern:
/vertex_ai/*/models/{model_id}:*

the model extraction now handles vertex ai routes by regex matching the model
segment from the url path, which allows proper model identification for
authentication and authorization in proxy pass-through endpoints.

adds comprehensive test coverage for vertex ai model extraction including:
- various vertex api versions (v1, v1beta1)
- different locations (us-central1, asia-southeast1)
- model names with special suffixes (gemini-1.5-pro, gemini-2.0-flash)
- precedence verification (request body model over url)
- non-vertex route isolation
2025-12-17 11:10:14 +05:30
..
a2a_protocol [Refactor] litellm/init.py: lazy load LLMClientCache (#18008) 2025-12-16 05:44:06 -08:00
anthropic_interface
assistants
batch_completion
batches Revert batch utils with original logic 2025-12-10 17:01:21 +05:30
caching
completion_extras Add custom headers in responses API 2025-12-16 11:31:15 +05:30
containers [Feat] Containers API - add new container API file management + UI Interface (#17745) 2025-12-09 17:33:26 -08:00
endpoints/speech/speech_to_completion_bridge
experimental_mcp_client
files Add support for expires after param 2025-12-12 10:01:18 +05:30
fine_tuning
google_genai fix: Preserve systemInstructions for vertex ai generate content request 2025-12-11 09:52:32 +05:30
images Lazy load ImageEditRequestUtils in images/main.py to avoid heavy import (#18074) 2025-12-16 12:28:33 -08:00
integrations [Refactor] litellm/init.py: lazy load LLMClientCache (#18008) 2025-12-16 05:44:06 -08:00
interactions [Feat] Add New Google Interactions API on AI Gateway (#18081) 2025-12-17 02:20:23 +04:00
litellm_core_utils Merge branch 'main' into litellm_staging_12_16_2025 2025-12-16 21:38:14 +05:30
llms [Feat] Add New Google Interactions API on AI Gateway (#18081) 2025-12-17 02:20:23 +04:00
ocr
passthrough
proxy fix(proxy): extract model from vertex ai passthrough url pattern (#18097) 2025-12-17 11:10:14 +05:30
rag
realtime_api
rerank_api Add tests for header forwarding 2025-12-12 17:54:17 +05:30
responses Merge pull request #17980 from BerriAI/litellm_add_provider_specific_tools_in_responses 2025-12-15 22:53:08 +05:30
router_strategy
router_utils fix(router): add minimum request threshold for error rate cooldown (#17464) 2025-12-12 04:36:10 -08:00
search
secret_managers
skills
types [Feat] New Endpoint - Google Interactions API - added on litellm SDK (#18079) 2025-12-17 02:18:51 +04:00
vector_store_files
vector_stores
videos fix: respect videos content db creds 2025-12-10 23:00:01 +05:30
__init__.py [Feat] New Endpoint - Google Interactions API - added on litellm SDK (#18079) 2025-12-17 02:18:51 +04:00
_lazy_imports.py Lazy load OpenAILikeChatConfig to avoid heavy import (#18075) 2025-12-16 12:43:42 -08:00
_logging.py
_redis.py
_service_logger.py
_uuid.py
_version.py
budget_manager.py
constants.py fix(router): add minimum request threshold for error rate cooldown (#17464) 2025-12-12 04:36:10 -08:00
cost_calculator.py fix: default quality cost calculation of gpt-image 1 model 2025-12-15 08:16:25 +05:30
cost.json
exceptions.py
main.py [Refactor] litellm/init.py: lazy load encoding from main.py (#18070) 2025-12-16 11:19:59 -08:00
model_prices_and_context_window_backup.json docs init 2025-12-17 02:27:54 +04:00
mypy.ini
py.typed
router.py [Feat] Add New Google Interactions API on AI Gateway (#18081) 2025-12-17 02:20:23 +04:00
scheduler.py
timeout.py
utils.py [Refactor] litellm/init.py: lazy-load AmazonConverseConfig (#18069) 2025-12-16 10:48:11 -08:00