Comments (3)
The line:
docker run --rm -it -e CONFIG.GIT_PROVIDER=bitbucket -e OPENAI.KEY=$OPENAI_API_KEY -e BITBUCKET.BEARER_TOKEN=$BITBUCKET_BEARER_TOKEN codiumai/pr-agent:latest --pr_url=<pr_url> review
works. I validated.
Triple and quadruple check for your errors when copying and using this exact line.
(i think you do have errors. what is "model='huggingface/gpt-4'" ?? there is no such thing. GPT4 requires openai account )
from pr-agent.
@mrT23 Checked this already. STill, the issue. The same open ai key and bitbucket bearer token is getting used in my personal bitbucket account to generate the review by adding in bitbucket pipeline but when I run this from my terminal, I see this issue.
I am trying different options since in bitbucket of my organisation, there is the error happening. I am not aware that which IP do I need to give to my workspace admin to whitelist. In the meantime, I thought to run it on docker on local.
![image](https://private-user-images.githubusercontent.com/13162677/278616728-61fbfcbe-5845-493f-b608-c66840ea3da0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg2OTkyMDYsIm5iZiI6MTcxODY5ODkwNiwicGF0aCI6Ii8xMzE2MjY3Ny8yNzg2MTY3MjgtNjFmYmZjYmUtNTg0NS00OTNmLWI2MDgtYzY2ODQwZWEzZGEwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE4VDA4MjE0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRmN2E1ZTBhZThkZjljMmFhMjk1MmRkNjk3MjU5NWU3MjQ1MjcyNzdiNWMwZmE5YzY4NzQ3YTc3MDEyZTg2ZWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.FdlWwlVjwtEYWsVbZ1f64aR32glpLTglrtuKr6bYw4I)
I even tried with run from source by following this https://github.com/Codium-ai/pr-agent/blob/main/INSTALL.md#run-from-source
But getting this issue and no luck
![image](https://private-user-images.githubusercontent.com/13162677/278617522-6614ace2-b113-4fc8-84a4-492f82761ffa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg2OTkyMDYsIm5iZiI6MTcxODY5ODkwNiwicGF0aCI6Ii8xMzE2MjY3Ny8yNzg2MTc1MjItNjYxNGFjZTItYjExMy00ZmM4LTg0YTQtNDkyZjgyNzYxZmZhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE4VDA4MjE0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAyYzViZjAxYTEyYzZkYzRjNmFkNGQ3MDY2M2MzMzM5MDRhNGZkMjU0YWIxNTJhYjgzNDNhMTRiNzMyM2QyNWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.g_yUmQxxeb71UQDtTL9dvXd2P99Jz14k1AzcMTrI_V4)
from pr-agent.
@praveenpnj94 this will be the last time I comment here.
The problem is yours. pr-agent works well with bitbucket.
i cant debug your computer and your environment.
that last run is clearly wrong, as you were running github. you should have found that yourself. set the correct GIT_PROVIDER.
You need to exercise judgment and reasonable knowledge, before claiming its pr-agent issues
The docker run seems valid. try to see if your key gives you full access to the repo, as the instructions clearly say. my guess - no. Also look for other potential issues
all the best
from pr-agent.
Related Issues (20)
- Vertex AI - ModuleNotFoundError: No module named 'vertexai.preview.generative_models' HOT 2
- Tiktoken 0.7.0 read-only system error in AWS Lamda HOT 5
- 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 HOT 1
- Agent HOT 5
- [Bug?] We fail generate 'PR review' command HOT 2
- Add section to pr-agent-settings toml file to ingore repos HOT 1
- Nichebiche
- Issue: Failed to validate secret HOT 1
- Unable to run PR Agent with GPT 3 Key HOT 2
- Suggestions match existing code HOT 1
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.