bug: multiple openrouter models do not work #16

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

Originally created by @l0gicgate on GitHub (May 17, 2025).

There are multiple openrouter models that do not work.

Here's a couple examples:

o4 Mini:
Image

GPT 4o, GPT 4.1 Nano, GPT 4.5 Preview:
Image

Originally created by @l0gicgate on GitHub (May 17, 2025). There are multiple openrouter models that do not work. Here's a couple examples: **o4 Mini:** ![Image](https://github.com/user-attachments/assets/416de7ba-e7fb-406e-b6fc-43b53eb81ee5) **GPT 4o, GPT 4.1 Nano, GPT 4.5 Preview:** ![Image](https://github.com/user-attachments/assets/7bca683a-aba9-4545-991f-10f13ae649d0)
yindo closed this issue 2026-02-16 17:24:52 -05:00
Author
Owner

@adamdotdevin commented on GitHub (May 17, 2025):

i actually think we should use the openrouter sdk as its own provider, we also don't handle retries/errors correctly when using the openai provider for openrouter.

@adamdotdevin commented on GitHub (May 17, 2025): i actually think we should use the openrouter sdk as its own provider, we also don't handle retries/errors correctly when using the openai provider for openrouter.
Author
Owner

@PhantomReactor commented on GitHub (May 17, 2025):

I believe this happens when you try to send a message and there was an error sending the previous message to provider. We probably need to remove failed messages from message history to fix this.

@PhantomReactor commented on GitHub (May 17, 2025): I believe this happens when you try to send a message and there was an error sending the previous message to provider. We probably need to remove failed messages from message history to fix this.
Author
Owner

@l0gicgate commented on GitHub (May 17, 2025):

@adamdottv I don't see an official SDK for OpenRouter. I have found this package though: https://github.com/eduardolat/openroutergo

It's not stable yet though so we probably shouldn't use it.

@l0gicgate commented on GitHub (May 17, 2025): @adamdottv I don't see an official SDK for OpenRouter. I have found this package though: https://github.com/eduardolat/openroutergo It's not stable yet though so we probably shouldn't use it.
Author
Owner

@adamdotdevin commented on GitHub (May 17, 2025):

damnit, forgot this was golang lol; please hold, discussing with dax

@adamdotdevin commented on GitHub (May 17, 2025): damnit, forgot this was golang lol; please hold, discussing with dax
Author
Owner

@adamdotdevin commented on GitHub (May 20, 2025):

this will be resolved as part of #38

@adamdotdevin commented on GitHub (May 20, 2025): this will be resolved as part of #38
Author
Owner

@thdxr commented on GitHub (Jun 14, 2025):

going to close for now as 0.1.x is a rewrite. feel free to open a new issue if it's still a problem

@thdxr commented on GitHub (Jun 14, 2025): going to close for now as 0.1.x is a rewrite. feel free to open a new issue if it's still a problem
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#16