Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase the token limit for anthropic #7

Merged
merged 2 commits into from
Jul 31, 2024

Conversation

vishalkrishnads
Copy link
Member

Currently, Claude's performance is quite limited. This is in relation with #4 in the portal. Anthropic informs that

max_tokens: 6000 > 4096, which is the maximum allowed number of output tokens for claude-3-5-sonnet-20240620. To access up to 8192 output tokens, specify the anthropic-beta: max-tokens-3-5-sonnet-2024-07-15 header.

This PR modifies the proxy_anthropic() method to include the header.

@vishalkrishnads
Copy link
Member Author

The executable path has been changed to match that of the server. This was unrelated & for another PR, but I did so anyway for brevity.

@vishalkrishnads vishalkrishnads merged commit 952cfe7 into main Jul 31, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant