Feature Request: Support OpenAI Flex Tier in Copilot CLI
まだ誰も着手していません。
- 主要言語
- Shell
- スター
- 11.2k
- フォーク
- 1.9k
- 平均マージ
- 14時間 16分
- マージ済み PR(30日)
- 6
説明
Describe the feature or problem you'd like to solve
Add support for selecting OpenAI's Flex tier (service_tier: flex) in the Copilot CLI model selector and configuration, allowing users to cut token usage costs by 50% for non-time-critical tasks.
Proposed solution
Motivation
OpenAI Flex tier costs 50% less than Standard tier and according to monitoring data from OpenRouter has roughly 30% higher E2E latency (e.g. 9.02s vs 11.56s for gpt-5.6-sol):
| Model | Output Price (Standard) | Output Price (Flex) | E2E Latency (Standard) | E2E Latency (Flex) |
|---|---|---|---|---|
gpt-6-astra |
$50 | $25 | 10.95s | 11.34s |
gpt-5.6-sol |
$20 | $10 | 9.02s | 11.56s |
For many agentic tasks small increases of latency do not significantly impact user experience.
Additionally, E2E latency for many agentic tasks depends more on tool call durations than on LLM response times (e.g. large C++ or Gradle builds, running extensive test suits, etc). Using Flex tier for these kinds of tasks would reduce cost without significantly impacting task completion time.
Therefore, offering Flex tier would allow some developers to perform roughly twice as many agentic tasks withing a given AI budget.
Proposed Solution
- Interactive Model Picker: When selecting an OpenAI model, present a tier selection prompt (Standard vs. Flex) alongside the reasoning effort selection.
- CLI Flags: Add
--tier <standard|flex>(or--service-tier <standard|flex>) for scripted runs and aliases.
Example prompts or workflows
No response
Additional context
No response
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
ファイル、テスト、エントリーポイントは指定されていません。まず Copilot CLI のモデルピッカー、設定処理、OpenAI リクエストの構築箇所を特定します。モデルと推論負荷の選択がリクエストにどのように渡されるかを追跡し、インタラクティブな選択とスクリプト用の tier フラグの両方で、要求された Standard または Flex の service tier が生成されることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- shell
- 領域
- api, cli
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100