更新了 .env.example,新增聊天模型配置,以提升对话处理能力。 增强了 README.md,反映了包括需求澄清、代码复用和自动重试在内的新功能。 重构了 agent.py,以支持多模型交互,并为无法在本地执行的任务新增了引导处理逻辑。 改进了 SandboxRunner,增加了任务执行成功校验,并加入了工作区清理功能。 扩展了 HistoryManager,支持任务摘要生成以及记录的批量删除。 优化了 chat_view.py 和 history_view.py 中的 UI 组件,提升用户体验,包括 Markdown 渲染和任务管理选项。
23 lines
746 B
Plaintext
23 lines
746 B
Plaintext
# ========================================
|
|
# LocalAgent Configuration Example
|
|
# ========================================
|
|
# Usage:
|
|
# 1. Copy this file to .env
|
|
# 2. Fill in your API Key and other settings
|
|
# ========================================
|
|
|
|
# SiliconFlow API Configuration
|
|
# Get API Key: https://siliconflow.cn
|
|
LLM_API_URL=https://api.siliconflow.cn/v1/chat/completions
|
|
LLM_API_KEY=your_api_key_here
|
|
|
|
# Model Configuration
|
|
# Intent recognition model (small model recommended for speed)
|
|
INTENT_MODEL_NAME=Qwen/Qwen2.5-7B-Instruct
|
|
|
|
# Chat model (medium model recommended for conversation)
|
|
CHAT_MODEL_NAME=Qwen/Qwen2.5-32B-Instruct
|
|
|
|
# Code generation model (large model recommended for quality)
|
|
GENERATION_MODEL_NAME=Qwen/Qwen2.5-72B-Instruct
|