fix: route OpenRouter-only providers through OpenRouter API (#38)

Providers without their own public API now use OpenRouter as their
base_url with OPENROUTER_API_KEY, making them testable and usable
when the user has an OpenRouter key configured.

- 20 OpenRouter-only providers: set base_url to openrouter.ai/api/v1
- morph: set correct official API (api.morphllm.com/v1)
- sync-pricing.py: default to OpenRouter routing for new providers
This commit is contained in:
Evan authored and GitHub committed 2026-04-02 23:41:25 +08:00
1 parent 2fa48bfdcb
commit aa5822992a
21 files changed
+66 -67

No files matched your search

+3 -3
View File
@@ -3,9 +3,9 @@
[provider]
id = "nousresearch"
display_name = "Nousresearch"
api_key_env = "NOUSRESEARCH_API_KEY"
base_url = ""
key_required = false
api_key_env = "OPENROUTER_API_KEY"
base_url = "https://openrouter.ai/api/v1"
key_required = true
[[models]]
id = "hermes-2-pro-llama-3-8b"