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:
@@ -148,6 +148,7 @@ func setConcurrencyHeader(h http.Header, n int) {
|
||||
// learning and the RateLimit-Policy header on w. The returned func must run
|
||||
// when the upstream exchange ends.
|
||||
func (g *Gateway) trackUpstream(ctx context.Context, w http.ResponseWriter, provider, model string) (context.Context, func()) {
|
||||
ctx = withUpstreamModel(ctx, model)
|
||||
c := g.concurrency
|
||||
if c == nil {
|
||||
return withAttemptRecorder(ctx, func(resp *http.Response, attemptErr error) {
|
||||
|
||||
Reference in New Issue
Block a user