> For the complete documentation index, see [llms.txt](https://ayakaleaf-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://ayakaleaf-pro.ayaka.space/latex/zh-cn/geng-duo-zhu-ti/12-error-assist.md).

# Error Assist

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

## 如何使用 Error Assist

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

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

### 使用 Error Assist 修复错误

要从 Error Assist 获取错误的解释和修复建议，请按以下步骤操作：

1. 点击编辑区域左侧边栏中的错误标记，或打开错误日志。

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

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

然后你会收到对该错误的解释，而且在大多数情况下还会提供建议的修复方案。当提供建议修复时，应修改的代码行将以红色显示，建议的修改将以绿色显示。

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

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

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

### 对 AI 回复提供反馈

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

### 每日使用限制

Error Assist 每天可免费使用一次。若要在一天内多次使用 Error Assist，你可以购买附加功能以增加使用次数 [此处](https://www.overleaf.com/user/subscription/new?planCode=assistant-annual)。该附加功能允许无限使用 Error Assist（受公平使用政策约束）。

### 谁可以使用和购买 Error Assist？

无法使用或购买 Error Assist 的用户包括：

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

群组订阅的主管理员只能为自己购买该附加功能，而不能为整个群组购买。我们计划在未来提供群组和组织范围的订阅。请与我们联系，以便在该选项可用时收到通知。如果群组中的个人成员希望在免费每日限制之外使用 Error Assist，他们必须独立购买该附加功能 [此处](https://www.overleaf.com/user/subscription/new?planCode=assistant-annual).

### 如何禁用（关闭）Error Assist？

请按以下步骤关闭 Error Assist：

1. 前往你的 [账户设置](https://www.overleaf.com/user/settings) 页面，然后向下滚动到 **集成** 部分。Error Assist 位于 **AI 功能**.
2. 选择 **下。禁用** AI 功能

![即可禁用 Error Assist。这将禁用所有 AI，包括 Writefull。](/files/f8ac89f74d5455bb38c73c1533c48578ad0bdd7e)

## Error Assist 与你的数据

Error Assist 由 OpenAI 提供支持。你项目中的部分内容会发送给 OpenAI，以生成它提供的回答。 **你的数据不会用于训练该模型**.

### 与 OpenAI 共享了什么？

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

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

## 故障排除

### 我应用建议后还能撤销吗？

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

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

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

### 为什么 Error Assist 没有提供合适的修复？

Error Assist 会对错误进行解释，但你的 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://ayakaleaf-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.
