Fix: documentation for litellm sdk

This commit is contained in:
Sameer Kankute 2025-12-23 16:27:35 +05:30
parent 0174c56c90
commit af8483b37e
2 changed files with 46 additions and 3 deletions

View file

@ -29,7 +29,8 @@ response = litellm.anthropic.messages.acreate(
model="minimax/MiniMax-M2.1",
messages=[{"role": "user", "content": "Hello, how are you?"}],
api_key="your-minimax-api-key",
api_base="https://api.minimax.io/anthropic/v1/messages"
api_base="https://api.minimax.io/anthropic/v1/messages",
max_tokens=1000
)
print(response.choices[0].message.content)
@ -47,7 +48,8 @@ import litellm
response = litellm.anthropic.messages.acreate(
model="minimax/MiniMax-M2.1",
messages=[{"role": "user", "content": "Hello!"}]
messages=[{"role": "user", "content": "Hello!"}],
max_tokens=1000
)
```
@ -91,7 +93,8 @@ response = litellm.anthropic.messages.acreate(
model="minimax/MiniMax-M2.1",
messages=[{"role": "user", "content": "What's the weather in SF?"}],
tools=tools,
api_key="your-minimax-api-key"
api_key="your-minimax-api-key",
max_tokens=1000
)
```

View file

@ -1357,6 +1357,20 @@
"litellm_provider": "azure",
"mode": "chat"
},
"azure_ai/gpt-oss-120b": {
"input_cost_per_token": 1.5e-7,
"output_cost_per_token": 6e-7,
"litellm_provider": "azure_ai",
"max_input_tokens": 131072,
"max_output_tokens": 131072,
"max_tokens": 131072,
"mode": "chat",
"source": "https://azure.microsoft.com/en-us/pricing/details/cognitive-services/openai-service/",
"supports_function_calling": true,
"supports_parallel_function_calling": true,
"supports_response_schema": true,
"supports_tool_choice": true
},
"azure/eu/gpt-4o-2024-08-06": {
"deprecation_date": "2026-02-27",
"cache_read_input_token_cost": 1.375e-06,
@ -3707,6 +3721,32 @@
"/v1/images/generations"
]
},
"azure/gpt-image-1.5": {
"cache_read_input_image_token_cost": 2e-06,
"cache_read_input_token_cost": 1.25e-06,
"input_cost_per_token": 5e-06,
"input_cost_per_image_token": 8e-06,
"litellm_provider": "azure",
"mode": "image_generation",
"output_cost_per_image_token": 3.2e-05,
"supported_endpoints": [
"/v1/images/generations",
"/v1/images/edits"
]
},
"azure/gpt-image-1.5-2025-12-16": {
"cache_read_input_image_token_cost": 2e-06,
"cache_read_input_token_cost": 1.25e-06,
"input_cost_per_token": 5e-06,
"input_cost_per_image_token": 8e-06,
"litellm_provider": "azure",
"mode": "image_generation",
"output_cost_per_image_token": 3.2e-05,
"supported_endpoints": [
"/v1/images/generations",
"/v1/images/edits"
]
},
"azure/low/1024-x-1024/gpt-image-1-mini": {
"input_cost_per_pixel": 2.0751953125e-09,
"litellm_provider": "azure",