feat(provider): per-model and per-path upstreams (#8)

Add modelBaseUrls and pathBaseUrls to openai-type providers.
This commit is contained in:
2026-11-08 07:26:14 +00:00
committed by GitHub
parent aa9a925d49
commit a4fda5f9cb
10 changed files with 512 additions and 9 deletions
+4
View File
@@ -877,6 +877,10 @@ func newModelRegistry(adapters map[string]providerAdapter, cfg *Config, log func
explicit[id] = true
explicitModels[id] = true
}
for id := range pc.ModelBaseURLs {
explicit[id] = true
explicitModels[id] = true
}
m.states[name] = &providerState{
explicit: explicit,