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

Add gemini support for pr-agent #998

Merged
merged 6 commits into from
Jun 24, 2024
Merged

Add gemini support for pr-agent #998

merged 6 commits into from
Jun 24, 2024

Conversation

R-Mathis
Copy link
Contributor

@R-Mathis R-Mathis commented Jun 24, 2024

User description

Add vertex ai gemini 1.5 pro as supported model in algo's init.py


PR Type

enhancement


Description

  • Added support for the vertex_ai/gemini-1.5-pro model in the pr_agent/algo/__init__.py file.
  • Set the token limit for the vertex_ai/gemini-1.5-pro model to 1048576.

Changes walkthrough 📝

Relevant files
Enhancement
__init__.py
Add support for `vertex_ai/gemini-1.5-pro` model                 

pr_agent/algo/init.py

  • Added support for vertex_ai/gemini-1.5-pro model.
  • Updated the model token limit to 1048576.
  • +1/-0     

    💡 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 Jun 24, 2024
    Copy link
    Contributor

    PR Reviewer Guide 🔍

    ⏱️ Estimated effort to review [1-5] 1
    🏅 Score 95
    🧪 Relevant tests No
    🔒 Security concerns No
    🔀 Multiple PR themes

    No

    ⚡ Key issues to review None

    Copy link
    Contributor

    codiumai-pr-agent-pro bot commented Jun 24, 2024

    PR Code Suggestions ✨

    CategorySuggestion                                                                                                                                    Score
    Maintainability
    ✅ Remove the extra space before the colon to maintain consistent formatting
    Suggestion Impact:The suggestion to remove the extra space before the colon was implemented in the commit.

    code diff:

    -    'vertex_ai/gemini-1.5-pro' : 1048576,
    +    'vertex_ai/gemini-1.5-pro': 1048576,

    Remove the extra space before the colon in the new dictionary entry to maintain consistent
    formatting with the other entries.

    pr_agent/algo/init.py [29]

    -'vertex_ai/gemini-1.5-pro' : 1048576,
    +'vertex_ai/gemini-1.5-pro': 1048576,
     
    • Apply this suggestion
    Suggestion importance[1-10]: 7

    Why: The suggestion correctly identifies and fixes a minor formatting inconsistency, improving code maintainability and readability.

    7

    @R-Mathis
    Copy link
    Contributor Author

    /describe

    Copy link
    Contributor

    PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here.

    PR Description updated to latest commit (69f6997)

    @mrT23 mrT23 merged commit 609fa26 into Codium-ai:main Jun 24, 2024
    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.

    2 participants