mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
chore(provider): annotate grok-4.5 kilocode_change markers
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user