mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
test: annotate registry metadata test parameters
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
cb8daee55f
commit
fd1fad5e05
2 changed files with 5 additions and 3 deletions
|
|
@ -54,7 +54,7 @@ class TestChatGPTResponsesAPITransformation:
|
|||
"chatgpt/gpt-5.6-terra",
|
||||
],
|
||||
)
|
||||
def test_chatgpt_responses_model_metadata(self, model_name, local_model_cost_map):
|
||||
def test_chatgpt_responses_model_metadata(self, model_name: str, local_model_cost_map: None) -> None:
|
||||
model_info = litellm.get_model_info(model_name)
|
||||
|
||||
assert model_info["litellm_provider"] == "chatgpt"
|
||||
|
|
@ -75,7 +75,9 @@ class TestChatGPTResponsesAPITransformation:
|
|||
"gpt-5.6-terra",
|
||||
],
|
||||
)
|
||||
def test_chatgpt_models_bridge_chat_completions_to_responses(self, model_name, local_model_cost_map):
|
||||
def test_chatgpt_models_bridge_chat_completions_to_responses(
|
||||
self, model_name: str, local_model_cost_map: None
|
||||
) -> None:
|
||||
"""A chat completions request for these models must take the Responses bridge.
|
||||
|
||||
`gpt-5.6-*` also exists as an openai chat model, so an unregistered
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ from litellm.utils import (
|
|||
# Adds the parent directory to the system path
|
||||
|
||||
|
||||
def test_cloudflare_model_info_includes_rpm(local_model_cost_map):
|
||||
def test_cloudflare_model_info_includes_rpm(local_model_cost_map: None) -> None:
|
||||
assert litellm.get_model_info("cloudflare/@cf/meta/llama-3.1-8b-instruct-fp8")["rpm"] == 300
|
||||
assert litellm.get_model_info("cloudflare/@cf/moonshotai/kimi-k2.6")["rpm"] == 20
|
||||
assert litellm.get_model_info("cloudflare/@cf/openai/whisper-large-v3-turbo")["rpm"] == 720
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue