Update Gemini prices when temporary offers end

Aberta
#2,642 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 3 dias

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
40/100
Tipo de issue
Refatoração
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
typescript
Domínio
api

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
TypeScript
Estrelas
2k
Forks
301
Merge médio
3d 14h
PRs com merge (30d)
103

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de Zoo-Code-Org/Zoo-Code

Todas as issues de Zoo-Code-Org/Zoo-Code

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.