feat: native provider passthrough with key injection and best-effort accounting

This commit is contained in:
2026-08-20 11:24:24 +01:00
parent 3ed473bdfe
commit 8d470b173b
8 changed files with 760 additions and 0 deletions
+3
View File
@@ -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) {