fix(settings): describe Grok cross-client mapping default as enabled

The Grok cross-client model mapping is enabled by default: InitializeDefaultSettings writes "true", and the parser treats a missing/empty value as enabled ("Default true (missing/empty -> enabled)"). However the comment above the defaults and the admin settings UI hint (EN and ZH) both claimed "disabled by default", contradicting the actual behavior.

Align the comment and both UI hints with the real default. No behavior change.
This commit is contained in:
TT
2026-09-05 23:17:34 +08:00
parent ab99d56e96
commit 32bf3d0f33
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -192,7 +192,8 @@ func (s *SettingService) InitializeDefaultSettings(ctx context.Context) error {
SettingKeyChannelMonitorHideThroughput: "true",
SettingKeyChannelMonitorShowQuota: "false",
// Grok: safe defaults — no cross-vendor model rewrite unless operators enable it.
// Grok compatibility defaults: cross-client mapping stays enabled unless
// operators explicitly disable it.
SettingKeyGrokDefaultTextModel: "grok-4.6",
SettingKeyGrokCrossClientModelMapEnabled: "true",
SettingKeyGrokDefaultBaseURLMode: GrokDefaultBaseURLModeCLI,