Skip to content

Commit 9c4a571

Browse files
author
Bruce Hauman
committed
update models
1 parent ec2fd6e commit 9c4a571

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/clojure_mcp/agent/langchain/model.clj

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
(merge reasoning-model-base
136136
{:model-name "claude-opus-4-1-20250805"
137137
:thinking (merge thinking-base
138-
{:budget-tokens 8192})})
138+
{:budget-tokens 4096})})
139139

140140
:anthropic/claude-opus-4
141141
(merge model-base
@@ -145,7 +145,7 @@
145145
(merge reasoning-model-base
146146
{:model-name AnthropicChatModelName/CLAUDE_OPUS_4_20250514
147147
:thinking (merge thinking-base
148-
{:budget-tokens 8192})})
148+
{:budget-tokens 4096})})
149149

150150
:anthropic/claude-3-5-haiku
151151
(merge model-base
@@ -159,6 +159,16 @@
159159
:anthropic/claude-sonnet-4-reasoning
160160
(merge reasoning-model-base
161161
{:model-name AnthropicChatModelName/CLAUDE_SONNET_4_20250514
162+
:thinking (merge thinking-base
163+
{:budget-tokens 4096})})
164+
165+
:anthropic/claude-sonnet-4-5
166+
(merge model-base
167+
{:model-name AnthropicChatModelName/CLAUDE_SONNET_4_5_20250929})
168+
169+
:anthropic/claude-sonnet-4-5-reasoning
170+
(merge reasoning-model-base
171+
{:model-name AnthropicChatModelName/CLAUDE_SONNET_4_5_20250929
162172
:thinking (merge thinking-base
163173
{:budget-tokens 4096})})})
164174

@@ -340,7 +350,7 @@
340350
(apply-common-params config)
341351
(cond->
342352
(:model-name config) (.modelName (:model-name config))
343-
(:max-tokens config) (.maxTokens (int (:max-tokens config)))
353+
(:max-tokens config) (.maxCompletionTokens (int (:max-tokens config)))
344354
(:seed config) (.seed (int (:seed config)))
345355
(:frequency-penalty config) (.frequencyPenalty (double (:frequency-penalty config)))
346356
(:presence-penalty config) (.presencePenalty (double (:presence-penalty config)))

0 commit comments

Comments
 (0)