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

🏷️ chore: Add Unofficial Naming Variation for Claude-3.5-Sonnet #3800

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

danny-avila
Copy link
Owner

Summary

  • Added 'claude-3.5-sonnet' to the tokenValues object in tx.js with the same prompt and completion values as 'claude-3-5-sonnet'
  • Included 'claude-3.5-sonnet' in the cacheTokenValues object in tx.js with identical write and read values to 'claude-3-5-sonnet'
  • Updated the anthropicModels object in tokens.js to include 'claude-3.5-sonnet' with a max token value of 200000
  • Added test cases in tx.spec.js to verify the correct handling of 'claude-3.5-sonnet' variations in the getValueKey function

Checklist

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • I have commented in any complex areas of my code
  • My changes do not introduce new warnings
  • I have written tests demonstrating that my changes are effective
  • Local unit tests pass with my changes

@danny-avila danny-avila linked an issue Aug 27, 2024 that may be closed by this pull request
1 task
@danny-avila danny-avila merged commit f742b99 into main Aug 27, 2024
2 checks passed
@danny-avila danny-avila deleted the chore/anthropic-alt-name branch August 27, 2024 13:07
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.

[Bug]: Token values for claude is not correct when using OpenRouter
1 participant