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 models #148

Merged
merged 2 commits into from
Jun 21, 2024
Merged

Update models #148

merged 2 commits into from
Jun 21, 2024

Conversation

thypon
Copy link
Member

@thypon thypon commented Jun 21, 2024

No description provided.

Copy link

openai debug - [puLL-Merge] - brave/pull-merge@148

Description

This pull request updates the AI models used for various tasks in the repository. The motivation for these changes is likely to ensure the codebase uses the most up-to-date models, which can offer improvements in performance or new features.

Changes

Changes

  • action.cjs

    • Updated anthropic_models from claude-3-opus-20240229 to claude-3-5-sonnet-20240620
    • Updated bedrock_models from anthropic.claude-3-opus-20240229-v1:0 to anthropic.claude-3-5-sonnet-20240620-v1:0
  • src/anthropicExplainPatch.js

    • Updated default models array to use claude-3-5-sonnet-20240620 instead of claude-3-opus-20240229
  • src/bedrockExplainPatch.js

    • Added anthropic.claude-3-5-sonnet-20240620-v1:0 to the COUNT_TOKENS_HASHFUN
    • Updated default models array to use claude-3-5-sonnet-20240620-v1:0 instead of claude-3-opus-20240229-v1:0
  • src/openaiExplainPatch.js

    • Updated OpenAI model gpt-4-0125-preview to gpt-4o-2024-05-13

These updates reflect the addition of new, more current AI models, which should improve the capabilities and performance of the patches.

Copy link

anthropic debug - [puLL-Merge] - brave/pull-merge@148

Description

This PR updates the AI models used in the project, specifically changing the Anthropic and Bedrock models from Claude 3 Opus to Claude 3.5 Sonnet, and updating the OpenAI model from GPT-4-0125-preview to GPT-4o-2024-05-13. These changes are likely made to use the latest available models, potentially improving performance or capabilities of the AI-assisted code review system.

Changes

Changes

  1. action.cjs:

    • Updated anthropic_models from 'claude-3-opus-20240229' to 'claude-3-5-sonnet-20240620'
    • Updated bedrock_models from 'anthropic.claude-3-opus-20240229-v1:0' to 'anthropic.claude-3-5-sonnet-20240620-v1:0'
  2. src/anthropicExplainPatch.js:

    • Changed default model in explainPatch function from 'claude-3-opus-20240229' to 'claude-3-5-sonnet-20240620'
  3. src/bedrockExplainPatch.js:

    • Added token counting support for 'anthropic.claude-3-5-sonnet-20240620-v1:0' model
    • Updated default model in explainPatch function from 'anthropic.claude-3-opus-20240229-v1:0' to 'anthropic.claude-3-5-sonnet-20240620-v1:0'
  4. src/openaiExplainPatch.js:

    • Updated default models in explainPatch function, changing 'gpt-4-0125-preview' to 'gpt-4o-2024-05-13'

These changes consistently update the AI models used across different parts of the codebase, ensuring that the latest versions are utilized for code explanation and analysis tasks.

Copy link

bedrock debug - [puLL-Merge] - brave/pull-merge@148

Description

This PR updates the AI models used for explaining code patches in a GitHub repository. It switches from using the claude-3-opus-20240229 model to the newer claude-3-5-sonnet-20240620 model for Anthropic's AI, and from gpt-4-0125-preview to gpt-4o-2024-05-13 for OpenAI's GPT-4 model. The motivation seems to be to leverage the latest AI model versions available from these providers.

Changes

Changes

  • action.cjs:
    • Updated the anthropic_models parameter to use claude-3-5-sonnet-20240620 instead of claude-3-opus-20240229
  • src/anthropicExplainPatch.js:
    • Changed the default models parameter in the explainPatch function to use claude-3-5-sonnet-20240620
  • src/openaiExplainPatch.js:
    • Updated the default models parameter in the explainPatch function, replacing gpt-4-0125-preview with gpt-4o-2024-05-13 for GPT-4

@thypon thypon merged commit d92702d into main Jun 21, 2024
5 of 7 checks passed
@thypon thypon deleted the features/update-models branch June 21, 2024 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant