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
docs add example doing ft
Ishaan Jaffdf684cbf6f90
diff --git a/docs/my-website/docs/fine_tuning.md b/docs/my-website/docs/fine_tuning.mdindex 0095119738f..d347b6df7d3 100644--- a/docs/my-website/docs/fine_tuning.md+++ b/docs/my-website/docs/fine_tuning.md@@ -1,3 +1,6 @@+import Tabs from '@theme/Tabs';+import TabItem from '@theme/TabItem';+# [Beta] Fine-tuning API@@ -11,7 +14,7 @@ This is an Enterprise only endpoint [Get Started with Enterprise here](https://c- Azure OpenAI- OpenAI-+Add `finetune_settings` and `files_settings` to your litellm config.yaml to use the fine-tuning endpoints.## Usage```yamlmodel_list:@@ -25,7 +28,7 @@ model_list:finetune_settings:- custom_llm_provider: azureapi_base: https://exampleopenaiendpoint-production.up.railway.app- api_key: fake-key+ api_key: os.environ/AZURE_API_KEYapi_version: "2023-03-15-preview"- custom_llm_provider: openaiapi_key: os.environ/OPENAI_API_KEY@@ -42,9 +45,33 @@ files_settings:## Create File for Fine Tuning+<Tabs>+<TabItem value="openai" label="OpenAI Python v1.0.0+">++```python+client = AsyncOpenAI(api_key="sk-1234", base_url="http://0.0.0.0:4000") # base_url is your litellm proxy url++file_name = "openai_batch_completions.jsonl"+response = await client.files.create(+ extra_body={"custom_llm_provider": "azure"}, # tell litellm proxy which provider to use+ file=open(file_name, "rb"),+ purpose="fine-tune",+)+```+</TabItem>+</Tabs>+## Create fine-tuning job+<Tabs>+</Tabs>+## Cancel fine-tuning job+<Tabs>+</Tabs>+## List fine-tuning jobs+<Tabs>+</Tabs>