tweak: ensure copilot anthropic models have same reasoning effort model as copilot cli, also fix qwen incorrectly having variants (#21212)

This commit is contained in:
Aiden Cline
2026-04-06 18:12:43 +00:00
committed by GitHub
parent 527b51477d
commit 5a6d10cd53
2 changed files with 5 additions and 8 deletions
+3 -5
View File
@@ -375,8 +375,8 @@ export namespace ProviderTransform {
id.includes("glm") || id.includes("glm") ||
id.includes("mistral") || id.includes("mistral") ||
id.includes("kimi") || id.includes("kimi") ||
// TODO: Remove this after models.dev data is fixed to use "kimi-k2.5" instead of "k2p5" id.includes("k2p5") ||
id.includes("k2p5") id.includes("qwen")
) )
return {} return {}
@@ -465,9 +465,7 @@ export namespace ProviderTransform {
return {} return {}
} }
if (model.id.includes("claude")) { if (model.id.includes("claude")) {
return { return Object.fromEntries(WIDELY_SUPPORTED_EFFORTS.map((effort) => [effort, { reasoningEffort: effort }]))
thinking: { thinking_budget: 4000 },
}
} }
const copilotEfforts = iife(() => { const copilotEfforts = iife(() => {
if (id.includes("5.1-codex-max") || id.includes("5.2") || id.includes("5.3")) if (id.includes("5.1-codex-max") || id.includes("5.2") || id.includes("5.3"))
+2 -3
View File
@@ -289,10 +289,9 @@ describe("session.llm.stream", () => {
throw new Error("Server not initialized") throw new Error("Server not initialized")
} }
const providerID = "alibaba" const providerID = "vivgrid"
const modelID = "qwen-plus" const modelID = "gemini-3.1-pro-preview"
const fixture = await loadFixture(providerID, modelID) const fixture = await loadFixture(providerID, modelID)
const provider = fixture.provider
const model = fixture.model const model = fixture.model
const request = waitRequest( const request = waitRequest(