Merge branch 'BerriAI:main' into main

This commit is contained in:
Shixian Sheng
2025-03-28 14:38:28 -04:00
committed by GitHub
2 changed files with 2 additions and 5 deletions
-3
View File
@@ -16,9 +16,6 @@
<a href="https://pypi.org/project/litellm/" target="_blank">
<img src="https://img.shields.io/pypi/v/litellm.svg" alt="PyPI Version">
</a>
<a href="https://dl.circleci.com/status-badge/redirect/gh/BerriAI/litellm/tree/main" target="_blank">
<img src="https://dl.circleci.com/status-badge/img/gh/BerriAI/litellm/tree/main.svg?style=svg" alt="CircleCI">
</a>
<a href="https://www.ycombinator.com/companies/berriai">
<img src="https://img.shields.io/badge/Y%20Combinator-W23-orange?style=flat-square" alt="Y Combinator W23">
</a>
+2 -2
View File
@@ -2,7 +2,7 @@
This file contains common utils for anthropic calls.
"""
from typing import Optional, Union
from typing import List, Optional, Union
import httpx
@@ -41,7 +41,7 @@ class AnthropicModelInfo(BaseLLMModelInfo):
def get_models(
self, api_key: Optional[str] = None, api_base: Optional[str] = None
) -> list[str]:
) -> List[str]:
api_base = AnthropicModelInfo.get_api_base(api_base)
api_key = AnthropicModelInfo.get_api_key(api_key)
if api_base is None or api_key is None: