# standardize_model_name

> **Function** in `langchain_nvidia_ai_endpoints`

📖 [View in docs](https://reference.langchain.com/python/langchain-nvidia-ai-endpoints/callbacks/standardize_model_name)

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

## Signature

```python
standardize_model_name(
    model_name: str,
    price_map: dict = {},
    is_completion: bool = False,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `model_name` | `str` | Yes | Model name to standardize. |
| `is_completion` | `bool` | No | Whether the model is used for completion or not. (default: `False`) |

## Returns

`str`

Standardized model name.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-nvidia/blob/0ca4191cf2239c4990e4706ac1005463f27ff325/libs/ai-endpoints/langchain_nvidia_ai_endpoints/callbacks.py#L78)