standardize_model_name#

langchain_nvidia_ai_endpoints.callbacks.standardize_model_name(model_name: str, price_map: dict = {}, is_completion: bool = False) str[source]#

Standardize the model name to a format that can be used in the OpenAI API.

Parameters:
  • model_name (str) – Model name to standardize.

  • is_completion (bool) – Whether the model is used for completion or not. Defaults to False.

  • price_map (dict) –

Returns:

Standardized model name.

Return type:

str