Skip to content

Commit f39ce02

Browse files
feedbacl
1 parent 65278a8 commit f39ce02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/web/src/features/chat/utils.server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,15 +211,15 @@ export const getAISDKLanguageModelAndOptions = async (config: LanguageModel): Pr
211211
});
212212

213213
const isAdaptiveThinkingSupported =
214-
modelId === 'claude-opus-4-7';
214+
modelId.startsWith('claude-opus-4-7');
215215

216216
return {
217217
model: anthropic(modelId),
218218
providerOptions: {
219219
anthropic: {
220220
thinking: isAdaptiveThinkingSupported ? {
221221
type: "adaptive",
222-
"display": "summarized"
222+
display: "summarized"
223223
} : {
224224
type: "enabled",
225225
budgetTokens: env.ANTHROPIC_THINKING_BUDGET_TOKENS,

0 commit comments

Comments
 (0)