1. 28 Feb, 2026 8 commits
  2. 27 Feb, 2026 2 commits
    • erio's avatar
      fix: add 2K image default pricing at 1.5x base price · d1b684b7
      erio authored
      Previously 2K images used the same base price as 1K ($0.134).
      Now 2K uses 1.5x multiplier ($0.201), consistent with 4K using 2x ($0.268).
      
      - Backend: add 2K size branch in getDefaultImagePrice
      - Frontend: update 2K placeholder from 0.134 to 0.201
      - Tests: update assertions for new 2K default price
      d1b684b7
    • erio's avatar
      feat: replace gemini-3-pro-image with gemini-3.1-flash-image · a6f9f9f9
      erio authored
      - Add migration 060 to update model_mapping for all antigravity accounts
      - Remove gemini-3-pro-image and gemini-3-pro-image-preview mappings
      - Add gemini-3.1-flash-image and gemini-3.1-flash-image-preview mappings
      - Update frontend usage window to show GImage for new model
      - Update isImageGenerationModel to support new model
      a6f9f9f9
  3. 26 Feb, 2026 5 commits
    • alfadb's avatar
    • alfadb's avatar
      fix(gateway): return 404 instead of fake 200 for unsupported count_tokens endpoint · 94895314
      alfadb authored
      PR #635 returned HTTP 200 with {"input_tokens": 0} when upstream doesn't
      support count_tokens (404). This caused Claude Code CLI to trust the zero
      value, believing context uses 0 tokens, so auto-compression never triggers.
      
      Fix: return 404 with proper error body so CLI falls back to its local
      tokenizer for accurate estimation. Return nil (not error) to avoid
      polluting ops error metrics with expected 404s.
      
      Affected paths:
      - Passthrough APIKey accounts: upstream 404 now passed through as 404
      - Antigravity accounts: same fix (was also returning fake 200)
      94895314
    • shaw's avatar
      4ac57b4e
    • 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
  4. 25 Feb, 2026 3 commits
  5. 24 Feb, 2026 13 commits
  6. 23 Feb, 2026 3 commits
  7. 22 Feb, 2026 6 commits