mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
Fix test_default_api_base failing because of chatgpt as provider
This commit is contained in:
parent
a5b8da7f87
commit
a5ea08a0bf
2 changed files with 4 additions and 0 deletions
|
|
@ -2735,6 +2735,7 @@ def register_model(model_cost: Union[str, dict]): # noqa: PLR0915
|
|||
# Skip get_model_info for these providers during model registration
|
||||
_skip_get_model_info_providers = {
|
||||
LlmProviders.GITHUB_COPILOT.value,
|
||||
LlmProviders.CHATGPT.value,
|
||||
}
|
||||
|
||||
for key, value in loaded_model_cost.items():
|
||||
|
|
|
|||
|
|
@ -137,6 +137,9 @@ def test_default_api_base():
|
|||
# Get the API base for the given provider
|
||||
if provider == "github_copilot":
|
||||
continue
|
||||
# Skip chatgpt as it requires OAuth authentication
|
||||
if provider == "chatgpt":
|
||||
continue
|
||||
# Skip ragflow as it requires specific model format: ragflow/chat/{id}/{model} or ragflow/agent/{id}/{model}
|
||||
if provider == "ragflow":
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue