adapters: openai is a static-key vendor

One registry line — `"openai": StaticKey`. The generic static-key adapter
already serves any vendor (accept is the vendor-independent seal, deliver is the
value unchanged, and refresh/identity/usage are not implemented), so a second
static-key vendor is data, not code. The shape-selection test now asserts
For("openai") reports static-key.

Claude-Session: https://claude.ai/code/session_01LrgweAeERJYBg88c5cKDzF
This commit is contained in:
2026-09-07 04:25:26 +02:00
parent e03833ec40
commit 55753d5cfd
2 changed files with 11 additions and 0 deletions
+1
View File
@@ -167,6 +167,7 @@ type UsageRow struct {
var registry = map[string]Shape{
"anthropic": RefreshableGrant,
"anthropic-api-key": StaticKey,
"openai": StaticKey,
}
// For returns the adapter for a vendor, refusing an unknown one clearly.