standardize_model_name#

langchain_community.callbacks.openai_info.standardize_model_name(model_name: str, 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.

Returns:

Standardized model name.

Return type:

str