Revert "[STG-1573] Add providerOptions for extensible model auth (#1822)"
Merged
TK
7mo ago+175+175+012345678901234567890123456789-2662-2662-0123456789012345678901234567890123456789
Summary
- Reverts PR #1822 which added
providerOptionsfor extensible model auth (Bedrock/Vertex) - Removes
providerOptionsbag from model config schema, Bedrock examples, provider config, and server-sidemodelClientOptionsstorage/passthrough
Note
- One test from PR #1980 (
accepts verified Browserbase session settingsinmodel-config-schema.test.ts) was removed as part of this revert since the test file was originally created by #1822. That test may need to be re-added in a separate file.
Made with Cursor
Summary by cubic
Reverts the providerOptions-based model auth from #1822 (STG-1573) and restores the previous auth flow: no provider options passthrough; model auth is via the x-model-api-key header.
-
Refactors
- Removed
providerOptionsand server-sidemodelClientOptionspassthrough from core and server. - Deleted Bedrock examples and provider config; pruned related schemas and tests.
- Simplified OpenAPI: removed ProviderOptions/ModelClientOptions components and helpers extracting model config from request bodies.
- Removed
-
Migration
- Remove
providerOptionsfrom all model configs and requests. - Do not send
modelClientOptionsin session start; the server ignores it. - Send model API keys via the
x-model-api-keyheader; remove anyskipApiKeyFallbackusage. - If you adopted
vertex/*names from #1822, switch togoogle/*.
- Remove