code: def __init__(self, config: RouteConfig) -> None:
      super().__init__(config)
      if config.model.config is None or not isinstance(
          config.model.config, CohereConfig
      ):
          raise TypeError(
              f"Unexpected config type {config.model.config}"
          )
      self.cohere_config: CohereConfig = config.model.config
  
file_path: mlflow/mlflow/gateway/providers/cohere.py
imports: import time
  from typing import Any, Dict
  from fastapi import HTTPException
  from fastapi.encoders import jsonable_encoder
  from mlflow.gateway.config import CohereConfig, RouteConfig
  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 CohereProvider object from inherited base classes: BaseProvider with example: obj = CohereProvider(config)