chore(provider): annotate grok-4.5 kilocode_change markers

This commit is contained in:
Rakshith N
2026-07-14 11:18:23 +05:30
parent c654f1e3d1
commit 9cc63d08cb
2 changed files with 4 additions and 0 deletions
@@ -725,9 +725,11 @@ export function variants(model: Provider.Model): Record<string, Record<string, a
high: { reasoningEffort: "high" },
}
}
// kilocode_change start
if (id.includes("grok") && !id.includes("grok-4.5")) {
return {}
}
// kilocode_change end
switch (model.api.npm) {
case "@kilocode/kilo-gateway": // kilocode_change
@@ -3370,6 +3370,7 @@ describe("ProviderTransform.variants", () => {
expect(result.high).toEqual({ reasoningEffort: "high" })
})
// kilocode_change start
test("grok-4.5 uses standard reasoning efforts", () => {
const model = createMockModel({
id: "xai/grok-4.5",
@@ -3386,6 +3387,7 @@ describe("ProviderTransform.variants", () => {
expect(Object.keys(result)).toEqual(["low", "medium", "high"])
expect(result.medium).toEqual({ reasoningEffort: "medium" })
})
// kilocode_change end
})
describe("@ai-sdk/deepinfra", () => {