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
feat support azure ft create endpoint
Ishaan Jaffff9bb9621748
diff --git a/litellm/fine_tuning/main.py b/litellm/fine_tuning/main.pyindex ede85351d11..1400d0b1ad8 100644--- a/litellm/fine_tuning/main.py+++ b/litellm/fine_tuning/main.py@@ -208,11 +208,15 @@ def create_fine_tuning_job(seed=seed,)+ create_fine_tuning_job_data_dict = create_fine_tuning_job_data.model_dump(+ exclude_none=True+ )+response = azure_fine_tuning_apis_instance.create_fine_tuning_job(api_base=api_base,api_key=api_key,api_version=api_version,- create_fine_tuning_job_data=create_fine_tuning_job_data,+ create_fine_tuning_job_data=create_fine_tuning_job_data_dict,timeout=timeout,max_retries=optional_params.max_retries,_is_async=_is_async,diff --git a/litellm/llms/fine_tuning_apis/azure.py b/litellm/llms/fine_tuning_apis/azure.pyindex 0e6e0e66d31..ff7d40ff8c1 100644--- a/litellm/llms/fine_tuning_apis/azure.py+++ b/litellm/llms/fine_tuning_apis/azure.py@@ -21,7 +21,7 @@ class AzureOpenAIFineTuningAPI(BaseLLM):async def acreate_fine_tuning_job(self,- create_fine_tuning_job_data: FineTuningJobCreate,+ create_fine_tuning_job_data: dict,openai_client: AsyncAzureOpenAI,) -> FineTuningJob:response = await openai_client.fine_tuning.jobs.create(@@ -32,7 +32,7 @@ class AzureOpenAIFineTuningAPI(BaseLLM):def create_fine_tuning_job(self,_is_async: bool,- create_fine_tuning_job_data: FineTuningJobCreate,+ create_fine_tuning_job_data: dict,api_key: Optional[str],api_base: Optional[str],timeout: Union[float, httpx.Timeout],