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

Update Claude Model claude-3-5-sonnet-20241022 #446

Open
bigsk1 opened this issue Nov 1, 2024 · 1 comment
Open

Update Claude Model claude-3-5-sonnet-20241022 #446

bigsk1 opened this issue Nov 1, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@bigsk1
Copy link

bigsk1 commented Nov 1, 2024

Is your feature request related to a problem? Please describe.
Update Cluade model in Perplexica/src/lib/providers/anthropic.ts to claude-3-5-sonnet-20241022

export const loadAnthropicChatModels = async () => {
  const anthropicApiKey = getAnthropicApiKey();

  if (!anthropicApiKey) return {};

  try {
    const chatModels = {
      'claude-3-5-sonnet-20241022': {
        displayName: 'Claude 3.5 Sonnet',
        model: new ChatAnthropic({
          temperature: 0.7,
          anthropicApiKey: anthropicApiKey,
          model: 'claude-3-5-sonnet-20241022',
        }),
      },

Tested and working

@bigsk1 bigsk1 added the enhancement New feature or request label Nov 1, 2024
@bigsk1
Copy link
Author

bigsk1 commented Nov 12, 2024

or better yet just use the latest version so it is always up to date, claude-3-5-sonnet-latest

https://docs.anthropic.com/en/docs/about-claude/models

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant