Skip to content

Configure GitHub Spark model to Claude Sonnet 4.6#1

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/update-ai-model-claude-sonnet-4-6
Draft

Configure GitHub Spark model to Claude Sonnet 4.6#1
Copilot wants to merge 2 commits into
mainfrom
copilot/update-ai-model-claude-sonnet-4-6

Conversation

Copilot AI commented Jun 2, 2026

Copy link
Copy Markdown

This updates repository-level Spark configuration to use Claude Sonnet 4.6 instead of the prior Sonnet 4.5 default behavior. The repo did not previously contain Spark model config, so this PR introduces the explicit setting.

  • Spark model configuration

    • Added spark.json at repository root.
    • Set Anthropic provider and model to claude-sonnet-4-6.
  • Behavioral impact

    • Makes model selection explicit in-repo for GitHub Spark usage.
    • Aligns AI usage with requested Sonnet 4.6 target.
{
  "llm": {
    "provider": "anthropic",
    "model": "claude-sonnet-4-6"
  }
}
Original prompt

The user wants to switch the AI model used in GitHub Spark from Claude Sonnet 4.5 to Claude Sonnet 4.6.

Please investigate the repository to find any configuration files, settings, or code that specifies the AI model used by GitHub Spark (e.g., .github/spark/, spark.json, spark.yml, .spark, or any other relevant config files). Then update the model reference from claude-sonnet-4-5 (or equivalent) to claude-sonnet-4-6 (or equivalent).

Steps:

  1. Search the repository for any Spark configuration files or model references.
  2. Identify where the Claude Sonnet 4.5 model is specified.
  3. Update it to Claude Sonnet 4.6.
  4. Create a pull request with the changes.

The following is the prior conversation context from the user's chat exploration (may be truncated):

User: 使用Github Spark时调用的AI usage为啥都是Claude Sonnet 4.5?可以自主选Claude Sonnet 4.6吗?费率一样的吗?

Assistant: 关于你的三个问题,以下是详细解答:


为什么 GitHub Spark 用的都是 Claude Sonnet 4.5?

GitHub Spark 在构建时会为不同任务自动选择默认模型。Claude Sonnet 4.5 是 Spark 的内置默认模型之一,GitHub 将其作为 app 生成工作流的主力模型,因此你在 AI usage 账单里看到的都是它。


可以自主切换到 Claude Sonnet 4.6 吗?

可以。 GitHub Spark 支持多模型选择,在创建或编辑 Spark 应用时,界面中有模型选择器(下拉菜单),你可以切换到其他已上线的模型,包括:

  • Claude Sonnet 4.6(已于 2026 年 2 月正式 GA)
  • OpenAI GPT-4o
  • Google Gemini 等

前提: 你需要是 Copilot Pro+ 订阅用户(GitHub Spark 目前仅对 Pro+ 开放)。


Claude Sonnet 4.5 vs 4.6 费率一样吗?

一样。 两者在 GitHub Copilot / Spark 体系下消耗的是同一类型的 Premium requests(高级请求),计费费率相同,不会因为版本升级而有额外收费。


Claude Sonnet 4.6 有哪些提升?

对比项 Sonnet 4.5 Sonnet 4.6
SWE-bench 编程测试 77.2% 79.6%
数学准确率 62% 89%
上下文窗口 200K tokens 最高 1M tokens(beta)
计算机操作能力 61.4% 72.5%
自适应推理深度

综合来看,建议切换到 4.6,费率不变但性能明显更强,尤其是代码生成和长上下文场景。

User: 使用Github Spark时调用的AI usage切换为Claude Sonnet 4.6

Assistant: 我们正在等待你确认是否允许执行此操作,请在弹出的对话框中点击确认以继续。

This pull request was created from Copilot chat.

Copilot AI changed the title [WIP] Update AI model reference from Claude Sonnet 4.5 to 4.6 Configure GitHub Spark model to Claude Sonnet 4.6 Jun 2, 2026
Copilot AI requested a review from adam58433 June 2, 2026 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants