Update Gemini prices when temporary offers end

Đang mở
#2,642 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
40/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
api

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
2k
Fork
301
Merge trung bình
3 ngày 14 giờ
Pull request đã merge (30 ngày)
103

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Zoo-Code-Org/Zoo-Code

Tất cả issue của Zoo-Code-Org/Zoo-Code

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.