Update Gemini prices when temporary offers end

未關閉
#2,642 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 3 天內回覆

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
40/100
Issue 類型
重構
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
typescript
領域
api

研究方向

The prices to change are in packages/types/src/providers/gemini.ts and packages/types/src/providers/vertex.ts, and the catalog tests hold the price assertions. Nothing should change before the dates in the table (2026-12-01 for Carbon, 2027-01-01 for Flash), so first check current provider prices at the two linked Google AI Studio pages and confirm the Vertex values separately. Done means both catalogs carry the post-offer prices, the dated TODOs are removed, and the focused catalog tests and package type checks pass.

由索引模型根據 Issue 內容生成。

描述

PR #2640 adds temporary prices for Gemini 4 Carbon and Gemini 3.8 Flash. Update these prices when each offer ends.

Prices below are USD per million tokens.

Model Update date Input Output Cache reads
Gemini 4 Carbon 2026-12-01 $4.00 $20.00 $0.20
Gemini 3.8 Flash 2027-01-01 $1.50 $7.50 $0.15

These target prices come from issue #2067. Verify current provider prices before each update. Vertex prices currently use Gemini API values and need separate verification.

  • On 2026-12-01, verify Carbon prices and update the Gemini and Vertex catalogs.
  • On 2027-01-01, verify Flash prices and update the Gemini and Vertex catalogs.
  • Update any price assertions in the catalog tests.
  • Run the focused catalog tests and package type checks.
  • Remove each dated TODO after its update.

Files: packages/types/src/providers/gemini.ts and packages/types/src/providers/vertex.ts.

Sources: https://aistudio.google.com/docs/models/gemini-4-carbon and https://aistudio.google.com/docs/models/gemini-3.8-flash.

主要語言
TypeScript
星號
2k
分支
301
平均合併
3 天 14 小時
30 天內合併 PR
103

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

Zoo-Code-Org/Zoo-Code 的其他 Issue

查看 Zoo-Code-Org/Zoo-Code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。