github / github/copilot-cli

Feature Request: Support OpenAI Flex Tier in Copilot CLI

未关闭
#4,821 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

triage
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
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

  1. Interactive Model Picker: When selecting an OpenAI model, present a tier selection prompt (Standard vs. Flex) alongside the reasoning effort selection.
  2. 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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

未指定文件、测试或入口点。首先定位 Copilot CLI 的模型选择器、配置处理以及 OpenAI 请求构造部分。跟踪模型和推理力度的选择如何传递到请求中,然后验证交互式选择和脚本化 tier 标志都能产生所请求的 Standard 或 Flex service tier。

由索引模型根据 Issue 内容生成。

评估

技术栈
shell
领域
api, cli
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
活跃
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。