Rate card: no place for a stated optional rate (OpenAI 12-hour cache write)

オープン
#744 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
api, backend

調査の方向性

Start in packages/rate-card/src/card.ts: the RateCard type has only inputs, tables, price, examples and source, so decide how an opt-in rate is represented before editing. Then find the POST /v1/estimate handler that serves the GPT-6.2 cards from #739 and make it read the new field for gpt-6.2-astra/gpt-6.2-sol when a 12-hour cache write is selected. Done means the estimate returns the 12-hour price or explicitly says the estimate excludes it; add a test around that endpoint.

索引モデルが issue の本文から書いたものです。

説明

Problem

The GPT-6.2 cards (#739) do not model OpenAI's optional 12-hour cache write. A consumer who opts into ttl: "12h" pays 2x the cache-write rate ($20 vs $10 per 1M on gpt-6.2-astra, $5 vs $2.5 on gpt-6.2-sol), and nothing on the card says so. RateCard (packages/rate-card/src/card.ts) has only inputs, tables, price, examples and source.

Ask

Give a card a way to state an opt-in rate the provider publishes, as an input that selects it or as a labelled caveat, and read it from the page.

Acceptance

  • POST /v1/estimate for gpt-6.2-astra with a 12-hour cache write returns the 12-hour price, or the response says the estimate excludes it.
主要言語
TypeScript
スター
0
フォーク
1
平均マージ
5時間 40分
マージ済み PR(30日)
193

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TanStack/schemas のほかの issue

TanStack/schemas の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。