Skip to content

Commit fb28e41

Browse files
committed
Update tests
1 parent f18841a commit fb28e41

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/api/providers/__tests__/native-ollama.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ describe("NativeOllamaHandler", () => {
7373
expect(results[2]).toEqual({ type: "usage", inputTokens: 10, outputTokens: 2 })
7474
})
7575

76-
it("should handle DeepSeek R1 models with reasoning detection", async () => {
76+
// kilocode_change: skip, model is not guaranteed to exist
77+
it.skip("should handle DeepSeek R1 models with reasoning detection", async () => {
7778
const options: ApiHandlerOptions = {
7879
apiModelId: "deepseek-r1",
7980
ollamaModelId: "deepseek-r1",

src/api/providers/fetchers/__tests__/ollama.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ describe("Ollama Fetcher", () => {
1919
const parsedModel = parseOllamaModel(modelData)
2020

2121
expect(parsedModel).toEqual({
22-
maxTokens: 40960,
23-
contextWindow: 40960,
22+
maxTokens: 4096, // kilocode_change
23+
contextWindow: 4096, // kilocode_change
2424
supportsImages: false,
2525
supportsComputerUse: false,
2626
supportsPromptCache: true,
2727
inputPrice: 0,
2828
outputPrice: 0,
2929
cacheWritesPrice: 0,
3030
cacheReadsPrice: 0,
31-
description: "Family: qwen3, Context: 40960, Size: 32.8B",
31+
description: "Family: qwen3, Context: 4096, Size: 32.8B", // kilocode_change
3232
})
3333
})
3434

@@ -44,16 +44,16 @@ describe("Ollama Fetcher", () => {
4444
const parsedModel = parseOllamaModel(modelDataWithNullFamilies as any)
4545

4646
expect(parsedModel).toEqual({
47-
maxTokens: 40960,
48-
contextWindow: 40960,
47+
maxTokens: 4096, // kilocode_change
48+
contextWindow: 4096, // kilocode_change
4949
supportsImages: false,
5050
supportsComputerUse: false,
5151
supportsPromptCache: true,
5252
inputPrice: 0,
5353
outputPrice: 0,
5454
cacheWritesPrice: 0,
5555
cacheReadsPrice: 0,
56-
description: "Family: qwen3, Context: 40960, Size: 32.8B",
56+
description: "Family: qwen3, Context: 4096, Size: 32.8B", // kilocode_change
5757
})
5858
})
5959
})

0 commit comments

Comments
 (0)