1. 26 Feb, 2026 2 commits
    • shaw's avatar
      fix: 将 DriveClient 注入 GeminiOAuthService,消除单元测试中的真实 HTTP 调用 · c75c6b68
      shaw authored
      FetchGoogleOneTier 原先在方法内部直接创建 DriveClient 实例,
      导致单元测试中对 googleapis.com 发起真实 HTTP 请求,在 CI 环境
      产生 401 错误。
      
      将 DriveClient 作为依赖注入到 GeminiOAuthService,遵循项目
      端口与适配器架构规范:
      - 新增 repository/gemini_drive_client.go 作为 Provider
      - 注册到 repository Wire ProviderSet
      - 测试中使用 mockDriveClient 替代真实调用
      c75c6b68
    • alfadb's avatar
      fix: count_tokens 端点不支持时降级返回空值 (404 only) · 03bcd94a
      alfadb authored
      第三方 Anthropic 中转站通常不支持 /v1/messages/count_tokens 端点,
      上游返回 404 时降级返回 {input_tokens: 0},客户端 fallback 到本地估算。
      
      - 仅匹配 404 状态码,语义明确:端点不存在
      - 其他错误 (400/429/500) 保留原始处理链和 ops 遥测
      - 无需解析错误消息内容,不依赖字符串匹配
      - 新增 table-driven 测试覆盖 fallback 和 non-fallback 路径
      03bcd94a
  2. 25 Feb, 2026 3 commits
  3. 24 Feb, 2026 13 commits
  4. 23 Feb, 2026 3 commits
  5. 22 Feb, 2026 7 commits
  6. 21 Feb, 2026 3 commits
  7. 20 Feb, 2026 2 commits
  8. 19 Feb, 2026 7 commits