Delicious233
Delicious233
## 问题 `normalize_anthropic_tool_thinking_history` (claude.rs) 对命中 `REASONING_VENDOR_HINTS` 的 provider 在每个请求中**预注入** `{"type":"thinking","thinking":"tool call"}` 占位块。 最初这是必要的:DeepSeek/Kimi/Moonshot 等厂商的 Anthropic 端点曾要求 tool-call 历史中必须回传 thinking 块,否则 400 (#3233)。 但 **DeepSeek 服务端已于 2026 年 6 月前后放宽此要求**: -...
## Summary The Codex session log sync (`session_usage_codex.rs`) creates one `proxy_request_logs` row **per `token_count` event** in `~/.codex/sessions/*.jsonl`. A single streaming API call emits ~33 such events during its lifetime. ##...
### Self Checks / 自检 - [x] 我已阅读 README 中的[常见问题](https://github.com/farion1231/cc-switch#常见问题) - [x] 我已搜索过[已有的 Issue](https://github.com/farion1231/cc-switch/issues),包括已关闭的(#3233、#3263、#3645、#3934) ### CC Switch Version / 版本号 v3.16.2(也存在于最新 main 分支 `21e695f6`) ### Operating System / 操作系统 Windows...
## Problem Recent Kiro generation requests appear to require a profileArn on the generation payload for some accounts. The current code already has a profileArn field on KiroPayload, but it...
## Describe the bug In the **usage logs** table (`web/default` frontend), models from several providers render a grey dot placeholder instead of their brand icon, while the same models show...
--- name: Bug Report about: Provider icons missing for several models in the usage logs table (web/default) labels: bug --- ## Read This First (Do Not Remove This Section) -...
## 问题描述 `channel.balance` 字段文档规定存储 USD,但三个中国供应商的余额查询函数直接将本地货币写入,导致前端显示的余额数字约为实际美元等值的 **7.3 倍**。 原始报告: #2638 — DeepSeek 国际账户(USD)直接报错 `currency CNY not found`。 ## 受影响的供应商 | 供应商 | API | 返回货币 | 问题 | |--------|-----|----------|------| | **DeepSeek**...
## 问题 `model/log.go` 的 `SumUsedQuota` 函数对 logs 表串行执行**两条独立的聚合查询**,且 WHERE 条件几乎相同: ```go // Query 1: 全时间段 quota 汇总 tx := LOG_DB.Table("logs").Select("COALESCE(sum(quota), 0) quota") // ... 应用所有 filter ... tx.Scan(&stat) // Query...
## 问题 `model/log.go` 的 `SumUsedQuota` 函数对 logs 表串行执行**两条独立的聚合查询**,且 WHERE 条件几乎相同: ```go // Query 1: 全时间段 quota 汇总 tx := LOG_DB.Table("logs").Select("COALESCE(sum(quota), 0) quota") // ... 应用所有 filter ... tx.Scan(&stat) // Query...