code: def __init__(self, config: RouteConfig) -> None:
      super().__init__(config)
      if config.model.config is None or not isinstance(
          config.model.config, AnthropicConfig
      ):
          raise TypeError(f"Invalid config type {config.model.config}")
      self.anthropic_config: AnthropicConfig = config.model.config
      self.headers = {
          "x-api-key": self.anthropic_config.anthropic_api_key
      }
      self.base_url = "https://api.anthropic.com/v1/"
  
file_path: mlflow/mlflow/gateway/providers/anthropic.py
imports: import time
  from fastapi import HTTPException
  from fastapi.encoders import jsonable_encoder
  from mlflow.gateway.config import AnthropicConfig, RouteConfig
  from mlflow.gateway.constants import MLFLOW_AI_GATEWAY_ANTHROPIC_DEFAULT_MAX_TOKENS, MLFLOW_AI_GATEWAY_ANTHROPIC_MAXIMUM_MAX_TOKENS
  from mlflow.gateway.providers.base import BaseProvider, ProviderAdapter
  from mlflow.gateway.providers.utils import rename_payload_keys, send_request
  from mlflow.gateway.schemas import chat, completions, embeddings
label_desc: Use image node_id 1 to create a new AnthropicProvider object from inherited base classes: BaseProvider, AnthropicAdapter with example: obj = AnthropicProvider(config)