mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-09 14:57:59 -05:00
* feat(i18n): initial i18n setup
- Configured i18n settings in docusaurus.config.js
- Implemented Translate component and translate function in key components
* docs(i18n): complete documentation internationalization
- Added support for Simplified Chinese and French
* Update docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/troubleshooting/troubleshooting.md
* Update docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/troubleshooting/troubleshooting.md
* Update docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/troubleshooting/troubleshooting.md
* fix(build): resolve broken links causing build failure
- Fix issue causing build errors due to broken links in Docusaurus documentation.
- Resolve uncontrolled resource consumption in braces (see: https://github.com/advisories/GHSA-grv7-fg5c-xmjg).
- Bump Docusaurus to ^3.4.0 to fix MDX loader: linkify should process the md AST instead of the md string.
* fix: sync with commit 868b746
- Change to `docusaurus write-translations` to provide translation for JSON files.
---------
Co-authored-by: Yufan Song <33971064+yufansong@users.noreply.github.com>
Co-authored-by: Graham Neubig <neubig@gmail.com>
1.7 KiB
1.7 KiB
sidebar_position
| sidebar_position |
|---|
| 2 |
🤖 LLM 支持
OpenDevin 可以兼容任何 LLM 后端。 关于所有可用 LM 提供商和模型的完整列表,请参阅 litellm 文档。
:::warning OpenDevin 将向你配置的 LLM 发出许多提示。大多数这些 LLM 都是收费的——请务必设定支出限额并监控使用情况。 :::
LLM_MODEL 环境变量控制在编程交互中使用的模型。
但在使用 OpenDevin UI 时,你需要在设置窗口中选择你的模型(左下角的齿轮)。
某些 LLM 可能需要以下环境变量:
LLM_API_KEYLLM_BASE_URLLLM_EMBEDDING_MODELLLM_EMBEDDING_DEPLOYMENT_NAMELLM_API_VERSION
我们有一些指南,介绍了如何使用特定模型提供商运行 OpenDevin:
如果你使用其他提供商,我们鼓励你打开一个 PR 来分享你的配置!
关于替代模型的注意事项
最好的模型是 GPT-4 和 Claude 3。目前的本地和开源模型 远没有那么强大。当使用替代模型时, 你可能会看到信息之间的长时间等待, 糟糕的响应,或关于 JSON格式错误的错误。OpenDevin 的强大程度依赖于其驱动的模型——幸运的是,我们团队的人员 正在积极致力于构建更好的开源模型!
API 重试和速率限制
一些 LLM 有速率限制,可能需要重试操作。OpenDevin 会在收到 429 错误或 API 连接错误时自动重试请求。
你可以设置 LLM_NUM_RETRIES,LLM_RETRY_MIN_WAIT,LLM_RETRY_MAX_WAIT 环境变量来控制重试次数和重试之间的时间。
默认情况下,LLM_NUM_RETRIES 为 5,LLM_RETRY_MIN_WAIT 和 LLM_RETRY_MAX_WAIT 分别为 3 秒和 60 秒。