mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-11-26 10:06:31 +00:00
feat(provider): per-model and per-path upstreams (#8)
Add modelBaseUrls and pathBaseUrls to openai-type providers.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user