Yogeshwaran Ravichandran
ab274ac3c4
fix(azure response api): flatten tools for responses api to support nested definitions ( #19526 )
...
The Azure Responses API uses a different schema (flattened) for tools compared to the standard OpenAI/Azure Chat Completions API (nested). This caused a `BadRequestError` when users passed standard tool definitions.
Changes:
- Implemented tool flattening logic in `AzureOpenAIResponsesAPIConfig.transform_responses_api_request`.
- Added comprehensive unit tests in test_azure_transformation.py to verify nested-to-flat transformation, pass-through of flat tools, and immutability.
- Ensures cross-provider compatibility for tool definitions.
Fixes #19523
2026-01-21 21:08:28 -08:00
Sameer Kankute
110ce543c2
[Feat]Add cancel endpoint support for openai and azure ( #14561 )
...
* Add cancel endpoint support for openai
and azure
* fix lint error
* fix cancel url contruction azure
* readd changes
2025-09-15 07:08:56 -07:00
Krrish Dholakia
79e262d12b
feat(common_utils.py): make default azure openai responses api use /openai/v1/responses logic
...
Fixes https://github.com/BerriAI/litellm/issues/13527#issuecomment-3177882103
2025-08-11 23:40:05 -07:00
Jugal D. Bhatt
10a1fe21c5
[LLM Translation] Litellm azure o series drop params ( #13353 )
...
* added route check
* fix ruff
* Added support for dropping o_series params
* Added ruff fix
* fix tests
2025-08-09 13:52:45 -07:00
Ishaan Jaff
39955129f5
fix mapped tests ( #12320 )
...
* fix - use flush llm client cache
* faster mapped tests
* test_async_multiple_response_ids_routing
* fix tests
* test_ateam_member_update_admin_requires_premium
* regular mapped tests
* Revert "Fix: Initialize JSON logging for all loggers when JSON_LOGS=True (#12206 )"
This reverts commit 2c60c316ec .
* reset num workers
2025-07-04 10:04:43 -07:00
Ishaan Jaff
d6cc384780
[Feat] OpenAI/Azure OpenAI - Add support for creating vector stores on LiteLLM ( #12021 )
...
* add create/acreate vector store
* add azure config
* add _base_validate_azure_environment
* fix base test
* add get_base_create_vector_store_args
* use base llm for headers responses api
* add _get_base_azure_url
* fix AzureOpenAIVectorStoreConfig
* TestAzureOpenAIVectorStore
* fix azure openai vector store
* fix test comment
* fix unused imports
* test_validate_environment_azure_api_key_within_secret_str
* test_azure_transformation.py
2025-06-24 20:46:48 -07:00
Ishaan Jaff
3d542846b2
test fix
2025-06-23 20:03:26 -07:00
hsuyuming
e3ba888c63
fix: make response api support Azure Authentication method ( #11941 )
...
* fix: make response api support Azure Authentication method
1. Support diverse Azure authentication methods
2. Use distinct headers for API key and Azure AD token base on this
documentation (https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/responses?tabs=rest-api#generate-a-text-response )
* fix: fix path issue
* fix lint error
* rename test_transformation.py to test_azure_transformation.py
* change litellm_params as Optional type
2025-06-23 08:43:20 -07:00