We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65278a8 commit f39ce02Copy full SHA for f39ce02
packages/web/src/features/chat/utils.server.ts
@@ -211,15 +211,15 @@ export const getAISDKLanguageModelAndOptions = async (config: LanguageModel): Pr
211
});
212
213
const isAdaptiveThinkingSupported =
214
- modelId === 'claude-opus-4-7';
+ modelId.startsWith('claude-opus-4-7');
215
216
return {
217
model: anthropic(modelId),
218
providerOptions: {
219
anthropic: {
220
thinking: isAdaptiveThinkingSupported ? {
221
type: "adaptive",
222
- "display": "summarized"
+ display: "summarized"
223
} : {
224
type: "enabled",
225
budgetTokens: env.ANTHROPIC_THINKING_BUDGET_TOKENS,
0 commit comments