Merge pull request #901 from RIERS/agent/grok-4.6-xhigh-reasoning

feat: add grok-4.6 xhigh reasoning effort
This commit is contained in:
Chenyme authored and GitHub committed 2026-08-13 22:55:01 +08:00
commit d1f4bd2156
7 files changed
+145 -7

No files matched your search

@@ -37,12 +37,14 @@ var reasoningEffortSuffixes = []string{
// generally accepted by the model family. Provider-specific wire restrictions are
// applied by providerReasoningEffortOverrides:
// - grok-4.5: low/medium/high (reasoning cannot be disabled; no xhigh/max)
// - grok-4.6: low/medium/high/xhigh (xhigh is a real upstream effort; max stays guarded)
// - grok-4.3: none/low/medium/high
// - grok-4.20-multi-agent: low/medium/high/xhigh (effort controls agent count)
//
// Unknown models default to none-only and never expand into effort aliases.
var grokReasoningCapabilities = map[string][]string{
"grok-4.5": {ReasoningEffortLow, ReasoningEffortMedium, ReasoningEffortHigh},
"grok-4.6": {ReasoningEffortLow, ReasoningEffortMedium, ReasoningEffortHigh, ReasoningEffortXHigh},
"grok-4.3": {ReasoningEffortNone, ReasoningEffortLow, ReasoningEffortMedium, ReasoningEffortHigh},
"grok-build-0.1": {ReasoningEffortNone},
"grok-4.20-0309-reasoning": {ReasoningEffortLow, ReasoningEffortMedium, ReasoningEffortHigh},
@@ -17,6 +17,9 @@ func TestSupportedReasoningEffortsPerModel(t *testing.T) {
{model: "grok-4.20-0309-reasoning", want: []string{"low", "medium", "high"}},
{model: "Console/grok-4.20-0309-reasoning", want: []string{}},
{model: "grok-4.20-multi-agent-0309", want: []string{"low", "medium", "high", "xhigh"}},
{model: "grok-4.6", want: []string{"low", "medium", "high", "xhigh"}},
{model: "Build/grok-4.6", want: []string{"low", "medium", "high", "xhigh"}},
{model: "Console/grok-4.6", want: []string{"low", "medium", "high", "xhigh"}},
{model: "grok-build-0.1", want: []string{"none"}},
{model: GrokComposer25Fast, want: []string{"none"}},
{model: "unknown-model", want: []string{"none"}},
@@ -38,6 +41,16 @@ func TestSupportedReasoningEffortsPerModel(t *testing.T) {
if !SupportsReasoningEffort("grok-4.3", "none") || SupportsReasoningEffort("grok-4.3", "xhigh") {
t.Fatal("grok-4.3 effort support mismatch")
}
if !SupportsReasoningEffort("grok-4.6", "xhigh") || !SupportsReasoningEffort("Build/grok-4.6-xhigh", "xhigh") {
t.Fatal("grok-4.6 must advertise xhigh")
}
if !SupportsReasoningEffortForProvider(account.ProviderBuild, "grok-4.6", "xhigh") ||
!SupportsReasoningEffortForProvider(account.ProviderConsole, "grok-4.6", "xhigh") {
t.Fatal("grok-4.6 xhigh must remain available through Build and Console")
}
if SupportsReasoningEffort("grok-4.6", "none") || SupportsReasoningEffort("grok-4.6", "max") {
t.Fatal("grok-4.6 must not advertise none/max")
}
if SupportsReasoningEffortForProvider(account.ProviderConsole, "grok-4.20-0309-reasoning", "low") ||
!SupportsReasoningEffortForProvider(account.ProviderBuild, "grok-4.20-0309-reasoning", "low") {
t.Fatal("grok-4.20 reasoning effort restriction must remain Console-specific")
@@ -74,6 +87,8 @@ func TestParseReasoningModelAlias(t *testing.T) {
{name: "grok-4.5 rejects xhigh", input: "grok-4.5-xhigh", wantOK: false},
{name: "grok-4.3 none", input: "grok-4.3-none", wantBase: "grok-4.3", wantLevel: "none", wantOK: true},
{name: "xhigh before high", input: "grok-4.20-multi-agent-0309-xhigh", wantBase: "grok-4.20-multi-agent-0309", wantLevel: "xhigh", wantOK: true},
{name: "grok-4.6 xhigh", input: "grok-4.6-xhigh", wantBase: "grok-4.6", wantLevel: "xhigh", wantOK: true},
{name: "grok-4.6 rejects max", input: "grok-4.6-max", wantOK: false},
{name: "prefixed base", input: "Build/grok-4.5-medium", wantBase: "Build/grok-4.5", wantLevel: "medium", wantOK: true},
{name: "base model not alias", input: "grok-4.5", wantOK: false},
{name: "single-level model no alias", input: "grok-build-0.1-none", wantOK: false},
@@ -94,6 +109,9 @@ func TestReasoningAliasPublicIDs(t *testing.T) {
if got := ReasoningAliasPublicIDs("grok-4.5"); len(got) != 3 || got[0] != "grok-4.5-low" || got[2] != "grok-4.5-high" {
t.Fatalf("grok-4.5 aliases = %#v", got)
}
if got := ReasoningAliasPublicIDs("grok-4.6"); len(got) != 4 || got[0] != "grok-4.6-low" || got[3] != "grok-4.6-xhigh" {
t.Fatalf("grok-4.6 aliases = %#v", got)
}
if got := ReasoningAliasPublicIDs("Build/grok-4.3"); len(got) != 4 || got[0] != "grok-4.3-none" {
t.Fatalf("grok-4.3 aliases = %#v", got)
}
@@ -106,4 +124,7 @@ func TestReasoningAliasPublicIDs(t *testing.T) {
if got := ReasoningAliasPublicIDsForProvider(account.ProviderBuild, "grok-4.20-0309-reasoning"); len(got) != 3 {
t.Fatalf("Console restriction leaked into Build aliases: %#v", got)
}
if got := ReasoningAliasPublicIDsForProvider(account.ProviderConsole, "grok-4.6"); len(got) != 4 || got[3] != "grok-4.6-xhigh" {
t.Fatalf("Console grok-4.6 aliases = %#v", got)
}
}
@@ -118,7 +118,9 @@ func applyBuildResponseDefaults(payload map[string]json.RawMessage) (bool, error
// normalizeBuildReasoningEffortPayload maps client aliases to levels accepted by
// the selected Grok model. Grok 4.5 and unknown models retain the proven defensive
// xhigh/max -> high behavior; explicitly supported xhigh models keep their value.
// xhigh/max -> high behavior for models without an xhigh wire contract. Models
// that explicitly support xhigh keep xhigh and map the client-only max alias to
// that highest verified upstream level.
func normalizeBuildReasoningEffortPayload(payload map[string]json.RawMessage, model string) bool {
raw, exists := payload["reasoning"]
if !exists || isEmptyJSON(raw) {
@@ -156,7 +158,11 @@ func normalizeBuildReasoningEffortPayload(payload map[string]json.RawMessage, mo
normalized = modeldomain.ReasoningEffortHigh
}
case "max":
normalized = modeldomain.ReasoningEffortHigh
if modeldomain.SupportsReasoningEffort(model, modeldomain.ReasoningEffortXHigh) {
normalized = modeldomain.ReasoningEffortXHigh
} else {
normalized = modeldomain.ReasoningEffortHigh
}
default:
return false
}
@@ -52,8 +52,13 @@ func TestNormalizeBuildReasoningEffort(t *testing.T) {
{name: "4.5 uppercase max", model: "grok-4.5", effort: "MAX", want: "high"},
{name: "multi-agent xhigh", model: "grok-4.20-multi-agent-0309", effort: "xhigh", want: "xhigh"},
{name: "multi-agent uppercase xhigh", model: "grok-4.20-multi-agent-0309", effort: "XHIGH", want: "xhigh"},
{name: "multi-agent max remains guarded", model: "grok-4.20-multi-agent-0309", effort: "max", want: "high"},
{name: "multi-agent max maps to highest supported effort", model: "grok-4.20-multi-agent-0309", effort: "max", want: "xhigh"},
{name: "4.6 xhigh", model: "grok-4.6", effort: "xhigh", want: "xhigh"},
{name: "4.6 uppercase xhigh", model: "grok-4.6", effort: "XHIGH", want: "xhigh"},
{name: "4.6 max maps to xhigh", model: "grok-4.6", effort: "max", want: "xhigh"},
{name: "prefixed 4.6 uppercase max maps to xhigh", model: "Build/grok-4.6", effort: "MAX", want: "xhigh"},
{name: "unknown xhigh remains guarded", model: "future-model", effort: "xhigh", want: "high"},
{name: "unknown max remains guarded", model: "future-model", effort: "max", want: "high"},
{name: "high", model: "grok-4.5", effort: "high", want: "high"},
{name: "medium", model: "grok-4.5", effort: "medium", want: "medium"},
}
@@ -76,6 +81,54 @@ func TestNormalizeBuildReasoningEffort(t *testing.T) {
}
}
func TestNormalizeBuildMaxAcrossCompatibilityProtocols(t *testing.T) {
tests := []struct {
name string
body []byte
}{
{name: "responses", body: []byte(`{"reasoning":{"effort":"max"},"input":"hello"}`)},
{name: "chat completions", body: func() []byte {
converted, _, err := conversation.ConvertRequestWithOptions(
[]byte(`{"model":"public","messages":[{"role":"user","content":"hello"}],"reasoning_effort":"max"}`),
"grok-4.6",
conversation.OperationChat,
)
if err != nil {
t.Fatal(err)
}
return converted
}()},
{name: "anthropic messages", body: func() []byte {
converted, _, err := conversation.ConvertRequestWithOptions(
[]byte(`{"model":"public","max_tokens":64,"messages":[{"role":"user","content":"hello"}],"thinking":{"type":"adaptive"},"output_config":{"effort":"max"}}`),
"grok-4.6",
conversation.OperationMessages,
)
if err != nil {
t.Fatal(err)
}
return converted
}()},
}
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {
normalized, err := normalizeBuildRequest(test.body, "grok-4.6")
if err != nil {
t.Fatal(err)
}
var payload map[string]any
if err := json.Unmarshal(normalized, &payload); err != nil {
t.Fatal(err)
}
reasoning, ok := payload["reasoning"].(map[string]any)
if !ok || reasoning["effort"] != "xhigh" {
t.Fatalf("reasoning = %#v, want max normalized to xhigh", payload["reasoning"])
}
})
}
}
func TestNormalizeBuildComposerStripsReasoningEffort(t *testing.T) {
tests := []struct {
name string
@@ -87,6 +87,7 @@ type grokModelCapability struct {
// Codex catalogs never diverge from the levels each model actually supports.
var grokCapabilities = map[string]grokModelCapability{
"grok-4.5": {500000, "xAI Grok 4.5 frontier model with reasoning and vision.", true},
"grok-4.6": {500000, "xAI Grok 4.6 frontier model with reasoning and vision.", true},
"grok-4.3": {1000000, "xAI Grok 4.3 high-capacity reasoning model.", true},
"grok-build-0.1": {256000, "xAI Grok Build 0.1 coding model.", false},
"grok-4.20-0309-reasoning": {2000000, "xAI Grok 4.20 reasoning model.", true},
@@ -44,6 +44,7 @@ func TestAppendReasoningModelAliasesUsesRealSupportedLevels(t *testing.T) {
now := time.Unix(100, 0).UTC()
base := newModelListItems([]modeldomain.Route{
{PublicID: "Build/grok-4.5", Provider: account.ProviderBuild, Capability: modeldomain.CapabilityResponses, CreatedAt: now},
{PublicID: "Build/grok-4.6", Provider: account.ProviderBuild, Capability: modeldomain.CapabilityResponses, CreatedAt: now},
{PublicID: "Console/grok-4.3", Provider: account.ProviderConsole, Capability: modeldomain.CapabilityResponses, CreatedAt: now},
{PublicID: "Console/grok-4.20-0309-reasoning", Provider: account.ProviderConsole, Capability: modeldomain.CapabilityResponses, CreatedAt: now},
{PublicID: "Build/grok-build-0.1", Provider: account.ProviderBuild, Capability: modeldomain.CapabilityResponses, CreatedAt: now},
@@ -53,7 +54,7 @@ func TestAppendReasoningModelAliasesUsesRealSupportedLevels(t *testing.T) {
for _, item := range expanded {
ids[item.ID] = true
}
for _, want := range []string{"grok-4.5", "grok-4.5-low", "grok-4.5-medium", "grok-4.5-high", "grok-4.3-none", "grok-4.3-low", "grok-4.3-medium", "grok-4.3-high", "grok-build-0.1"} {
for _, want := range []string{"grok-4.5", "grok-4.5-low", "grok-4.5-medium", "grok-4.5-high", "grok-4.6", "grok-4.6-low", "grok-4.6-medium", "grok-4.6-high", "grok-4.6-xhigh", "grok-4.3-none", "grok-4.3-low", "grok-4.3-medium", "grok-4.3-high", "grok-build-0.1"} {
if !ids[want] {
t.Fatalf("missing model %q in %#v", want, expanded)
}
@@ -68,6 +69,24 @@ func TestAppendReasoningModelAliasesUsesRealSupportedLevels(t *testing.T) {
}
}
func TestAppendReasoningModelAliasesIncludesConsoleGrok46XHigh(t *testing.T) {
expanded := appendReasoningModelAliases([]modelListItem{{
ID: "grok-4.6", Provider: account.ProviderConsole, Capability: modeldomain.CapabilityResponses,
}})
ids := make(map[string]bool, len(expanded))
for _, item := range expanded {
ids[item.ID] = true
}
for _, want := range []string{"grok-4.6-low", "grok-4.6-medium", "grok-4.6-high", "grok-4.6-xhigh"} {
if !ids[want] {
t.Fatalf("missing Console alias %q in %#v", want, expanded)
}
}
if ids["grok-4.6-max"] {
t.Fatalf("client compatibility value max must not be advertised as a model alias: %#v", expanded)
}
}
func TestNewCodexModelCatalogIncludesRequiredProtocolFields(t *testing.T) {
now := time.Unix(100, 0).UTC()
items := newModelListItems([]modeldomain.Route{
@@ -109,6 +128,42 @@ func TestNewCodexModelCatalogIncludesRequiredProtocolFields(t *testing.T) {
}
}
func TestCodexCatalogUsesGrok46MetadataForBaseAndXHighAlias(t *testing.T) {
items := []modelListItem{
{ID: "grok-4.6", Provider: account.ProviderBuild, Capability: modeldomain.CapabilityResponses},
{ID: "grok-4.6-xhigh", Provider: account.ProviderBuild, Capability: modeldomain.CapabilityResponses},
}
models := newCodexModelCatalog(items).Models
if len(models) != 2 {
t.Fatalf("model count = %d, want 2", len(models))
}
base := models[0]
if base.ContextWindow != 500000 || base.MaxContextWindow != 500000 {
t.Fatalf("grok-4.6 context window = %d/%d, want 500000/500000", base.ContextWindow, base.MaxContextWindow)
}
if base.Description != "xAI Grok 4.6 frontier model with reasoning and vision." {
t.Fatalf("grok-4.6 description = %q", base.Description)
}
if len(base.InputModalities) != 2 || base.InputModalities[0] != "text" || base.InputModalities[1] != "image" {
t.Fatalf("grok-4.6 input modalities = %#v, want text/image", base.InputModalities)
}
if base.DefaultReasoningLevel != "medium" || len(base.SupportedReasoningLevels) != 4 || base.SupportedReasoningLevels[3].Effort != "xhigh" {
t.Fatalf("grok-4.6 reasoning metadata = default %q, levels %#v", base.DefaultReasoningLevel, base.SupportedReasoningLevels)
}
if !base.SupportsReasoningSummaryParameter || !base.SupportsReasoningSummaries {
t.Fatalf("grok-4.6 reasoning support missing: %#v", base)
}
alias := models[1]
if alias.ContextWindow != base.ContextWindow || alias.MaxContextWindow != base.MaxContextWindow || alias.Description != base.Description {
t.Fatalf("grok-4.6-xhigh did not inherit base metadata: %#v", alias)
}
if len(alias.InputModalities) != 2 || alias.DefaultReasoningLevel != "xhigh" || len(alias.SupportedReasoningLevels) != 1 || alias.SupportedReasoningLevels[0].Effort != "xhigh" {
t.Fatalf("grok-4.6-xhigh metadata = %#v", alias)
}
}
func TestCodexCatalogMarksConsoleGrok420AsFixedReasoning(t *testing.T) {
entry := newCodexModelCatalog([]modelListItem{{
ID: "grok-4.20-0309-reasoning", Provider: account.ProviderConsole, Capability: modeldomain.CapabilityResponses,
+3 -3
View File
@@ -779,8 +779,8 @@ const resources = {
enabledDescription: "控制该密钥是否允许发起 API 请求。",
modelAliases: "模型别名",
modelAliasesDescription: "仅为当前可用且支持多个推理等级的模型生成后缀别名。",
modelAliasesBuildSupport: "Grok Build:grok-4.5、grok-3-mini、grok-3-mini-fast 支持 low / medium / high。",
modelAliasesConsoleSupport: "Grok Console:grok-4.3 支持 none / low / medium / high;grok-4.20-0309-reasoning 为固定推理模式,不支持调节 effort;grok-4.20-multi-agent-0309 额外支持 xhigh。",
modelAliasesBuildSupport: "Grok Build:grok-4.6 支持 low / medium / high / xhigh;grok-4.5、grok-3-mini、grok-3-mini-fast 支持 low / medium / high。",
modelAliasesConsoleSupport: "Grok Console:grok-4.6 支持 low / medium / high / xhigh;grok-4.3 支持 none / low / medium / high;grok-4.20-0309-reasoning 为固定推理模式,不支持调节 effort;grok-4.20-multi-agent-0309 额外支持 xhigh。",
modelAliasesUnsupported: "Grok Web、图片模型和视频模型不生成推理等级后缀。",
modelAliasesOn: "已开启:可发现并调用当前模型支持的推理等级别名。",
modelAliasesOff: "已关闭:不生成动态推理别名;既有 Console 兼容别名不受影响。",
@@ -1479,7 +1479,7 @@ const resources = {
dashboard: { title: "Dashboard", subtitle: "Welcome, {{name}}", lastUpdated: "Updated {{time}}", welcome: "Welcome, {{name}}", gatewayOnline: "Gateway healthy", gatewayOffline: "Unavailable", gatewayReady: "The gateway is ready to process API requests.", gatewayNeedsAccount: "Connect an available account to process API requests.", manageAccounts: "Manage accounts", usage: "Usage overview", seeAll: "View audits", activeAccounts: "Available accounts", accountCapacity: "{{total}} accounts · {{rate}}% success", manage: "Manage", tokens: "Total tokens", requests: "Requests", successRate: "Success rate", accountCount: "Accounts", accountDistribution: "Build {{build}} · Web {{web}} · Console {{console}}", requestSuccessRate: "{{rate}}% success", averageRequestCost: "{{cost}} per request", availableSummary: "{{active}} / {{total}} available", requestBreakdown: "{{success}} succeeded · {{failed}} failed", requestQualitySummary: "{{success}}% success · {{failed}} failed", periodSummary: "Current {{period}} range", successSummary: "{{success}} / {{total}} requests succeeded", trend: "Usage trend", trendRequests: "Requests", trendTokens: "Tokens", trendSummary: "{{requests}} requests · {{rate}}% success", resourcesTitle: "Resource availability", availability: "Account availability", unavailableAccounts: "Unavailable accounts", unavailableSummary: "{{unavailable}} / {{total}} unavailable", enabledModels: "Enabled models", modelsAvailableSummary: "{{enabled}} / {{total}} enabled", activeClientKeys: "Available keys", keysAvailableSummary: "{{active}} / {{total}} available", allTimeRequests: "All-time requests", allTimeRequestsSummary: "Since the first recorded request", qualityTitle: "Request quality", successfulRequests: "Successful requests", failedRequests: "Failed requests", topModels: "Top 10 model billing", model: "Model", share: "Call share", noTopModels: "No model calls in this period", noTrendData: "No usage data in this period", billing: "Billing", billingSummary: "Accumulated in the current {{period}} range", inputTokens: "Input", cachedTokens: "Cached", outputTokens: "Output", reasoningTokens: "Reasoning", uncachedInput: "Uncached input", visibleOutput: "Visible output", otherModels: "Other models", providerDistribution: "Provider distribution", providerDetail: "{{rate}}% success · {{tokens}} tokens", providerStripeDetail: "{{provider}} · {{requests}} requests · {{share}}%", providerNoRequests: "No provider requests", activityTitle: "Request activity", lastDays: "Last {{count}} days", activityDay: "{{date}} · {{requests}} requests", activityLess: "Less", activityMore: "More", tokenBreakdown: "Input {{input}} · Cached {{cached}} · Output {{output}} · Reasoning {{reasoning}}", tokenEfficiency: "Cache hit rate {{rate}}%", explore: "Manage resources", accountsProduct: "Upstream accounts", accountsProductDescription: "Manage OAuth credentials, health, quota, and concurrency.", keysProduct: "Client keys", keysProductDescription: "Create downstream API keys and control models, RPM, and concurrency.", modelsProduct: "Model routes", modelsProductDescription: "Manage public model IDs, upstream mappings, and availability.", auditsProduct: "Request audits", auditsProductDescription: "Inspect status, latency, and token usage records.", gatewayFooter: "A lightweight API gateway", learnMore: "View models", unknown: "Unknown" },
accounts: { title: "Upstream accounts", description: "Manage separate Grok Build OAuth and Grok Web SSO pools, health, concurrency, and quotas.", add: "Connect account", connectAccount: "Connect account", convertToBuild: "Convert to Build", convertToBuildTitle: "Convert Grok Web accounts to Build?", convertToBuildDescription: "Choose the conversion scope for the selected {{count}} Web accounts. Conversion may take a moment.", convertingProgress: "Converting {{completed}} / {{total}}", syncingProgress: "Syncing {{completed}} / {{total}}", conversionCompleted: "Conversion complete: {{created}} created, {{linked}} linked, {{skipped}} skipped, {{failed}} failed", linkedAccountTooltip: "Linked account: {{name}}", syncAll: "Sync all", renewAll: "Renew all", syncAllTitle: "Sync all accounts?", syncAllDescription: "Refresh quota data for every enabled Grok Build account.", syncAllWebDescription: "Refresh real quota data for every enabled Grok Web account.", renewAllTitle: "Renew all accounts?", renewAllDescription: "Refresh every renewable Grok Build credential. Accounts without automatic renewal will be skipped.", search: "Search accounts", deviceLogin: "Device OAuth", importAuth: "Import account files", importSSO: "Import SSO JSON", quickImportSSO: "Quick import SSO", importWebFile: "Import account files", quickImportTitle: "Quick import Grok Web accounts", quickImportDescription: "Paste multiple SSO tokens or upload a TXT file with one token per line. Duplicate entries are ignored.", ssoTokens: "SSO tokens (one per line)", uploadTXT: "Upload TXT", ssoTokenPlaceholder: "sso_token_1\nsso_token_2\nsso=token_3", importAction: "Import", exportAuth: "Export account file", exported: "Account credentials exported", exportTitle: "Export {{provider}} accounts?", exportDescription: "The JSON contains credentials for the current provider and any configured Cloudflare cookies, and can be imported back into this project. Store it only in a trusted location.", exportCount: "Export count", exportCountDescription: "Exports newest accounts first, up to 10,000 per batch.", refreshAllBilling: "Sync all quotas", account: "Account", status: "Status", type: "Type", quota: "Quota", routing: "Routing", credentialExpiry: "Credential expiry", credentialRenewal: "Renewal capability", autoRefresh: "Auto-renewal", noAutoRefresh: "No auto-renewal", buildAccountCount: "Grok Build accounts", webAccountCount: "Grok Web accounts", consoleAccountCount: "Grok Console accounts", abnormalAccountCount: "Abnormal accounts", routableAccountCount: "{{count}} routable", abnormalAccountBreakdown: "Recovering {{recovering}} · Needs attention {{attention}}", riskAccountCount: "Risk {{count}}", riskFilter: "Risk", riskNormal: "Normal", lastUsed: "Last used", createdAt: "Created at", name: "Name", priority: "Priority", maxConcurrent: "Max concurrency", minimumRemaining: "Minimum remaining threshold", routingSummary: "Priority {{priority}} · {{count}} concurrent", minimumRemainingSummary: "Minimum remaining {{value}}", minimumRemainingNotApplicable: "Minimum remaining does not apply to Free", refreshToken: "Refresh credential", refreshBilling: "Sync quota", refreshModeQuota: "Sync quota", quotaNotSynced: "Not synced", quotaResetAt: "Next reset {{time}}", quotaResetUnknown: "The upstream did not return a reset time", webQuotaUsage: "Used {{used}} / {{total}} total · {{remaining}} remaining", webModeQuotaRemaining: "{{mode}} has {{remaining}} calls remaining", webWeeklyQuotaUsage: "Weekly quota {{remaining}}% remaining", paidQuotaDetails: "{{remaining}} credits remaining", imagineQuota: "Imagine quota", imagineQuotaRemaining: "{{remaining}} remaining", imagineQuotaExhausted: "Exhausted, cooling down", imagineModeImagePro: "Image", imagineModeImageEdit: "Image edit", imagineModeVideo: "Video", imagineModeVideo720p: "Video 720p", created: "Account connected", createdWithSyncFailure: "Account connected, but initial quota or model sync failed", updated: "Account updated", updatedWithModelSyncFailure: "Account updated, but model capability sync failed. Run model sync again later.", deleted: "Account deleted", imported: "Import complete: {{created}} created, {{updated}} updated", importedWithSyncFailures: "Import complete: {{created}} created, {{updated}} updated; {{synced}} synced, {{syncFailed}} failed initial sync", billingRefreshed: "Quota synced", authRefreshed: "Credential refreshed", allBillingRefreshed: "Sync complete: {{succeeded}} succeeded, {{failed}} failed", allTokensRefreshed: "Renewal complete: {{succeeded}} succeeded, {{failed}} failed, {{skipped}} skipped", statusDisabled: "Disabled", statusReauthRequired: "Invalid", statusCooldown: "Cooling", statusActive: "Normal", botRisk: "Risk", botRiskTooltip: "Bot risk control.", botRiskTooltipSource1: "Bot risk control (bot_flag_source/bfs=1).", botRiskTooltipSource2: "Bot risk control (bot_flag_source/bfs=2).", nsfwEnabledMark: "NSFW", nsfwEnabledTooltip: "NSFW enabled · {{time}}", agreementFilter: Line truncated
models: { title: "Model routes", description: "Configure multiple independent upstream targets for one client-facing model name. Requests remain session-sticky across schedulable targets and avoid unavailable targets automatically. Multiple public names may also target the same upstream model.", sync: "Sync models", search: "Search models", model: "Public model name", publicId: "Public model name", upstream: "Upstream model", provider: "Model source", providerGrokBuild: "Grok Build", providerGrokWeb: "Grok Web", accountSupport: "Supported accounts", lastSyncedAt: "Last synced", capability: "Account model capabilities", supportSummary: "{{supported}} available / {{total}} total", awaitingCapabilitySync: "Awaiting model capability sync", unknownCapability: "Pending sync", partialCapability: "Awaiting remaining accounts", available: "Available", unavailable: "Unavailable", status: "Status", create: "Add model", createTitle: "Add model route", createDescription: "Add a Grok Build route target. Public names are customizable and may be duplicated; targets with the same name form a scheduling pool. Public names omit the source prefix, while upstream models use Build/.", editTitle: "Edit model route", bindAccounts: "Bind specific accounts", boundAccounts: "Bound accounts", bindAccountsDescription: "Route only through selected accounts; when disabled, use synchronized model capabilities.", enabledDescription: "Controls whether this route participates in model discovery and request scheduling.", searchAccounts: "Search account name or ID", selectedAccounts: "{{count}} accounts selected", selectAccountRequired: "Select at least one account", noBindableAccounts: "No accounts from this provider can be bound", deleteTitle: "Delete model route?", deleteDescription: "This removes {{name}} and its client-key permissions. A later sync recreates it if upstream accounts still support the model.", batchDeleteTitle: "Delete {{count}} selected model routes?", batchDeleteDescription: "This removes the selected routes and their client-key permissions. Models still supported by upstream accounts are recreated on a later sync.", syncing: "Preparing account capability sync", syncingProgress: "Syncing account capabilities {{completed}} / {{total}}", synced: "Synced {{count}} models", created: "Model route created", updated: "Model route updated", deleted: "Model route deleted", batchDeleted: "Deleted {{count}} model routes", batchUpdated: "Selected models updated" },
keys: { title: "Client keys", description: "Control downstream model access, RPM, concurrency, billed usage, and expiration.", search: "Search keys", create: "Create key", name: "Name", prefix: "Key", limits: "Limits", rpmLimit: "RPM limit", concurrencyLimit: "Concurrency limit", rpmShort: "RPM", concurrencyShort: "Concurrency", billingLimit: "Usage limit", models: "Allowed models", status: "Status", statusActive: "Active", statusExpired: "Expired", modelScope: "Model scope", restrictedModels: "Selected models", expires: "Expires", lastUsed: "Last used", rpm: "Requests per minute", maxConcurrent: "Max concurrency", accountScope: "Routing scope", providerScope: "Provider scope", tierScope: "Subscription scope", allProviders: "All providers", allTiers: "All subscriptions", allTiersIncludingUnknown: "All, including unknown", accountScopeDescription: "The model list follows the provider and subscription scope, and routing never falls back outside it. All subscriptions include unknown accounts; Free + Super excludes unknown accounts. Console ignores subscription restrictions.", rpmValue: "{{value}} RPM", concurrentValue: "{{value}} concurrent", unlimited: "Unlimited", billedUsage: "{{value}} billed", billingLimitDescription: "Accumulates billed request audits, preferring upstream-reported cost and otherwise using the official price estimate.", enabledDescription: "Controls whether this key can make API requests.", modelAliases: "Model aliases", modelAliasesDescription: "Suffix aliases are generated only for available models with multiple supported reasoning levels.", modelAliasesBuildSupport: "Grok Build: grok-4.5, grok-3-mini, and grok-3-mini-fast support low / medium / high.", modelAliasesConsoleSupport: "Grok Console: grok-4.3 supports none / low / medium / high; grok-4.20-0309-reasoning uses fixed reasoning and does not accept effort controls; grok-4.20-multi-agent-0309 also supports xhigh.", modelAliasesUnsupported: "Grok Web, image models, and video models do not generate reasoning-effort suffixes.", modelAliasesOn: "On: discover and call the reasoning aliases supported by available models.", modelAliasesOff: "Off: dynamic reasoning aliases are disabled; existing Console compatibility aliases remain available.", allModels: "All models", modelSearch: "Search models", selectedModels: "{{count}} models selected", selectModelRequired: "Select at least one model, or switch to All models.", modelsClearedForScopeChange: "The routing scope changed. Select the allowed models again.", neverExpires: "Never expires", selectExpiry: "Select expiration date", clearExpiry: "Clear expiration", expiryTime: "Expiration time", createTitle: "Create client key", editTitle: "Edit client key", secretTitle: "Client key created", secretDescription: "Store this key securely.", secretLabel: "Key", copySecret: "Copy", copySecretTitle: "Copy key", copySecretDescription: "Use the button below to copy your key.", secretReady: "Ready", created: "Client key created", updated: "Client key updated", deleted: "Client key deleted", deleteTitle: "Delete client key?", deleteDescription: "All downstream requests using this key will stop immediately.", batchUpdated: "Selected keys updated", batchDeleteTitle: "Delete {{count}} selected keys?" },
keys: { title: "Client keys", description: "Control downstream model access, RPM, concurrency, billed usage, and expiration.", search: "Search keys", create: "Create key", name: "Name", prefix: "Key", limits: "Limits", rpmLimit: "RPM limit", concurrencyLimit: "Concurrency limit", rpmShort: "RPM", concurrencyShort: "Concurrency", billingLimit: "Usage limit", models: "Allowed models", status: "Status", statusActive: "Active", statusExpired: "Expired", modelScope: "Model scope", restrictedModels: "Selected models", expires: "Expires", lastUsed: "Last used", rpm: "Requests per minute", maxConcurrent: "Max concurrency", accountScope: "Routing scope", providerScope: "Provider scope", tierScope: "Subscription scope", allProviders: "All providers", allTiers: "All subscriptions", allTiersIncludingUnknown: "All, including unknown", accountScopeDescription: "The model list follows the provider and subscription scope, and routing never falls back outside it. All subscriptions include unknown accounts; Free + Super excludes unknown accounts. Console ignores subscription restrictions.", rpmValue: "{{value}} RPM", concurrentValue: "{{value}} concurrent", unlimited: "Unlimited", billedUsage: "{{value}} billed", billingLimitDescription: "Accumulates billed request audits, preferring upstream-reported cost and otherwise using the official price estimate.", enabledDescription: "Controls whether this key can make API requests.", modelAliases: "Model aliases", modelAliasesDescription: "Suffix aliases are generated only for available models with multiple supported reasoning levels.", modelAliasesBuildSupport: "Grok Build: grok-4.6 supports low / medium / high / xhigh; grok-4.5, grok-3-mini, and grok-3-mini-fast support low / medium / high.", modelAliasesConsoleSupport: "Grok Console: grok-4.6 supports low / medium / high / xhigh; grok-4.3 supports none / low / medium / high; grok-4.20-0309-reasoning uses fixed reasoning and does not accept effort controls; grok-4.20-multi-agent-0309 also supports xhigh.", modelAliasesUnsupported: "Grok Web, image models, and video models do not generate reasoning-effort suffixes.", modelAliasesOn: "On: discover and call the reasoning aliases supported by available models.", modelAliasesOff: "Off: dynamic reasoning aliases are disabled; existing Console compatibility aliases remain available.", allModels: "All models", modelSearch: "Search models", selectedModels: "{{count}} models selected", selectModelRequired: "Select at least one model, or switch to All models.", modelsClearedForScopeChange: "The routing scope changed. Select the allowed models again.", neverExpires: "Never expires", selectExpiry: "Select expiration date", clearExpiry: "Clear expiration", expiryTime: "Expiration time", createTitle: "Create client key", editTitle: "Edit client key", secretTitle: "Client key created", secretDescription: "Store this key securely.", secretLabel: "Key", copySecret: "Copy", copySecretTitle: "Copy key", copySecretDescription: "Use the button below to copy your key.", secretReady: "Ready", created: "Client key created", updated: "Client key updated", deleted: "Client key deleted", deleteTitle: "Delete client key?", deleteDescription: "All downstream requests using this key will stop immediately.", batchUpdated: "Selected keys updated", batchDeleteTitle: "Delete {{count}} selected keys?" },
audits: {
title: "Request audits",
description: "Successful requests store metadata only. Failed requests retain a redacted and size-limited diagnostic snapshot.",