add(docs): Add Cline best practices

This commit is contained in:
Max Qian 2025-01-14 14:48:40 +08:00
parent c1588ae350
commit 82f03fb04a
4 changed files with 28 additions and 0 deletions

View File

@ -33,3 +33,17 @@ Meet Cline, an AI assistant that can use your CLI aNd Editor.
## Integrate with DeepSeek API ## Integrate with DeepSeek API
![image](./assets/cline-02.png) ![image](./assets/cline-02.png)
## Best practices
1. **Disable Cline's Auto Approve Feature**: It is recommended to disable Cline's Auto Approve feature when using DeepSeek to reduce resource consumption and minimize the risk of lag caused by concurrent multiple requests.
2. **Use Modified Versions of Cline**: For example, Roo-Cline or ALine. These modified versions carry relatively shorter contexts, handle requests more smoothly, and have a higher cache hit rate, which can help save API call costs.
3. **Use DeepSeek with Caution for Large Projects**: For large code projects, it is not recommended to use DeepSeek + Cline. Large projects typically carry a large amount of code context, which can significantly slow down API request processing.
4. **Switch to Other LLM Providers**: It is recommended to switch to other LLM providers when using Cline for a smoother experience.
## Roo Cline
![image](./assets/roocline-00.png)

View File

@ -33,3 +33,17 @@ Cline 是一款能够使用您的 CLI 和编辑器的 AI 助手。
## 与 DeepSeek API 集成 ## 与 DeepSeek API 集成
![image](./assets/cline-02.png) ![image](./assets/cline-02.png)
## 最佳实践
1. **关闭 Cline 的 Auto Approve 功能**:建议在使用 DeepSeek 时,关闭 Cline 的 Auto Approve 功能,以降低资源消耗,降低多请求因并发带来的卡顿风险。
2. **使用 Cline 改版**:例如 Roo-Cline 或 ALine。这些改版携带的上下文相对短处理请求时表现更为流畅且缓存命中率更高可以帮助节省 API 调用成本。
3. **慎用 DeepSeek 处理大型工程**:对于大型代码工程,不建议使用 DeepSeek + Cline。大型工程通常会携带大量代码上下文会导致 API 请求处理速度明显变慢。
4. **更换其他 LLM 提供商**:建议您在使用 Cline 时,更换其他 LLM 提供商,以获得更流畅的体验。
## Roo Cline
![image](./assets/roocline-00.png)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 137 KiB

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB