Skip to content
Dashboard
import { streamText } from 'ai';
const result = streamText({
model: 'anthropic/claude-opus-4.7',
prompt: 'Explain the halting problem in one paragraph.',
providerOptions: {
anthropic: {
thinking: { type: 'adaptive' },
effort: 'xhigh',
},
},
});

import { streamText } from 'ai';
const result = streamText({
model: 'anthropic/claude-opus-4.7',
prompt: 'Research how this codebase handles authentication and suggest improvements.',
providerOptions: {
anthropic: {
thinking: { type: 'adaptive', display: 'summarized' },
effort: 'high',
taskBudget: { type: 'tokens', total: 50000 },
},
},
});