GitHub Copilot
GitHub Copilot 模型配置。
功能特性
- 代码补全
- 代码解释
- 调试建议
- 文档生成
配置
yaml
providers:
github_copilot:
enabled: true
github_token: "${GITHUB_TOKEN}"
copilot_api_url: "https://api.github.com/copilot"
models:
- "copilot-chat"
- "copilot-complete"
options:
language: "auto"
temperature: 0.1
max_tokens: 1000使用示例
yaml
# 在配置中使用
tools:
code_assistant:
provider: "github_copilot"
model: "copilot-chat"功能支持
| 功能 | 状态 | 说明 |
|---|---|---|
| 代码补全 | ✅ | 实时补全 |
| 聊天问答 | ✅ | 代码问答 |
| 解释代码 | ✅ | 详细解释 |
| 生成文档 | ✅ | 注释生成 |