Comments (7)
yes
https://pr-agent-docs.codium.ai/usage-guide/additional_configurations/#changing-a-model
from pr-agent.
In addition, in the near future, PR-Agent Pro would offer seamless support of claude3 along with GPT-4
from pr-agent.
I have llama2
running in my local, and I have made the necessary adjustments in .secrets.toml
, configuration.toml
and __init__.py
, as specified here:
[__init__.py]
MAX_TOKENS={
"ollama/llama2": 4096,
...,
}
[config] # in configuration.toml
model = "ollama/llama2"
model_turbo = "ollama/llama2"
[ollama] # in .secrets.toml
api_base = "http://localhost:11434/"
And this is the output I keep getting:
2024-04-17 16:11:29.179 | ERROR | pr_agent.algo.utils:load_yaml:437 - Failed to parse AI prediction: mapping values are not allowed here
in "<unicode string>", line 8, column 180:
... on in your `.pr_agent.toml` file:
^
2024-04-17 16:11:29.181 | INFO | pr_agent.algo.utils:try_fix_yaml:459 - Failed to parse AI prediction after adding |-
2024-04-17 16:11:29.241 | INFO | pr_agent.algo.utils:try_fix_yaml:488 - Successfully parsed AI prediction after removing 57 lines
2024-04-17 16:11:29.242 | ERROR | pr_agent.tools.pr_reviewer:run:150 - Failed to review PR: 'str' object has no attribute 'get'
from pr-agent.
as the error message says, remove the '...', its a placeholder, not a real configuration
in addition, llama2 is a weak model for code, so your results probably wont be good
from pr-agent.
Thank you for your feedback. I did not have ...
in __init__.py
Attached are a few screenshots of the setup:
I agree, llama2 is weak, and I was wondering if I can use a custom llm provider, and use their API KEY token, instead of OpenAI.
from pr-agent.
pr-agent-docs.codium.ai/usage-guide/additional_configurations/#changing-a-model
from pr-agent.
closing this issues, as it was discussed and solve in the Discord channel
from pr-agent.
Related Issues (20)
- Have `/config` print the working config as well as all the options HOT 1
- Do we take any benchmarks between different LLMs? HOT 1
- Add label base on pull request description. HOT 6
- PR-Agent Chrome Extension: AWS CodeCommit HOT 1
- Azure DevOps output for suggestions is not aligned correctly in latest release HOT 2
- Update tiktoken to use gpt-4o HOT 2
- [Feature Request] Include AI model name in automated PR reviews HOT 3
- Vertex AI - ModuleNotFoundError: No module named 'vertexai.preview.generative_models' HOT 2
- Tiktoken 0.7.0 read-only system error in AWS Lamda HOT 4
- UTF-8 undecodable files checked in breaks commands HOT 4
- Provide a built docker image HOT 6
- [Feature Request] Replying to repetitive committable code suggestions using threads HOT 3
- [Feature Request] Reference existing files in extra_instructions HOT 3
- [GitLab] 401: Unauthorized on random MRs HOT 1
- Multi-line extra_instructions produce invalid yaml format in the 'relevant configurations' section HOT 1
- Add logging message when files are filtered due to default extensions HOT 1
- [BUG] PR title not updated if using description markers HOT 2
- [FEATURE] Add GitHub Entreprise support HOT 4
- YAML Fallback parsing method removes all generated content HOT 3
- 'Preparing review...' comment
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pr-agent.