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 code quality check
Ishaan Jaffe7181395ffb5
diff --git a/litellm/llms/xai/common_utils.py b/litellm/llms/xai/common_utils.pyindex fdf2edbfa3e..d7ceeadd954 100644--- a/litellm/llms/xai/common_utils.py+++ b/litellm/llms/xai/common_utils.py@@ -1,4 +1,4 @@-from typing import Optional+from typing import List, Optionalimport httpx@@ -22,7 +22,7 @@ class XAIModelInfo(BaseLLMModelInfo):def get_models(self, api_key: Optional[str] = None, api_base: Optional[str] = None- ) -> list[str]:+ ) -> List[str]:api_base = self.get_api_base(api_base)api_key = self.get_api_key(api_key)if api_base is None or api_key is None: