Add PR help message functionality and update dependencies#1241
Conversation
- Implement PRHelpMessage class to provide AI-powered assistance for pull requests. - Add methods for similarity search using local, S3, and Pinecone databases. - Update `requirements.txt` to include new dependencies for langchain and chromadb. - Modify `configuration.toml` to include `force_local_db` setting for PR help. - Update `aiohttp` and `openai` package versions.
|
/help "how to change the code suggestion to be commitable ?" |
Question:how to change the code suggestion to be commitable ? Answer:To make code suggestions commitable, you can use the
For automatic runs, you can set this in the configuration file under the This will present the suggestions as commitable code comments instead of a single table comment. Relevant Sources: |
|
/help "how to use pr-agent with self hosted llm" |
Question:how to use pr-agent with self hosted llm Answer:To use PR-Agent with a self-hosted LLM, you need to self-host PR-Agent itself. Here's how to do it:
When self-hosting PR-Agent, you use your own API keys, which means the interaction with the LLM provider is directly between you and them. PR-Agent doesn't send your code data to its servers, ensuring better privacy for your code. For detailed installation instructions, refer to the PR-Agent documentation for your specific deployment method. Relevant Sources: |
|
/improve |
|
/review |
PR Code Suggestions ✨
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
/analyze |
PR Analysis 🔬
💡 Usage guide:Using static code analysis capabilities, the The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR: Language that are currently supported: Python, Java, C++, JavaScript, TypeScript, C#. |
|
/help "how configure http auth with bitbucket and custom model with ollama in local?" |
Question:how configure http auth with bitbucket and custom model with ollama in local? Answer:To configure HTTP auth with Bitbucket and use a custom Ollama model locally, you need to:
Note: While Ollama allows running models locally, commercial models like GPT-4 and Claude are recommended for production-level code analysis tasks as they perform better with complex code analysis. Relevant Sources: |
|
/help what are the language it supports |
Question:what are the language it supports Answer:Qodo Merge/PR-Agent has different levels of language support depending on the tool:
Note that for optimal functionality, it's recommended to use commercial models like GPT-4, Claude Sonnet, or Gemini, as they have demonstrated robust capabilities in generating structured output for code analysis tasks with large input. Relevant Sources:
|
|
/help I am using golang in my projects , is the review and other functionalities available for that |
Question:I am using golang in my projects , is the review and other functionalities available for that also , is it require my own open ai key Answer:For Golang projects:
Relevant Sources: |
|
/help I am using Golang in my projects , will it qodo.ai will help me |
Question:I am using Golang in my projects , will it qodo.ai will help me also , is it require my open ai key Answer:Yes, Qodo Merge can help with Golang projects. The main tools (describe, review, improve) support all programming languages since they use advanced language models like Claude 3.5 Sonnet and GPT-4. Regarding the OpenAI key requirement:
Note that some specialized tools that require static code analysis (like test generation, documentation generation) currently don't support Golang, but the main review and suggestion tools will work fully with Golang code. Relevant Sources: |
User description
requirements.txtto include new dependencies for langchain and chromadb.configuration.tomlto includeforce_local_dbsetting for PR help.aiohttpandopenaipackage versions.PR Type
Enhancement
Description
Changes walkthrough 📝
pr_help_message.py
Implement AI-powered PR help functionalitypr_agent/tools/pr_help_message.py
requests
databases
configuration.toml
Add force_local_db configuration optionpr_agent/settings/configuration.toml
requirements.txt
Update dependencies and add new packagesrequirements.txt