mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
SaladCloud api_base change
This commit is contained in:
parent
9b7f4db2d3
commit
cf77c636f7
3 changed files with 4 additions and 4 deletions
|
|
@ -7,7 +7,7 @@
|
|||
| Description | SaladCloud AI Gateway is an OpenAI-compatible LLM API service powered by distributed GPU infrastructure. |
|
||||
| Provider Route on LiteLLM | `salad_cloud/` |
|
||||
| Link to Provider Doc | [SaladCloud AI Gateway ↗](https://docs.salad.com/ai-gateway/explanation/overview) |
|
||||
| Base URL | `https://ai.salad.cloud:40404/v1` |
|
||||
| Base URL | `https://ai.salad.cloud/v1` |
|
||||
|
||||
## Required Variables
|
||||
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@
|
|||
}
|
||||
},
|
||||
"salad_cloud": {
|
||||
"base_url": "https://ai.salad.cloud:40404/v1",
|
||||
"base_url": "https://ai.salad.cloud/v1",
|
||||
"api_key_env": "SALAD_API_KEY"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ class TestSaladCloudProviderConfig:
|
|||
|
||||
salad_cloud = JSONProviderRegistry.get("salad_cloud")
|
||||
assert salad_cloud is not None
|
||||
assert salad_cloud.base_url == "https://ai.salad.cloud:40404/v1"
|
||||
assert salad_cloud.base_url == "https://ai.salad.cloud/v1"
|
||||
assert salad_cloud.api_key_env == "SALAD_API_KEY"
|
||||
|
||||
def test_salad_cloud_provider_resolution(self):
|
||||
|
|
@ -50,7 +50,7 @@ class TestSaladCloudProviderConfig:
|
|||
|
||||
assert model == "qwen3.5-35b-a3b"
|
||||
assert provider == "salad_cloud"
|
||||
assert api_base == "https://ai.salad.cloud:40404/v1"
|
||||
assert api_base == "https://ai.salad.cloud/v1"
|
||||
|
||||
def test_salad_cloud_router_config(self):
|
||||
"""Test that salad_cloud can be used in Router configuration"""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue