Spaces:
Sleeping
Sleeping
| # OpenAI API Key(必需) | |
| OPENAI_API_KEY=your-api-key-here | |
| # API 基础 URL(可选,默认值:https://api.openai.com/v1) | |
| OPENAI_BASE_URL=https://qa1145-openrouter-free-api.hf.space/v1 | |
| # 模型名称(可选,默认值:gpt-4) | |
| OPENAI_MODEL=nemotron-3-nano-30b-a3b | |
| # 代码目录路径(仓库根目录) | |
| CODE_DIR=./repos | |
| # 预加载目录树深度(可选,默认值:3,0 表示不限制) | |
| TREE_DEPTH=4 | |
| # 最大步骤数(可选,默认值:10) | |
| MAX_STEPS=50 | |
| # 是否启用流式输出(可选,默认值:true) | |
| STREAM_OUTPUT=true | |
| # ============ 仓库自动同步配置 ============ | |
| # 方式1:逗号分隔的 URL 列表 | |
| # REPO_URLS=https://github.com/user/repo1.git,https://github.com/user/repo2.git | |
| # 方式2:带编号的配置(推荐) | |
| # 仓库1 - AstrBot-docs | |
| REPO_1_URL=https://github.com/AstrBotDevs/AstrBot-docs.git | |
| REPO_1_NAME=AstrBot-docs | |
| REPO_1_BRANCH=v4 | |
| REPO_1_AUTO_UPDATE=true | |
| # 仓库2 - AstrBot | |
| REPO_2_URL=https://github.com/AstrBotDevs/AstrBot.git | |
| REPO_2_NAME=AstrBot | |
| REPO_2_BRANCH=master | |
| REPO_2_AUTO_UPDATE=true | |
| # 仓库3 - NapCatDocs | |
| REPO_3_URL=https://github.com/NapNeko/NapCatDocs.git | |
| REPO_3_NAME=NapCatDocs | |
| REPO_3_BRANCH=main | |
| REPO_3_AUTO_UPDATE=true | |
| # 仓库4 - NapCatQQ | |
| REPO_4_URL=https://github.com/NapNeko/NapCatQQ.git | |
| REPO_4_NAME=NapCatQQ | |
| REPO_4_BRANCH=main | |
| REPO_4_AUTO_UPDATE=true | |
| # 启动时自动同步(可选,默认值:true) | |
| # REPO_SYNC_ON_STARTUP=true | |
| # ============ 重试配置 ============ | |
| # API 调用最大重试次数(可选,默认值:3) | |
| MAX_RETRIES=5 | |
| # 重试延迟策略(可选,默认值:1,2,4,单位:秒) | |
| RETRY_DELAYS=0,0,1,2,4 | |