The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Fix test_default_api_base failing because of chatgpt as provider
Sameer Kankutea5ea08a0bfe7
diff --git a/litellm/utils.py b/litellm/utils.pyindex 948d6e97f4d..06eceefe0cc 100644--- a/litellm/utils.py+++ b/litellm/utils.py@@ -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():diff --git a/tests/local_testing/test_get_llm_provider.py b/tests/local_testing/test_get_llm_provider.pyindex 4df910bc73e..9b07111ea54 100644--- a/tests/local_testing/test_get_llm_provider.py+++ b/tests/local_testing/test_get_llm_provider.py@@ -137,6 +137,9 @@ def test_default_api_base():# Get the API base for the given providerif 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