code: def completions_to_model(cls, payload, config):
      key_mapping = {
          "stop": "stop_sequences",
          "n": "num_generations",
      }
      cls.check_keys_against_mapping(key_mapping, payload)
      # The range of Cohere's temperature is 0-5, but ours is 0-2, so we scale it.
      if "temperature" in payload:
          payload["temperature"] = 2.5 * payload["temperature"]
      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 3 for calling the CohereAdapter obj's underlying member method code with example usage: obj.completions_to_model(cls, payload, config) and returns: rename_payload_keys