Update Gemini prices when temporary offers end

Offen
#2,642 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 3 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
40/100
Issue-Typ
Refactoring
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript
Bereich
api

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
TypeScript
Sterne
2k
Forks
301
Ø Merge
3 T. 14 Std.
Gemergte PRs (30 T.)
103

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Zoo-Code-Org/Zoo-Code

Alle Issues in Zoo-Code-Org/Zoo-Code

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.