Skip to content

[Bug]: Grok response modifies input model name, affects completion_cost #11244

Open
@ming-jeng

Description

@ming-jeng

What happened?

Image

Get this error Exception: This model isn't mapped yet. model=xai/grok-3-mini, custom_llm_provider=xai. Add it here - https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json.

Notice the model name changes from xai/grok-3-mini-beta to xai/grok-3-mini, which is not a model name currently in the model_prices_and_context_window.json.

Maybe it shouldn't modify the input model name?

Relevant log output

Are you a ML Ops Team?

No

What LiteLLM version are you on ?

v1.71.2

Twitter / LinkedIn details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions