
AI-commit
使用 AI 生成 git commit message 的 VS Code 插件,审查 Git 暂存区修改,生成符合 Conventional Commit 规范的提交消息,简化提交流程,保持提交规范一致。
UI
获取 Sophnet 配置信息
API Key 创建
- 点击API Key -> 新的API Key
- 输入API Key名称,然后点击确认
- 保存生成的API Key 密钥
- 点击API Key -> 新的API Key
获取模型
- 以Qwen2.5-72B-Instruct 为例,首先确保已开启Qwen2.5-72B-Instruct模型服务。
- 点击详情,调用示例中参数model即为需要配置的模型名称
- 以Qwen2.5-72B-Instruct 为例,首先确保已开启Qwen2.5-72B-Instruct模型服务。
配置 Sophnet API
- 设置 -> extensions 找到AI Commit
- Ai-commit AI_PROVIDER 选择openai
- 在OpenAI API KEY文本框中输入你的Sophnet API Key
- OpenAI Base URL文本框填入https://www.sophnet.com/api/open-apis
- OpenAI Model文本框填入在Sophnet官网中获取模型名称
- 然后重启VS Code