7deae286ca
- 新增 ias-db crate,集中管理 PostgreSQL 连接池和 SQLx 迁移
- 迁移 ias-service/migrations 到 ias-db/migrations
- ias-main 改用 ias_db::connect_db(),ias-service 只接 PgPool
- 新增操作日志 HTTP 查询接口 (GET /v1/logs, GET /v1/logs/{id})
- 新增操作日志 Web 前端页面,支持按级别/模块/关键词筛选
- 消息队列关键节点增加操作日志写入
- ias-mail 新增 mark_remote_message_seen,IMAP 已读同步
- 工作流配置加载改为文件级容错 (load_configs_with_warnings)
- ias-context 工具调用说明更新为 query_api_docs + call_http_api
- 新增高德地图地理编码 HTTP 能力配置
模块版本: ias-db 0.1.0, ias-ai 0.1.14, ias-context 0.1.6, ias-http 0.1.15, ias-mail 0.1.16, ias-service 0.1.25, ias-main 0.2.27
36 lines
1.7 KiB
SQL
36 lines
1.7 KiB
SQL
INSERT INTO ias_upgrade_logs (
|
||
version,
|
||
released_at,
|
||
title,
|
||
description,
|
||
changes,
|
||
modules
|
||
) VALUES (
|
||
'0.2.13',
|
||
'2026-07-07T00:00:00+08:00',
|
||
'修复多工具调用上下文消息序列',
|
||
'修复模型返回多个 tool_calls 时上下文中缺少部分 tool 消息导致 LLM 请求 400 的问题,并过滤历史不完整工具调用片段。',
|
||
'[
|
||
"修复模型返回多个 tool_calls 时只执行第一个工具导致后续请求缺少 tool 消息的问题;现在会为每个 tool_call_id 生成对应工具结果。",
|
||
"服务队列新增批量工具结果处理,所有 tool 消息都写入上下文后才触发下一次 LLM 请求,避免中间态消息序列发送给模型。",
|
||
"上下文快照会过滤历史中不完整的 assistant/tool 调用片段,防止已存在的坏数据继续触发 insufficient tool messages following tool_calls message。",
|
||
"新增单元测试覆盖完整多工具调用保留、缺失工具结果过滤,以及 /v1 API catch-all 路由构建。",
|
||
"无数据库结构变化;ias-common 升级至 0.1.1,ias-ai 升级至 0.1.3,ias-context 升级至 0.1.2,ias-service 升级至 0.1.10。"
|
||
]'::jsonb,
|
||
'{
|
||
"ias-common": "0.1.1",
|
||
"ias-ai": "0.1.3",
|
||
"ias-wechat": "0.1.0",
|
||
"ias-context": "0.1.2",
|
||
"ias-http": "0.1.7",
|
||
"ias-mail": "0.1.15",
|
||
"ias-service": "0.1.10",
|
||
"ias-main": "0.2.13"
|
||
}'::jsonb
|
||
) ON CONFLICT (version) DO UPDATE SET
|
||
released_at = EXCLUDED.released_at,
|
||
title = EXCLUDED.title,
|
||
description = EXCLUDED.description,
|
||
changes = EXCLUDED.changes,
|
||
modules = EXCLUDED.modules;
|