# standardize_model_name

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/callbacks/openai_info/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,
    *,
    token_type: TokenType = TokenType.PROMPT,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `model_name` | `str` | Yes | Model name to standardize. |
| `token_type` | `TokenType` | No | Token type. Defaults to ``TokenType.PROMPT``. (default: `TokenType.PROMPT`) |

## Returns

`str`

Standardized model name.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/callbacks/openai_info.py#L315)