Spaces:
Sleeping
Sleeping
from abc import ABC, abstractmethod | |
from typing import TYPE_CHECKING, Any, Optional | |
if TYPE_CHECKING: | |
from litellm.litellm_core_utils.litellm_logging import Logging as _LiteLLMLoggingObj | |
LiteLLMLoggingObj = _LiteLLMLoggingObj | |
else: | |
LiteLLMLoggingObj = Any | |
class BaseAnthropicMessagesConfig(ABC): | |
def validate_environment( | |
self, | |
headers: dict, | |
model: str, | |
api_key: Optional[str] = None, | |
) -> dict: | |
pass | |
def get_complete_url(self, api_base: Optional[str], model: str) -> str: | |
""" | |
OPTIONAL | |
Get the complete url for the request | |
Some providers need `model` in `api_base` | |
""" | |
return api_base or "" | |
def get_supported_anthropic_messages_params(self, model: str) -> list: | |
pass | |