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: update GPT3.5 models #880

Merged
merged 1 commit into from
Apr 24, 2024
Merged

chore: update GPT3.5 models #880

merged 1 commit into from
Apr 24, 2024

Conversation

tacascer
Copy link
Contributor

@tacascer tacascer commented Apr 23, 2024

User description

According to OpenAI's model docs

Addresses #874


Type

enhancement


Description

  • Increased the token limits for existing GPT-3.5 models to support larger inputs.
  • Added configuration for a new GPT-3.5 model variant to enhance model availability.

Changes walkthrough

Relevant files
Enhancement
__init__.py
Update Token Limits and Add New Model in Configuration     

pr_agent/algo/init.py

  • Updated the token limit for 'gpt-3.5-turbo' from 4000 to 16000.
  • Added a new model 'gpt-3.5-turbo-0125' with a token limit of 16000.
  • Updated the token limit for 'gpt-3.5-turbo-1106' from 4000 to 16000.
  • +3/-2     

    PR-Agent usage:
    Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions

    @codiumai-pr-agent-pro codiumai-pr-agent-pro bot added the enhancement New feature or request label Apr 23, 2024
    Copy link
    Contributor

    PR Description updated to latest commit (2e34436)

    Copy link
    Contributor

    PR Review

    ⏱️ Estimated effort to review [1-5]

    2, because the changes are straightforward and limited to updating token limits and adding a new model configuration in a dictionary. The PR is small and the context is clear, making it easier to review.

    🏅 Score

    90

    🧪 Relevant tests

    No

    🔍 Possible issues

    No

    🔒 Security concerns

    No


    ✨ Review tool usage guide:

    Overview:
    The review tool scans the PR code changes, and generates a PR review which includes several types of feedbacks, such as possible PR issues, security threats and relevant test in the PR. More feedbacks can be added by configuring the tool.

    The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.

    • When commenting, to edit configurations related to the review tool (pr_reviewer section), use the following template:
    /review --pr_reviewer.some_config1=... --pr_reviewer.some_config2=...
    
    [pr_reviewer]
    some_config1=...
    some_config2=...
    

    See the review usage page for a comprehensive guide on using this tool.

    Copy link
    Contributor

    PR Code Suggestions

    CategorySuggestions                                                                                                                                                       
    Maintainability
    Ensure consistent token limits across similar model configurations.

    Consider using a consistent token limit for all 'gpt-3.5-turbo' models or provide a
    comment explaining why the limits vary. This will help maintain consistency and clarity in
    the configuration.

    pr_agent/algo/init.py [3-6]

     'gpt-3.5-turbo': 16000,
     'gpt-3.5-turbo-0125': 16000,
    -'gpt-3.5-turbo-0613': 4000,
    +'gpt-3.5-turbo-0613': 16000,  # Assuming all should have the same limit
     'gpt-3.5-turbo-1106': 16000,
     

    ✨ Improve tool usage guide:

    Overview:
    The improve tool scans the PR code changes, and automatically generates suggestions for improving the PR code. The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on a PR.

    • When commenting, to edit configurations related to the improve tool (pr_code_suggestions section), use the following template:
    /improve --pr_code_suggestions.some_config1=... --pr_code_suggestions.some_config2=...
    
    [pr_code_suggestions]
    some_config1=...
    some_config2=...
    

    See the improve usage page for a comprehensive guide on using this tool.

    @mrT23
    Copy link
    Collaborator

    mrT23 commented Apr 24, 2024

    lgtm

    @mrT23 mrT23 merged commit 3dbe1bb into Codium-ai:main Apr 24, 2024
    @tacascer tacascer deleted the new-35-models branch April 25, 2024 05:30
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    None yet

    2 participants