mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-05 07:37:50 +00:00
chore(cheapaimodel): regenerate provider endpoint support after merging main
This commit is contained in:
parent
8c050d04e3
commit
044f3284ab
3 changed files with 33 additions and 11 deletions
|
|
@ -3349,16 +3349,25 @@
|
|||
"url": "https://docs.litellm.ai/docs/providers/cheapaimodel",
|
||||
"endpoints": {
|
||||
"chat_completions": true,
|
||||
"messages": false,
|
||||
"responses": false,
|
||||
"responses": true,
|
||||
"text_completion": true,
|
||||
"embeddings": false,
|
||||
"image_generations": false,
|
||||
"image_edits": false,
|
||||
"audio_transcriptions": false,
|
||||
"audio_speech": false,
|
||||
"moderations": false,
|
||||
"batches": false,
|
||||
"rerank": false,
|
||||
"a2a": false
|
||||
"ocr": false,
|
||||
"search": false,
|
||||
"moderations": false,
|
||||
"realtime": false,
|
||||
"video_generations": false,
|
||||
"batches": false,
|
||||
"messages": true,
|
||||
"interactions": true,
|
||||
"systemone": false,
|
||||
"a2a": true,
|
||||
"generateContent": true
|
||||
}
|
||||
},
|
||||
"recraft": {
|
||||
|
|
|
|||
|
|
@ -3349,16 +3349,25 @@
|
|||
"url": "https://docs.litellm.ai/docs/providers/cheapaimodel",
|
||||
"endpoints": {
|
||||
"chat_completions": true,
|
||||
"messages": false,
|
||||
"responses": false,
|
||||
"responses": true,
|
||||
"text_completion": true,
|
||||
"embeddings": false,
|
||||
"image_generations": false,
|
||||
"image_edits": false,
|
||||
"audio_transcriptions": false,
|
||||
"audio_speech": false,
|
||||
"moderations": false,
|
||||
"batches": false,
|
||||
"rerank": false,
|
||||
"a2a": false
|
||||
"ocr": false,
|
||||
"search": false,
|
||||
"moderations": false,
|
||||
"realtime": false,
|
||||
"video_generations": false,
|
||||
"batches": false,
|
||||
"messages": true,
|
||||
"interactions": true,
|
||||
"systemone": false,
|
||||
"a2a": true,
|
||||
"generateContent": true
|
||||
}
|
||||
},
|
||||
"recraft": {
|
||||
|
|
|
|||
|
|
@ -123,8 +123,12 @@ def test_cheapaimodel_supported_endpoints():
|
|||
matrix_path = Path(litellm.__file__).parent / "provider_endpoints_support_backup.json"
|
||||
endpoints = json.loads(matrix_path.read_text())["providers"]["cheapaimodel"]["endpoints"]
|
||||
|
||||
# The matrix is generated by scripts/generate_provider_endpoints_support.py, which
|
||||
# also marks the endpoints LiteLLM bridges onto chat completions. cheapaimodel itself
|
||||
# serves no embeddings, images, audio or rerank.
|
||||
assert endpoints["chat_completions"] is True
|
||||
assert [name for name, supported in endpoints.items() if supported] == ["chat_completions"]
|
||||
for name in ("embeddings", "image_generations", "audio_transcriptions", "audio_speech", "rerank"):
|
||||
assert endpoints[name] is False, name
|
||||
|
||||
|
||||
def test_cheapaimodel_chat_completion_request():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue