code: def embeddings_to_model(cls, payload, config):
      key_mapping = {"input": "texts"}
      for k1, k2 in key_mapping.items():
          if k2 in payload:
              raise HTTPException(
                  status_code=422,
                  detail=f"Invalid parameter {k2}. Use {k1} instead.",
              )
      return rename_payload_keys(payload, key_mapping)
  
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 4 for calling the CohereAdapter obj's underlying member method code with example usage: obj.embeddings_to_model(cls, payload, config) and returns: rename_payload_keys