The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Merge branch 'main' into litellm_dev_03_10_2025_p3
Krish Dholakia2d957a0ed94f
diff --cc litellm/llms/azure/assistants.pyindex 00af99037bb,b446d887c40..1328eb1fea8--- a/litellm/llms/azure/assistants.py+++ b/litellm/llms/azure/assistants.py@@@ -696,9 -663,8 +696,9 @@@ class AzureAssistantsAPI(BaseAzureLLM)model: Optional[str],tools: Optional[Iterable[AssistantToolParam]],event_handler: Optional[AssistantEventHandler],+ litellm_params: Optional[dict] = None,) -> AsyncAssistantStreamManager[AsyncAssistantEventHandler]:- data = {+ data: Dict[str, Any] = {"thread_id": thread_id,"assistant_id": assistant_id,"additional_instructions": additional_instructions,@@@ -722,9 -688,8 +722,9 @@@model: Optional[str],tools: Optional[Iterable[AssistantToolParam]],event_handler: Optional[AssistantEventHandler],+ litellm_params: Optional[dict] = None,) -> AssistantStreamManager[AssistantEventHandler]:- data = {+ data: Dict[str, Any] = {"thread_id": thread_id,"assistant_id": assistant_id,"additional_instructions": additional_instructions,diff --cc litellm/llms/azure/audio_transcriptions.pyindex 0d04a92afe4,ba9ac014009..52a3d780fbd--- a/litellm/llms/azure/audio_transcriptions.py+++ b/litellm/llms/azure/audio_transcriptions.py@@@ -7,9 -7,17 +7,13 @@@ from pydantic import BaseModeimport litellmfrom litellm.litellm_core_utils.audio_utils.utils import get_audio_file_namefrom litellm.types.utils import FileTypes- from litellm.utils import TranscriptionResponse, convert_to_model_response_object+ from litellm.utils import (+ TranscriptionResponse,+ convert_to_model_response_object,+ extract_duration_from_srt_or_vtt,+ )-from .azure import (- AzureChatCompletion,- get_azure_ad_token_from_oidc,- select_azure_base_url_or_endpoint,-)+from .azure import AzureChatCompletionclass AzureAudioTranscription(AzureChatCompletion):diff --cc litellm/types/utils.pyindex 6942a24536c,04b76f3a2e4..db315e26963--- a/litellm/types/utils.py+++ b/litellm/types/utils.py@@@ -191,42 -191,8 +191,44 @@@ class CallTypes(Enum)retrieve_batch = "retrieve_batch"pass_through = "pass_through_endpoint"anthropic_messages = "anthropic_messages"+ get_assistants = "get_assistants"+ aget_assistants = "aget_assistants"+ create_assistants = "create_assistants"+ acreate_assistants = "acreate_assistants"+ delete_assistant = "delete_assistant"+ adelete_assistant = "adelete_assistant"+ acreate_thread = "acreate_thread"+ create_thread = "create_thread"+ aget_thread = "aget_thread"+ get_thread = "get_thread"+ a_add_message = "a_add_message"+ add_message = "add_message"+ aget_messages = "aget_messages"+ get_messages = "get_messages"+ arun_thread = "arun_thread"+ run_thread = "run_thread"+ arun_thread_stream = "arun_thread_stream"+ run_thread_stream = "run_thread_stream"+ afile_retrieve = "afile_retrieve"+ file_retrieve = "file_retrieve"+ afile_delete = "afile_delete"+ file_delete = "file_delete"+ afile_list = "afile_list"+ file_list = "file_list"+ acreate_file = "acreate_file"+ create_file = "create_file"+ afile_content = "afile_content"+ file_content = "file_content"+ create_fine_tuning_job = "create_fine_tuning_job"+ acreate_fine_tuning_job = "acreate_fine_tuning_job"+ acancel_fine_tuning_job = "acancel_fine_tuning_job"+ cancel_fine_tuning_job = "cancel_fine_tuning_job"+ alist_fine_tuning_jobs = "alist_fine_tuning_jobs"+ list_fine_tuning_jobs = "list_fine_tuning_jobs"+ aretrieve_fine_tuning_job = "aretrieve_fine_tuning_job"+ retrieve_fine_tuning_job = "retrieve_fine_tuning_job"+ responses = "responses"+ aresponses = "aresponses"CallTypesLiteral = Literal[