mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-10-20 05:56:56 +00:00
feat: native provider passthrough with key injection and best-effort accounting
This commit is contained in:
@@ -45,6 +45,9 @@ func (a *geminiAdapter) typeName() string { return providerTypeGemini }
|
||||
// base implements providerAdapter.
|
||||
func (a *geminiAdapter) base() string { return a.baseURL }
|
||||
|
||||
// httpClient implements providerAdapter.
|
||||
func (a *geminiAdapter) httpClient() *http.Client { return a.client }
|
||||
|
||||
// injectAuth implements providerAdapter: Gemini's x-goog-api-key header
|
||||
// scheme. Never a no-op — the constructor already rejected an empty apiKey.
|
||||
func (a *geminiAdapter) injectAuth(r *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user