The cursor agent confirms that the LiteLLM endpoint is reachable and returns a status of 200 and the public model that my corporate LiteLLM proxy is consuming.
I create a custom model which is the name of the Public Model but when attempting to use that model when prompting it says “Model Name is Invalid”?
Oh, hi @Grant_Godley, you should ask your moderators the exact string name of the models that are available to you via this proxy! The model name is case sensitive, meaning that even 1 wrong character and it won’t allow you to use it properly! hope this help
Hey, this is a known limitation. Cursor validates the model name against an internal list of known models, and any name that is not in that list gets rejected as Model Name is Invalid. The case sensitivity tip above won’t help. The issue isn’t the casing, it’s that a custom name from your LiteLLM proxy fails validation, even when you’re using your own API key.
We’re tracking this on our side, but we don’t have an exact ETA yet.
A workaround that sometimes works is to map your LiteLLM model to a model name that Cursor already recognizes, like gpt-4o or claude-sonnet-4, then call it by that name from Cursor. Not ideal, but it can bypass the validation.