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
@@ -41,6 +41,9 @@ func (a *openaiAdapter) typeName() string { return providerTypeOpenAI }
// base implements providerAdapter.
func (a *openaiAdapter) base() string { return a.baseURL }
// httpClient implements providerAdapter.
func (a *openaiAdapter) httpClient() *http.Client { return a.client }
// injectAuth implements providerAdapter: OpenAI's bearer-token scheme. A
// no-op when a.apiKey is empty, per the keyless-upstream ruling — a request
// against a keyless upstream must carry no Authorization header at all,