You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e7181c0
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(types): move provider default model data into provider definitions
Each provider definition now declares its own `getDefaultModelId`, mirroring
`getModelId`, so per-provider default-model data lives next to the rest of that
provider's configuration instead of in a central switch.
- Add `getDefaultModelId` to `ProviderDefinition`/`createProviderDefinition`
and a shared `NO_DEFAULT_MODEL_ID` constant.
- Move every provider's default into its definition; Z.ai keeps its
region-dependent logic by reading `zaiApiLine` from settings.
- Remove the `getProviderDefaultModelId` switch from `providers/index.ts`.
- Re-add `getProviderDefaultModelId(provider, settings)` in
`provider-settings.ts`, resolving the definition and falling back to the
Anthropic default.
- Update webview callers to pass `apiConfiguration` and drop the duplicated
Z.ai region logic in `providerModelConfig.ts`.
- Extend tests to cover the new accessor and the Z.ai API-line defaults.
0 commit comments