Skip to content

Commit 41f947b

Browse files
op7418claude
andcommitted
docs(comment): useProviderModels 注释不再枚举 sonnet/opus/haiku,改指 canonical env aliases
DEFAULT_MODEL_OPTIONS 已派生自 ENV_CLAUDE_CODE_MODELS(含 opus-4-8 / fable-5),注释里的旧三元组枚举会误导读者;按 Codex 建议改为指向来源。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 323d014 commit 41f947b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/hooks/useProviderModels.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,10 @@ export function useProviderModels(
342342
// `providerWasFilteredOut` signal below to surface an inline notice
343343
// and gate send.
344344
const currentProviderIdValue = currentGroup?.provider_id ?? preferredProviderId;
345-
// DEFAULT_MODEL_OPTIONS (sonnet/opus/haiku) is reserved for the env
346-
// provider only — when the user is genuinely on the built-in Claude
347-
// Code path, the picker shows the canonical short aliases.
345+
// DEFAULT_MODEL_OPTIONS (the canonical env aliases, derived from
346+
// ENV_CLAUDE_CODE_MODELS) is reserved for the env provider only — when
347+
// the user is genuinely on the built-in Claude Code path, the picker
348+
// shows the canonical short aliases.
348349
//
349350
// We deliberately do NOT fall back to defaults on `providerGroups.length === 0`
350351
// anymore: with the API-failure path now synthesizing an `env` group in

0 commit comments

Comments
 (0)