-
Notifications
You must be signed in to change notification settings - Fork 314
Open
Description
Hi ππ», first of all, I'm loving this project! Keep up the great work on this awesome project.
Anthropic recently released Claude 3.7 Sonnet, which supports an output of up to 128K tokens. Iβd love to use this extended output in srcbook. What changes would be needed to support this?
I made a naive solution by updating the generateText call to set maxTokens: 128000 and modifying the createAnthropic call to add the anthropic-beta header when using claude-3.7-sonnet models.
Would this be the right approach, or are there other places that need updates?
I think the best solution would be a configuration for max tokens and maybe a check for values > 8192 (the original maxTokens).
Happy to help with implementation if needed! π
Metadata
Metadata
Assignees
Labels
No labels

