Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion packages/web/src/features/chat/utils.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,17 @@ export const getAISDKLanguageModelAndOptions = async (config: LanguageModel): Pr
: undefined,
});

const isAdaptiveThinkingSupported =
modelId === 'claude-opus-4-7';
Comment thread
brendan-kellam marked this conversation as resolved.
Outdated

return {
model: anthropic(modelId),
providerOptions: {
anthropic: {
thinking: {
thinking: isAdaptiveThinkingSupported ? {
type: "adaptive",
"display": "summarized"
} : {
type: "enabled",
budgetTokens: env.ANTHROPIC_THINKING_BUDGET_TOKENS,
}
Comment thread
brendan-kellam marked this conversation as resolved.
Expand Down
Loading