From 3e9c83b99dc008bb3750b954030ea6545a1b7bea Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Tue, 6 May 2025 11:58:58 +0800 Subject: [PATCH] Add the o4-mini model in the isOminiModel (#3035) --- .changeset/brown-sloths-search.md | 5 +++++ src/api/providers/litellm.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/brown-sloths-search.md diff --git a/.changeset/brown-sloths-search.md b/.changeset/brown-sloths-search.md new file mode 100644 index 00000000..15536644 --- /dev/null +++ b/.changeset/brown-sloths-search.md @@ -0,0 +1,5 @@ +--- +"claude-dev": patch +--- + +Add the o4-mini model in the isOminiModel diff --git a/src/api/providers/litellm.ts b/src/api/providers/litellm.ts index 239a2c53..0d1514ce 100644 --- a/src/api/providers/litellm.ts +++ b/src/api/providers/litellm.ts @@ -58,7 +58,7 @@ export class LiteLlmHandler implements ApiHandler { content: systemPrompt, } const modelId = this.options.liteLlmModelId || liteLlmDefaultModelId - const isOminiModel = modelId.includes("o1-mini") || modelId.includes("o3-mini") + const isOminiModel = modelId.includes("o1-mini") || modelId.includes("o3-mini") || modelId.includes("o4-mini") // Configuration for extended thinking const budgetTokens = this.options.thinkingBudgetTokens || 0