fix: route providers through correct APIs (#39)

Providers with known public APIs use their official endpoints:
- meta-llama → api.llama.com/v1
- microsoft → models.inference.ai.azure.com (GitHub Models)
- ibm-granite → us-south.ml.cloud.ibm.com/ml/v1 (watsonx)
- tencent → api.hunyuan.cloud.tencent.com/v1
- morph → api.morphllm.com/v1

16 remaining providers without known public APIs route through
OpenRouter (base_url = openrouter.ai/api/v1, OPENROUTER_API_KEY).

sync-pricing.py updated with PROVIDER_API mapping.
This commit is contained in:
Evan authored and GitHub committed 2026-04-02 23:55:42 +08:00
1 parent aa5822992a
commit c192f493b4
8 files changed
+21 -14

No files matched your search

+2 -2
View File
@@ -3,8 +3,8 @@
[provider]
id = "eleutherai"
display_name = "Eleutherai"
api_key_env = "OPENROUTER_API_KEY"
base_url = "https://openrouter.ai/api/v1"
api_key_env = "KRATER_API_KEY"
base_url = "https://api.krater.ai/v1"
key_required = true
[[models]]