Skip to content

fix: preserve openrouter model ids with custom api_base#1378

Closed
Alix-007 wants to merge 1 commit intosipeed:mainfrom
Alix-007:fix/issue-1247-openrouter-prefix
Closed

fix: preserve openrouter model ids with custom api_base#1378
Alix-007 wants to merge 1 commit intosipeed:mainfrom
Alix-007:fix/issue-1247-openrouter-prefix

Conversation

@Alix-007
Copy link
Contributor

Summary

  • keep openrouter/... model ids intact even when requests go through a custom api_base
  • add a regression test for proxied OpenRouter endpoints

Fixes #1247

Testing

  • go test ./pkg/providers/openai_compat

@CLAassistant
Copy link

CLAassistant commented Mar 11, 2026

CLA assistant check
All committers have signed the CLA.

@sipeed-bot sipeed-bot bot added type: bug Something isn't working domain: provider go Pull requests that update go code labels Mar 11, 2026
xuwei-xy pushed a commit to xuwei-xy/picoclaw that referenced this pull request Mar 14, 2026
@Alix-007
Copy link
Contributor Author

Closing this stale pre-review branch for queue hygiene. It is one of the oldest open PRs, never progressed into normal maintainer review, and is cheaper to rebuild on a fresh clean base later than to keep in the active queue in its current state.

@Alix-007 Alix-007 closed this Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: provider go Pull requests that update go code type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] OpenRouter provider keep removing "openrouter/" prefix when sending the POST request over the network

2 participants