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(fireworks_ai.md): add audio transcription to fireworks ai doc
Krrish Dholakia506b6f6517b2
diff --git a/docs/my-website/docs/audio_transcription.md b/docs/my-website/docs/audio_transcription.mdindex b4a1df01c42..1d6ea0e9fa7 100644--- a/docs/my-website/docs/audio_transcription.md+++ b/docs/my-website/docs/audio_transcription.md@@ -105,4 +105,11 @@ transcript = client.audio.transcriptions.create()```</TabItem>-</Tabs>\ No newline at end of file+</Tabs>++## Supported Providers++- OpenAI+- Azure+- [Fireworks AI](./providers/fireworks_ai.md#audio-transcription)+- [Groq](./providers/groq.md#speech-to-text---whisper)\ No newline at end of filediff --git a/docs/my-website/docs/providers/fireworks_ai.md b/docs/my-website/docs/providers/fireworks_ai.mdindex 3c87cc41e50..410fdb11f7c 100644--- a/docs/my-website/docs/providers/fireworks_ai.md+++ b/docs/my-website/docs/providers/fireworks_ai.md@@ -2,12 +2,20 @@ import Tabs from '@theme/Tabs';import TabItem from '@theme/TabItem';# Fireworks AI-https://fireworks.ai/+:::info**We support ALL Fireworks AI models, just set `fireworks_ai/` as a prefix when sending completion requests**:::+| Property | Details |+|-------|-------|+| Description | The fastest and most efficient inference engine to build production-ready, compound AI systems. |+| Provider Route on LiteLLM | `fireworks_ai/` |+| Provider Doc | [Fireworks AI ↗](https://docs.fireworks.ai/getting-started/introduction) |+| Supported OpenAI Endpoints | `/chat/completions`, `/embeddings`, `/completions`, `/audio/transcriptions` |++## OverviewThis guide explains how to integrate LiteLLM with Fireworks AI. You can connect to Fireworks AI in three main ways:@@ -210,4 +218,59 @@ We support ALL Fireworks AI models, just set `fireworks_ai/` as a prefix when se| fireworks_ai/nomic-ai/nomic-embed-text-v1 | `response = litellm.embedding(model="fireworks_ai/nomic-ai/nomic-embed-text-v1", input=input_text)` || fireworks_ai/WhereIsAI/UAE-Large-V1 | `response = litellm.embedding(model="fireworks_ai/WhereIsAI/UAE-Large-V1", input=input_text)` || fireworks_ai/thenlper/gte-large | `response = litellm.embedding(model="fireworks_ai/thenlper/gte-large", input=input_text)` |-| fireworks_ai/thenlper/gte-base | `response = litellm.embedding(model="fireworks_ai/thenlper/gte-base", input=input_text)` |\ No newline at end of file+| fireworks_ai/thenlper/gte-base | `response = litellm.embedding(model="fireworks_ai/thenlper/gte-base", input=input_text)` |+++## Audio Transcription++### Quick Start++<Tabs>+<TabItem value="sdk" label="SDK">++```python+from litellm import transcription+import os++os.environ["FIREWORKS_AI_API_KEY"] = "YOUR_API_KEY"+os.environ["FIREWORKS_AI_API_BASE"] = "https://audio-prod.us-virginia-1.direct.fireworks.ai/v1"++response = transcription(+ model="fireworks_ai/whisper-v3",+ audio=audio_file,+)+```++[Pass API Key/API Base in `.transcription`](../set_keys.md#passing-args-to-completion)++</TabItem>+<TabItem value="proxy" label="PROXY">++1. Setup config.yaml++```yaml+model_list:+ - model_name: fireworks-whisper-v3+ litellm_params:+ model: fireworks_ai/whisper-v3+ api_key: "os.environ/FIREWORKS_AI_API_KEY"+```++2. Start Proxy++```+litellm --config config.yaml+```++3. Test it++```bash+curl -L -X POST 'http://0.0.0.0:4000/v1/audio/transcriptions' \+-H 'Authorization: Bearer sk-1234' \+-F 'file=@"/Users/krrishdholakia/Downloads/gettysburg.wav"' \+-F 'model="whisper-v3"' \+-F 'response_format="verbose_json"' \+```++</TabItem>+</Tabs>\ No newline at end of filediff --git a/docs/my-website/docs/set_keys.md b/docs/my-website/docs/set_keys.mdindex 7686bf70493..26784ce1be0 100644--- a/docs/my-website/docs/set_keys.md+++ b/docs/my-website/docs/set_keys.md@@ -114,7 +114,7 @@ litellm.organization = "LiteLlmOrg"response = litellm.completion(messages=messages, model="gpt-3.5-turbo")```-## Passing Args to completion()+## Passing Args to completion() (or any litellm endpoint - `transcription`, `embedding`, `text_completion`, etc)You can pass the API key within `completion()` call: