Skip to content

fix: clean up OpenRouter-generated provider configs#37

Merged
houko merged 1 commit intomainfrom
fix/provider-base-urls
Apr 2, 2026
Merged

fix: clean up OpenRouter-generated provider configs#37
houko merged 1 commit intomainfrom
fix/provider-base-urls

Conversation

@houko
Copy link
Copy Markdown
Contributor

@houko houko commented Apr 2, 2026

Summary

  • Remove 5 duplicate providers that already have hand-written versions (alibaba→qwen, amazon→bedrock, bytedance→volcengine, nvidia→nvidia-nim, rekaai→reka)
  • Set correct official API base_url for 5 providers with public APIs (arcee-ai, inception, morph, reka, upstage)
  • Set key_required=false for 20 providers only accessible through hosting platforms
  • Update sync-pricing.py with SKIP_DUPLICATES, PROVIDER_API mapping, and default key_required=false for future auto-generated providers

Test plan

  • Run python scripts/sync-pricing.py --dry-run to verify script changes
  • Verify removed providers don't break catalog loading (their models exist in the hand-written versions)
  • Dashboard providers page should no longer show "CLI not found" for API providers with empty base_url

@houko houko force-pushed the fix/provider-base-urls branch from 908d9a0 to 69c0656 Compare April 2, 2026 15:26
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 908d9a063f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +42 to +46
"alibaba", # → qwen.toml
"amazon", # → bedrock.toml
"bytedance", # → volcengine.toml
"nvidia", # → nvidia-nim.toml
"rekaai", # → reka.toml (if it gets a proper base_url)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve unique model IDs before skipping duplicate providers

Adding these IDs to SKIP_DUPLICATES while deleting their TOMLs removes model entries that are not present in the mapped hand-written files (for example, nova-micro-v1/nova-premier-v1 are not in providers/bedrock.toml, nemotron-3-nano-30b-a3b is not in providers/nvidia-nim.toml, and reka-flash-3 is not in providers/reka.toml). That makes previously valid model IDs disappear from the registry and will break users or experiments pinned to them unless equivalent entries/aliases are migrated first.

Useful? React with 👍 / 👎.

- Merge unique models from duplicate providers into their hand-written
  counterparts and remove the duplicates:
  - alibaba (tongyi-deepresearch) → qwen
  - amazon (nova-2-lite, nova-micro, nova-premier) → bedrock
  - bytedance (ui-tars) → volcengine
  - nvidia (nemotron-3-nano, nemotron-3-super, etc.) → nvidia-nim
  - rekaai (reka-flash-3) → reka
- Set correct official API base_url for providers with public APIs:
  arcee-ai, inception, morph, reka, upstage
- Set key_required=false for 20 providers only accessible through
  hosting platforms (no public API)
- Update sync-pricing.py with SKIP_DUPLICATES, PROVIDER_API mapping,
  and default key_required=false for future auto-generated providers
@houko houko force-pushed the fix/provider-base-urls branch from 69c0656 to 150055c Compare April 2, 2026 15:29
@houko houko merged commit 2fa48bf into main Apr 2, 2026
3 checks passed
@houko houko deleted the fix/provider-base-urls branch April 2, 2026 15:30
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 150055ce5c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

aliases = []

[[models]]
id = "bedrock/amazon.nova-2-lite-v1:0"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve legacy Amazon Nova model IDs as aliases

This migration introduces bedrock/amazon... IDs but removes the standalone Amazon provider, so previously valid IDs (nova-2-lite-v1, nova-lite-v1, nova-micro-v1, nova-premier-v1, nova-pro-v1) disappear with no alias bridge. Any config or experiment pinned to those IDs will fail model lookup after this commit. Fresh evidence in this revision is that these old IDs are absent from the remaining provider TOMLs and aliases.toml.

Useful? React with 👍 / 👎.

aliases = ["phi-4-mini"]

[[models]]
id = "nvidia/nemotron-3-nano-30b-a3b"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep NVIDIA free model IDs before provider removal

The new NVIDIA entries only keep prefixed IDs (nvidia/...) and the commit deletes the old nvidia.toml, which removes all prior :free model IDs (nemotron-3-nano-30b-a3b:free, nemotron-3-super-120b-a12b:free, nemotron-nano-12b-v2-vl:free, nemotron-nano-9b-v2:free) without aliases. Users pinned to these IDs lose access immediately instead of being migrated safely. Fresh evidence here is that this new block defines only non-free prefixed IDs.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant