chore(release): bump version to 0.6.0 and update changelog

- CHANGELOG 记录 LLM 层迁移至 rig-core 0.41 及四项行为变化
- README(中/英)项目结构树更新为新 llm 模块布局
- 仓库内 AI 服务集成文档同步为新实现(.qoder,不入库)
This commit is contained in:
2026-08-17 16:08:46 +08:00
parent 3c2b96a4d1
commit a0ea03fd90
4 changed files with 31 additions and 15 deletions

View File

@@ -9,6 +9,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
暂无。 暂无。
## [0.6.0] - 2026-08-17
### ✨ 新功能
- LLM 层整体迁移至 rig-core 0.41:六家 providerOllama / OpenAI / Anthropic / Kimi / DeepSeek / OpenRouter统一由 rig 原生客户端驱动,删除约 2100 行手写 HTTP/SSE/重试代码
- 新 LLM 门面(`src/llm/rig/`provider 枚举 + 单一生成入口 + 凭据校验rig VerifyClient+ 错误映射层;提示词与提交解析拆分至独立模块
- Anthropic 支持自定义 `base_url`(此前被静默忽略,本次修复)
- 新增基于 rig mock 后端的 LLM 层离线测试(请求形状、流式事件、错误映射),并附 6 家 provider 的 `#[ignore]` 实网冒烟用例
### 🐞 错误修复
- 各 provider 超时统一由 `llm.timeout` 配置控制(此前默认超时 60/120/300 秒不一致)
- 消除 Ollama 客户端构造时的 panic`expect` 式构造)
### 🔧 其他变更(行为变化)
- Ollama 请求端点由 `/api/generate` 改为 `/api/chat`(功能等价;自定义 Ollama 代理需兼容 chat 端点)
- 非流式请求不再做应用层重试(此前按错误文案字符串匹配重试 3 次);流式请求由 rig 的 SSE 机制自动重连
- 可用性校验端点变化DeepSeek 改为 `/user/balance`、OpenRouter 改为 `/key`、Anthropic 改为 `/v1/models`(对外表现为 `LLM provider 'xxx' is not available` 语义不变)
- 依赖瘦身:移除 `reqwest`(0.12) 与 `async-trait` 直接依赖,不引入 rig agent/fastembed/lancedb 等组件
## [0.5.0] - 2026-07-24 ## [0.5.0] - 2026-07-24
### ✨ 新功能 ### ✨ 新功能

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "quicommit" name = "quicommit"
version = "0.5.5" version = "0.6.0"
edition = "2024" edition = "2024"
authors = ["Sidney Zhang <zly@lyzhang.me>"] authors = ["Sidney Zhang <zly@lyzhang.me>"]
description = "A powerful Git assistant tool with AI-powered commit/tag/changelog generation" description = "A powerful Git assistant tool with AI-powered commit/tag/changelog generation"

View File

@@ -542,13 +542,12 @@ src/
│ ├── commit.rs │ ├── commit.rs
│ ├── tag.rs │ ├── tag.rs
│ └── changelog.rs │ └── changelog.rs
├── llm/ # LLM provider implementations ├── llm/ # LLM integration (rig-core based)
│ ├── ollama.rs │ ├── mod.rs
│ ├── openai.rs │ ├── prompts.rs
│ ├── anthropic.rs │ ├── parsing.rs
│ ├── kimi.rs │ ├── thinking.rs
── deepseek.rs ── rig/ # rig provider facade
│ └── openrouter.rs
├── i18n/ # Internationalization support ├── i18n/ # Internationalization support
│ ├── messages.rs │ ├── messages.rs
│ └── translator.rs │ └── translator.rs

View File

@@ -536,13 +536,12 @@ src/
│ ├── commit.rs │ ├── commit.rs
│ ├── tag.rs │ ├── tag.rs
│ └── changelog.rs │ └── changelog.rs
├── llm/ # LLM提供商实现 ├── llm/ # LLM 集成(基于 rig-core
│ ├── ollama.rs │ ├── mod.rs
│ ├── openai.rs │ ├── prompts.rs
│ ├── anthropic.rs │ ├── parsing.rs
│ ├── kimi.rs │ ├── thinking.rs
── deepseek.rs ── rig/ # rig provider 门面
│ └── openrouter.rs
├── i18n/ # 国际化支持 ├── i18n/ # 国际化支持
│ ├── messages.rs │ ├── messages.rs
│ └── translator.rs │ └── translator.rs