github / github/CopilotForXcode

Choose the most appropriate model automatically

未关闭
#494 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Swift
星标
6.3k
派生
2k
平均合并
2 分钟
30 天内合并 PR
2

描述

Currently, developers need to select a model on their own, and the variables involved in this choice include:

1. The capabilities of the model itself
2. The model’s context length
3. The pricing of the model (unlimited free usage, limited usage with different prices)

My suggestion:

First, Copilot should perform semantic analysis on the user’s current input prompt to determine the appropriate context. For example, if the user has started a new topic, previous context can be discarded. If the user is referring to modifying previous content or correcting errors, then the prior context should be retained.

After that, Copilot can begin to assess the difficulty of the question. For instance, is it a simple UI change or a complete UI design? Is it about fixing an error highlighted by the editor, or about correcting a logical error in a previous answer, etc.?

Finally, Copilot can choose the most cost-effective model based on the context length and the difficulty of the problem.

The reason I want this feature is that I often switch to the highest tier, like Sonnet 4 or GPT-5, and forget to switch back to GPT-4.1. This leads to unnecessary consumption of advanced requests.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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