examples/anthropic-extended-capabilities/README.md
This example demonstrates Claude 3.7+'s combined extended capabilities:
# Set your API key
export ANTHROPIC_API_KEY=your-api-key
# Run the example
go run .
// Enable both capabilities together
opts := []llms.CallOption{
// Extended thinking for complex reasoning
llms.WithThinkingMode(llms.ThinkingModeHigh),
// Extended output for up to 128K tokens
anthropic.WithExtendedOutput(),
// Set high token limit
llms.WithMaxTokens(50000),
}
claude-3-7-sonnet-20250219)