mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
Merge b0c66bca61 into 77765fd302
This commit is contained in:
commit
ff04e9ea01
4 changed files with 49 additions and 0 deletions
|
|
@ -168,6 +168,11 @@
|
|||
},
|
||||
"supported_endpoints": ["/v1/chat/completions", "/v1/responses"]
|
||||
},
|
||||
"minirouter": {
|
||||
"base_url": "https://api.minirouter.sh/v1",
|
||||
"api_key_env": "MINIROUTER_API_KEY",
|
||||
"api_base_env": "MINIROUTER_API_BASE"
|
||||
},
|
||||
"meta": {
|
||||
"base_url": "https://api.meta.ai/v1",
|
||||
"api_key_env": "META_API_KEY",
|
||||
|
|
|
|||
|
|
@ -1991,6 +1991,23 @@
|
|||
"interactions": true
|
||||
}
|
||||
},
|
||||
"minirouter": {
|
||||
"display_name": "minirouter (`minirouter`)",
|
||||
"url": "https://minirouter.sh/integrations/litellm",
|
||||
"endpoints": {
|
||||
"chat_completions": true,
|
||||
"messages": false,
|
||||
"responses": false,
|
||||
"embeddings": false,
|
||||
"image_generations": false,
|
||||
"audio_transcriptions": false,
|
||||
"audio_speech": false,
|
||||
"moderations": false,
|
||||
"batches": false,
|
||||
"rerank": false,
|
||||
"a2a": false
|
||||
}
|
||||
},
|
||||
"sap": {
|
||||
"display_name": "SAP Generative AI Hub (`sap`)",
|
||||
"url": "https://docs.litellm.ai/docs/providers/sap",
|
||||
|
|
|
|||
|
|
@ -2018,6 +2018,23 @@
|
|||
"a2a": false
|
||||
}
|
||||
},
|
||||
"minirouter": {
|
||||
"display_name": "minirouter (`minirouter`)",
|
||||
"url": "https://minirouter.sh/integrations/litellm",
|
||||
"endpoints": {
|
||||
"chat_completions": true,
|
||||
"messages": false,
|
||||
"responses": false,
|
||||
"embeddings": false,
|
||||
"image_generations": false,
|
||||
"audio_transcriptions": false,
|
||||
"audio_speech": false,
|
||||
"moderations": false,
|
||||
"batches": false,
|
||||
"rerank": false,
|
||||
"a2a": false
|
||||
}
|
||||
},
|
||||
"pinstripes": {
|
||||
"display_name": "Pinstripes (`pinstripes`)",
|
||||
"url": "https://docs.litellm.ai/docs/providers/pinstripes",
|
||||
|
|
|
|||
|
|
@ -831,6 +831,16 @@ def test_get_supported_endpoints_chat_completions_present(reset_endpoints_cache)
|
|||
assert len(chat["providers"]) > 0
|
||||
|
||||
|
||||
def test_get_supported_endpoints_includes_minirouter(reset_endpoints_cache):
|
||||
endpoints = _make_client().get("/public/endpoints").json()["endpoints"]
|
||||
chat = next(item for item in endpoints if item["key"] == "chat_completions")
|
||||
|
||||
minirouter = next(
|
||||
provider for provider in chat["providers"] if provider["slug"] == "minirouter"
|
||||
)
|
||||
assert minirouter["display_name"] == "minirouter"
|
||||
|
||||
|
||||
def test_get_supported_endpoints_display_names_have_no_slug_suffix(
|
||||
reset_endpoints_cache,
|
||||
):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue