[Bug] Model name formatting causing provider to fail #1756

Closed
opened 2026-02-16 17:32:30 -05:00 by yindo · 6 comments
Owner

Originally created by @nicolasgere on GitHub (Sep 18, 2025).

Originally assigned to: @rekram1-node on GitHub.

Hi,
When trying to use Baseten directly as a provider with the Kimi model, I encountered an API error. From the logs, we can see that the casing/formatting of the model name is being changed, which causes the Baseten API to fail:

{
  "error": {
    "name": "AI_APICallError",
    "url": "https://inference.baseten.co/v1/chat/completions",
    "requestBodyValues": {
      "model": "Moonshotai-Kimi-K2-Instruct-0905",
      "max_tokens": 32000,
      "temperature": 0,
      "messages": ...
    }
  }
}

However, Baseten expects the model name to be moonshotai/Kimi-K2-Instruct-0905, as defined in the configuration in models.dev

Originally created by @nicolasgere on GitHub (Sep 18, 2025). Originally assigned to: @rekram1-node on GitHub. Hi, When trying to use Baseten directly as a provider with the Kimi model, I encountered an API error. From the logs, we can see that the casing/formatting of the model name is being changed, which causes the Baseten API to fail: ``` { "error": { "name": "AI_APICallError", "url": "https://inference.baseten.co/v1/chat/completions", "requestBodyValues": { "model": "Moonshotai-Kimi-K2-Instruct-0905", "max_tokens": 32000, "temperature": 0, "messages": ... } } } ``` However, Baseten expects the model name to be moonshotai/Kimi-K2-Instruct-0905, as defined in the configuration in [models.dev](https://github.com/sst/models.dev/blob/dev/providers/baseten/models/Moonshotai-Kimi-K2-Instruct-0905.toml#L1)
yindo closed this issue 2026-02-16 17:32:30 -05:00
Author
Owner

@rekram1-node commented on GitHub (Sep 18, 2025):

can you share opencode.json?

@rekram1-node commented on GitHub (Sep 18, 2025): can you share opencode.json?
Author
Owner

@nicolasgere commented on GitHub (Sep 18, 2025):

I do not have any opencode.json, this is using the baseten provider

@nicolasgere commented on GitHub (Sep 18, 2025): I do not have any opencode.json, this is using the baseten provider
Author
Owner

@rekram1-node commented on GitHub (Sep 18, 2025):

Oh shoot didn't realize that was first party supported already, my bad I will look into that for you

@rekram1-node commented on GitHub (Sep 18, 2025): Oh shoot didn't realize that was first party supported already, my bad I will look into that for you
Author
Owner

@rekram1-node commented on GitHub (Sep 18, 2025):

This is a bug in models.dev I will fix it

@rekram1-node commented on GitHub (Sep 18, 2025): This is a bug in models.dev I will fix it
Author
Owner

@rekram1-node commented on GitHub (Sep 18, 2025):

I made a PR, once it is fixed I will follow up here

@rekram1-node commented on GitHub (Sep 18, 2025): I made a PR, once it is fixed I will follow up here
Author
Owner

@rekram1-node commented on GitHub (Sep 19, 2025):

if you restart opencode this should be fixed for you

@rekram1-node commented on GitHub (Sep 19, 2025): if you restart opencode this should be fixed for you
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1756