oudecheng
a825b10c48
feat(model): 主 agent 支持会话级模型覆盖
新增 ModelSelectionStore 存储 session_id -> (provider, model) 映射,职责单一,仅依赖 std,不引入业务模块耦合。
AgentFactory::create 中按链式覆盖应用模型配置: 专家 frontmatter 覆盖 -> 用户手动选择覆盖(最高优先级)。
HTTP API: POST /api/session/select-model 设置/清除用户模型覆盖(校验 provider/model 存在性); GET /api/session/selected-model 读取当前 session 的用户覆盖(与 experts/selected 对称)。
在 build_session_manager 系列函数中创建并注入 ModelSelectionStore,GatewayState 持有 Arc<ModelSelectionStore> 供 HTTP handler 访问。
2026-07-30 23:24:51 +08:00
..
2026-07-30 23:24:51 +08:00
2026-07-13 17:00:40 +08:00
2026-07-08 14:33:22 +08:00
2026-05-13 09:39:05 +08:00
2026-06-19 10:40:00 +08:00
2026-07-08 09:45:20 +08:00
2026-05-14 22:23:02 +08:00
2026-07-28 15:32:42 +08:00
2026-07-13 17:00:40 +08:00
2026-07-28 15:32:42 +08:00
2026-07-30 23:24:51 +08:00
2026-05-23 16:05:11 +08:00
2026-05-30 13:06:55 +08:00
2026-05-12 21:04:17 +08:00
2026-05-02 09:38:31 +08:00
2026-07-08 14:51:42 +08:00
2026-05-09 16:59:58 +08:00
2026-07-30 23:24:51 +08:00
2026-07-30 23:24:51 +08:00
2026-06-06 10:41:52 +08:00
2026-07-28 14:19:20 +08:00
2026-05-20 15:13:06 +08:00
2026-06-04 17:33:01 +08:00
2026-07-30 23:24:51 +08:00
2026-06-03 00:08:28 +08:00
2026-05-23 18:38:34 +08:00
2026-07-28 15:32:42 +08:00
2026-06-03 00:08:28 +08:00
2026-06-02 15:23:50 +08:00
2026-07-28 14:19:20 +08:00
2026-06-03 00:08:28 +08:00
2026-07-30 23:24:51 +08:00
2026-05-30 17:43:17 +08:00
2026-07-13 17:00:40 +08:00
2026-07-08 14:51:42 +08:00
2026-07-08 09:45:20 +08:00