31| `Auto mode could not evaluate this action and is blocking it for safety` | [服务器错误](#auto-mode-cannot-determine-the-safety-of-an-action) |31| `Auto mode could not evaluate this action and is blocking it for safety` | [服务器错误](#auto-mode-cannot-determine-the-safety-of-an-action) |
32| `Auto mode classifier transcript exceeded context window` | [服务器错误](#auto-mode-cannot-determine-the-safety-of-an-action) |32| `Auto mode classifier transcript exceeded context window` | [服务器错误](#auto-mode-cannot-determine-the-safety-of-an-action) |
33| `Agent terminated early due to an API error` | [服务器错误](#agent-terminated-early-due-to-an-api-error) |33| `Agent terminated early due to an API error` | [服务器错误](#agent-terminated-early-due-to-an-api-error) |
34| `You've hit your session limit` / `You've hit your weekly limit` | [使用限制](#you%E2%80%99ve-hit-your-session-limit) |34| `You've hit your session limit` / `You've hit your weekly limit` | [使用限制](#youve-hit-your-session-limit) |
35| `Usage credits required for 1M context` | [使用限制](#usage-credits-required-for-1m-context) |35| `Usage credits required for 1M context` | [使用限制](#usage-credits-required-for-1m-context) |
36| `Server is temporarily limiting requests` | [使用限制](#server-is-temporarily-limiting-requests) |36| `Server is temporarily limiting requests` | [使用限制](#server-is-temporarily-limiting-requests) |
37| `Request rejected (429)` | [使用限制](#request-rejected-429) |37| `Request rejected (429)` | [使用限制](#request-rejected-429) |
42| `This organization has been disabled` | [身份验证](#this-organization-has-been-disabled) |42| `This organization has been disabled` | [身份验证](#this-organization-has-been-disabled) |
43| `Your organization has disabled API key authentication` | [身份验证](#your-organization-has-disabled-api-key-authentication) |43| `Your organization has disabled API key authentication` | [身份验证](#your-organization-has-disabled-api-key-authentication) |
44| `Your organization has disabled Claude subscription access` | [身份验证](#your-organization-has-disabled-claude-subscription-access) |44| `Your organization has disabled Claude subscription access` | [身份验证](#your-organization-has-disabled-claude-subscription-access) |
45| `Routines are disabled by your organization's policy` | [身份验证](#routines-are-disabled-by-your-organization%E2%80%99s-policy) |45| `Routines are disabled by your organization's policy` | [身份验证](#routines-are-disabled-by-your-organizations-policy) |
46| `Remote Control is only available when using Claude via api.anthropic.com` | [身份验证](#remote-control-requires-the-anthropic-api) |46| `Remote Control is only available when using Claude via api.anthropic.com` | [身份验证](#remote-control-requires-the-anthropic-api) |
47| `OAuth token revoked` / `OAuth token has expired` | [身份验证](#oauth-token-revoked-or-expired) |47| `OAuth token revoked` / `OAuth token has expired` | [身份验证](#oauth-token-revoked-or-expired) |
48| `does not meet scope requirement user:profile` | [身份验证](#oauth-scope-requirement) |48| `does not meet scope requirement user:profile` | [身份验证](#oauth-scope-requirement) |
53| `SSL certificate verification failed` | [网络](#ssl-certificate-errors) |53| `SSL certificate verification failed` | [网络](#ssl-certificate-errors) |
54| `SSL certificate error (...)` during login or startup | [网络](#ssl-certificate-errors) |54| `SSL certificate error (...)` during login or startup | [网络](#ssl-certificate-errors) |
55| `403` with `x-deny-reason: host_not_allowed` in a cloud or routine session | [网络](#host-not-allowed-in-a-cloud-session) |55| `403` with `x-deny-reason: host_not_allowed` in a cloud or routine session | [网络](#host-not-allowed-in-a-cloud-session) |
56| `Couldn't reconnect to your Remote Control session` | [网络](#couldn%E2%80%99t-reconnect-to-your-remote-control-session) |56| `Couldn't reconnect to your Remote Control session` | [网络](#couldnt-reconnect-to-your-remote-control-session) |
57| `Prompt is too long` | [请求错误](#prompt-is-too-long) |57| `Prompt is too long` | [请求错误](#prompt-is-too-long) |
58| `Error during compaction: Conversation too long` | [请求错误](#error-during-compaction-conversation-too-long) |58| `Error during compaction: Conversation too long` | [请求错误](#error-during-compaction-conversation-too-long) |
59| `Request too large` | [请求错误](#request-too-large) |59| `Request too large` | [请求错误](#request-too-large) |
61| `Unable to resize image` | [请求错误](#unable-to-resize-image) |61| `Unable to resize image` | [请求错误](#unable-to-resize-image) |
62| `PDF too large` / `PDF is password protected` | [请求错误](#pdf-errors) |62| `PDF too large` / `PDF is password protected` | [请求错误](#pdf-errors) |
63| `Extra inputs are not permitted` | [请求错误](#extra-inputs-are-not-permitted) |63| `Extra inputs are not permitted` | [请求错误](#extra-inputs-are-not-permitted) |
64| `There's an issue with the selected model` | [请求错误](#there%E2%80%99s-an-issue-with-the-selected-model) |64| `There's an issue with the selected model` | [请求错误](#theres-an-issue-with-the-selected-model) |
65| `Model ... is not a recognized model id` | [请求错误](#model-is-not-a-recognized-model-id) |65| `Model ... is not a recognized model id` | [请求错误](#model-is-not-a-recognized-model-id) |
66| `Claude Opus is not available with the Claude Pro plan` | [请求错误](#claude-opus-is-not-available-with-the-claude-pro-plan) |66| `Claude Opus is not available with the Claude Pro plan` | [请求错误](#claude-opus-is-not-available-with-the-claude-pro-plan) |
67| `Model ... is restricted by your organization's settings` | [请求错误](#model-is-restricted-by-your-organization%E2%80%99s-settings) |67| `Model ... is restricted by your organization's settings` | [请求错误](#model-is-restricted-by-your-organizations-settings) |
68| `thinking.type.enabled is not supported for this model` | [请求错误](#thinking-type-enabled-is-not-supported-for-this-model) |68| `thinking.type.enabled is not supported for this model` | [请求错误](#thinking-type-enabled-is-not-supported-for-this-model) |
69| `max_tokens must be greater than thinking.budget_tokens` | [请求错误](#thinking-budget-exceeds-output-limit) |69| `max_tokens must be greater than thinking.budget_tokens` | [请求错误](#thinking-budget-exceeds-output-limit) |
70| `API Error: 400 due to tool use concurrency issues` | [请求错误](#tool-use-or-thinking-block-mismatch) |70| `API Error: 400 due to tool use concurrency issues` | [请求错误](#tool-use-or-thinking-block-mismatch) |
271 271
272这些错误表示与您的账户或计划相关的配额已达到。它们不同于[服务器错误](#server-errors),后者会影响所有人。272这些错误表示与您的账户或计划相关的配额已达到。它们不同于[服务器错误](#server-errors),后者会影响所有人。
273 273
274<h3 id="you’ve-hit-your-session-limit">274<h3 id="youve-hit-your-session-limit">
275 您已达到会话限制275 您已达到会话限制
276</h3>276</h3>
277 277
312 312
313* 运行 `/model` 并选择不带 `[1m]` 后缀的变体以回退到标准上下文窗口313* 运行 `/model` 并选择不带 `[1m]` 后缀的变体以回退到标准上下文窗口
314* 运行 `/usage-credits` 在 Pro 和 Max 上为 1M 变体启用按量计费,或在 Team 和 Enterprise 上向您的管理员请求314* 运行 `/usage-credits` 在 Pro 和 Max 上为 1M 变体启用按量计费,或在 Team 和 Enterprise 上向您的管理员请求
315* 如果 `/model` 后错误仍然存在,1M 模型 ID 可能在其他地方设置。有关要按优先级顺序检查的配置位置,请参阅[所选模型存在问题](#there%E2%80%99s-an-issue-with-the-selected-model)。315* 如果 `/model` 后错误仍然存在,1M 模型 ID 可能在其他地方设置。有关要按优先级顺序检查的配置位置,请参阅[所选模型存在问题](#theres-an-issue-with-the-selected-model)。
316* 要从模型选择器中完全删除 1M 变体,请设置 [`CLAUDE_CODE_DISABLE_1M_CONTEXT=1`](/zh-CN/env-vars)316* 要从模型选择器中完全删除 1M 变体,请设置 [`CLAUDE_CODE_DISABLE_1M_CONTEXT=1`](/zh-CN/env-vars)
317 317
318<h3 id="server-is-temporarily-limiting-requests">318<h3 id="server-is-temporarily-limiting-requests">
491* 使用 Console API 密钥而不是您的订阅进行身份验证。有关设置,请参阅 [Claude Console 身份验证](/zh-CN/authentication#claude-console-authentication)。491* 使用 Console API 密钥而不是您的订阅进行身份验证。有关设置,请参阅 [Claude Console 身份验证](/zh-CN/authentication#claude-console-authentication)。
492* 如果您是管理员且看不到启用访问的选项,请联系 [Anthropic 支持](https://support.claude.com)492* 如果您是管理员且看不到启用访问的选项,请联系 [Anthropic 支持](https://support.claude.com)
493 493
494<h3 id="routines-are-disabled-by-your-organization’s-policy">494<h3 id="routines-are-disabled-by-your-organizations-policy">
495 例程被您的组织的策略禁用495 例程被您的组织的策略禁用
496</h3>496</h3>
497 497
687 687
688有关访问级别和默认允许列表,请参阅[网络访问](/zh-CN/claude-code-on-the-web#network-access)。本地 CLI 会话不受此策略影响。688有关访问级别和默认允许列表,请参阅[网络访问](/zh-CN/claude-code-on-the-web#network-access)。本地 CLI 会话不受此策略影响。
689 689
690<h3 id="couldn’t-reconnect-to-your-remote-control-session">690<h3 id="couldnt-reconnect-to-your-remote-control-session">
691 无法重新连接到您的 Remote Control 会话691 无法重新连接到您的 Remote Control 会话
692</h3>692</h3>
693 693
841* 配置您的网关以转发 `anthropic-beta` 头。请参阅[功能传递](/zh-CN/llm-gateway-protocol#feature-pass-through)了解网关必须转发的内容。841* 配置您的网关以转发 `anthropic-beta` 头。请参阅[功能传递](/zh-CN/llm-gateway-protocol#feature-pass-through)了解网关必须转发的内容。
842* 作为备选方案,在启动前设置 [`CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1`](/zh-CN/env-vars)。这会禁用需要测试版头的功能,以便请求通过无法转发它的网关成功。842* 作为备选方案,在启动前设置 [`CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1`](/zh-CN/env-vars)。这会禁用需要测试版头的功能,以便请求通过无法转发它的网关成功。
843 843
844<h3 id="there’s-an-issue-with-the-selected-model">844<h3 id="theres-an-issue-with-the-selected-model">
845 There's an issue with the selected model845 There's an issue with the selected model
846</h3>846</h3>
847 847
864 Model is not a recognized model id864 Model is not a recognized model id
865</h3>865</h3>
866 866
867您传递给模型切换的模型字符串不是模型别名、此 Claude Code 版本知道的模型 ID,也不是以 `claude-` 开头的 ID。常见原因是 ID 中的拼写错误、显示名称(如 `Sonnet 5`,其中需要 ID `claude-sonnet-5`)或仅较新 Claude Code 版本识别的别名。Claude Code 立即拒绝切换。在 v2.1.200 之前,Claude Code 保存字符串并在下一个请求时失败,出现[所选模型有问题](#there%E2%80%99s-an-issue-with-the-selected-model)。867您传递给模型切换的模型字符串不是模型别名、此 Claude Code 版本知道的模型 ID,也不是以 `claude-` 开头的 ID。常见原因是 ID 中的拼写错误、显示名称(如 `Sonnet 5`,其中需要 ID `claude-sonnet-5`)或仅较新 Claude Code 版本识别的别名。Claude Code 立即拒绝切换。在 v2.1.200 之前,Claude Code 保存字符串并在下一个请求时失败,出现[所选模型有问题](#theres-an-issue-with-the-selected-model)。
868 868
869```text theme={null}869```text theme={null}
870Model "claud-sonnet-5" is not a recognized model id. Did you mean 'claude-sonnet-5'?870Model "claud-sonnet-5" is not a recognized model id. Did you mean 'claude-sonnet-5'?
878 878
879* 运行不带参数的 `/model` 来打开选择器并从您账户可用的模型中选择,然后传递那里显示的别名或 ID879* 运行不带参数的 `/model` 来打开选择器并从您账户可用的模型中选择,然后传递那里显示的别名或 ID
880* 如果您使用了较新 Claude Code 版本支持的别名,运行 `claude update`。以 `claude-` 开头的完整 ID 即使模型比您的 Claude Code 版本更新,也会通过此检查,因此不需要升级。880* 如果您使用了较新 Claude Code 版本支持的别名,运行 `claude update`。以 `claude-` 开头的完整 ID 即使模型比您的 Claude Code 版本更新,也会通过此检查,因此不需要升级。
881* v2.1.200 之前保存的模型不会被此检查修复。如果过时的值一直出现,请从[所选模型有问题](#there%E2%80%99s-an-issue-with-the-selected-model)下列出的位置中删除它。881* v2.1.200 之前保存的模型不会被此检查修复。如果过时的值一直出现,请从[所选模型有问题](#theres-an-issue-with-the-selected-model)下列出的位置中删除它。
882* 检查仅在 Anthropic API 上运行。在 Amazon Bedrock、Google Cloud 的 Agent Platform、Microsoft Foundry、[Claude Platform on AWS](/zh-CN/claude-platform-on-aws) 和 [LLM 网关](/zh-CN/llm-gateway)后面或自定义 `ANTHROPIC_BASE_URL`,您的提供商或网关定义模型名称,因此 Claude Code 接受任何字符串并将其传递。882* 检查仅在 Anthropic API 上运行。在 Amazon Bedrock、Google Cloud 的 Agent Platform、Microsoft Foundry、[Claude Platform on AWS](/zh-CN/claude-platform-on-aws) 和 [LLM 网关](/zh-CN/llm-gateway)后面或自定义 `ANTHROPIC_BASE_URL`,您的提供商或网关定义模型名称,因此 Claude Code 接受任何字符串并将其传递。
883 883
884<h3 id="claude-opus-is-not-available-with-the-claude-pro-plan">884<h3 id="claude-opus-is-not-available-with-the-claude-pro-plan">
897* 如果您最近升级了计划但仍然看到这个,运行 `/logout` 然后 `/login`。存储的令牌反映您登录时的计划,因此在现有会话中在网络上升级不会生效,直到您重新进行身份验证。897* 如果您最近升级了计划但仍然看到这个,运行 `/logout` 然后 `/login`。存储的令牌反映您登录时的计划,因此在现有会话中在网络上升级不会生效,直到您重新进行身份验证。
898* 请参阅 [claude.com/pricing](https://claude.com/pricing) 了解每个计划包含哪些模型898* 请参阅 [claude.com/pricing](https://claude.com/pricing) 了解每个计划包含哪些模型
899 899
900<h3 id="model-is-restricted-by-your-organization’s-settings">900<h3 id="model-is-restricted-by-your-organizations-settings">
901 Model is restricted by your organization's settings901 Model is restricted by your organization's settings
902</h3>902</h3>
903 903