> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/zh-cn/geng-duo-zhu-ti/12-error-assist.md).

# Error Assist

**错误助手** 是 Overleaf 基于 AI 的工具，旨在帮助你快速识别、理解并解决项目中的 LaTeX 代码错误。错误助手通过为 LaTeX 代码错误提供解释和建议修复方案，简化调试过程，让你更专注于写作，而不是调试。

## 如何使用错误助手

在 Overleaf 的项目中，如果你有 [LaTeX 代码错误](/latex/zh-cn/latex-ji-chu/05-errors.md)，写作面板左侧边栏会出现一个错误标记。你也可以在错误日志中找到所有错误。

请记住，最佳做法是按顺序修复项目中的错误，因为较早的错误有时会影响文档后面的部分。

### 使用错误助手修复错误

要通过错误助手获取错误的解释和修复方案，请按以下步骤操作：

1. 点击写作面板左侧边栏中的错误标记，或打开错误日志。

![显示 Overleaf AI 错误助手为错误建议修复方案的图片。](/files/c168dc88b61e613b924ef487095fa6eab0c37034)

3. 点击 **建议修复**.

随后你会获得对错误的解释，并且在大多数情况下，也会提供一个建议修复方案。当提供修复建议时，应更改的代码行会以红色显示，建议修改内容会以绿色显示。

请记住，AI 可能会出错，因此在应用建议之前，务必检查该建议是否合理。如果你对建议的修复不满意，可以点击刷新图标生成新的回复。

6. 要应用修复，请点击 **应用建议**。修复将会完成，你的项目将重新编译。

![应用 Overleaf AI 错误助手建议的修复。](/files/a58950d667cbcaa42c8dc399e663b5d77593af10)

### 对 AI 回复提供反馈

你可以使用 AI 回复下方出现的 **赞** 和 **踩** 按钮，对 AI 回复的质量和有用性进行反馈。

### 每日使用限制

错误助手每天可免费使用一次。若要在一天内多次使用错误助手，你可以购买附加功能以获得更多使用次数 [这里](https://www.overleaf.com/user/subscription/new?planCode=assistant-annual)。该附加功能允许无限次使用错误助手（适用合理使用政策）。

### 谁可以使用和购买错误助手？

无法使用或购买错误助手的用户包括：

* **受管理账户：** 其账户 [由...管理](/latex/zh-cn/zhi-shi-ku/137-understanding-managed-overleaf-accounts.md#how-do-i-know-if-my-overleaf-account-is-managed) 的用户或机构无法使用错误助手。
* **已选择退出的组织：** 如果你的组织已选择退出错误助手，那么该组织内的个人用户将无法访问错误助手，也无法购买该附加功能。

团队订阅的主管理员只能为自己购买该附加功能，不能为整个团队购买。我们计划未来提供团队和组织级订阅。请联系我们，以便在该选项可用时通知你。如果团队中的个人成员希望在每日免费额度之外使用错误助手，他们必须自行购买附加功能 [这里](https://www.overleaf.com/user/subscription/new?planCode=assistant-annual).

### 如何禁用（关闭）错误助手？

请按以下步骤关闭错误助手：

1. 前往你的 [账户设置](https://www.overleaf.com/user/settings) 页面，然后向下滚动到 **集成** 部分。错误助手列在 **AI 功能**.
2. 选择 **禁用 AI 功能** 下方，以禁用错误助手。这将禁用所有 AI 功能，包括 Writefull。

![显示如何在 Overleaf 上禁用 Writefull 的图片](/files/f8ac89f74d5455bb38c73c1533c48578ad0bdd7e)

## 错误助手与你的数据

错误助手由 OpenAI 提供支持。你的项目中的部分内容将发送给 OpenAI，以生成它提供的答案。 **你的数据不会被用于训练模型**.

### 与 OpenAI 共享了什么？

* 完整的错误信息
* 项目中相关的代码行
* 项目中文件名列表

在你请求针对错误信息的帮助之前，不会共享任何内容。

## 故障排除

### 在我应用建议后，可以撤销它吗？

如果建议未按预期工作，可以使用编辑器面板工具栏或 Ctrl/Cmd+Z 撤销。

### 为什么我看不到某些错误的“建议修复”选项？

错误助手依赖于完整的错误信息，该信息显示在 **日志和输出文件** 面板中，以生成解释和建议修复。这意味着你不会看到 [代码检查](/latex/zh-cn/zhi-shi-ku/029-code-check.md) 错误在你输入时出现的“建议修复”选项。

### 为什么错误助手没有提供合适的修复方案？

错误助手会提供错误的解释，但你的 LaTeX 代码越专业，出现不准确结果的可能性就越大。它也不一定了解你的自定义命令，因此可能会提供更通用的解决方案。

## 更多 LaTeX 错误帮助

* [排查 LaTeX 问题的提示和技巧](/latex/zh-cn/wen-da/81-tips-and-tricks-for-troubleshooting-latex.md)
* [如何查找并修复生成文件中报告的错误](/latex/zh-cn/zhi-shi-ku/066-how-to-find-and-fix-errors-reported-in-generated-files.md)
* [错误](/latex/zh-cn/latex-ji-chu/05-errors.md)
* [使用“遇到第一个错误即停止”编译模式](/latex/zh-cn/zhi-shi-ku/149-using-the-stop-on-first-error-compilation-mode.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/zh-cn/geng-duo-zhu-ti/12-error-assist.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
