feat(config): support HTTP headers across providers

This commit is contained in:
hkfires committed 2025-11-08 20:52:05 +08:00
1 parent bb00436509
commit cfb9cb8951
8 files changed
+150 -60

No files matched your search

@@ -585,6 +585,11 @@ func applyCodexHeaders(r *http.Request, auth *cliproxyauth.Auth, token string) {
}
}
}
var attrs map[string]string
if auth != nil {
attrs = auth.Attributes
}
util.ApplyCustomHeadersFromAttrs(r, attrs)
}
func codexCreds(a *cliproxyauth.Auth) (apiKey, baseURL string) {