-
Notifications
You must be signed in to change notification settings - Fork 720
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
Unable to get PR-Agent GitHub Action to use Azure OpenAI #364
Comments
@krrishdholakia does litellm support this kind of deployment? |
@JyrkiHei pr_agent/algo/pr_processing.py, line 240
so maybe the var name should be I suggest catching a breaking there, and making sure you are able to pass the deployment_id |
I think that was it @mrT23! Thank you! I changed my configuration to this (not sure yet if all values are needed, because I was just testing around):
|
great 💯 will update the docs |
Similar Issues
|
Similar Issues
|
Hi!
Asked this on discord also, but was redirected here. Tried to find a solution, but did not find anything matching. I'm trying to setup the GitHub Action version of PR-Agent to give review or description on our GitHub PR changes. We want to use our own instance of Azure OpenAi Service instead of the "public" OpenAi service. Deployment_ID is the name of the deployed model in Azure OpenAI Service and the model is 'gpt-35-turbo'.lso I want to use Azure OpenAI Service, but I seem to get this error all the time*openai.error.AuthenticationError: Incorrect API key provided:**.
I cannot use GPT4 right now, the 'gpt-latest' deployment is gpt-35-turbo -model.
When I run the github action with these environment variables (key and github token naturally masked, tried also adding that config.model) I get this error saying that the OpenAI key is wrong and shows URL where I can get those API keys. But I want to use our own Azure OpenAI instance instead.... I'm really confused what environment variables should I set to get this working 😦
And I don't have any .secrets.toml or configuration.toml files in my repository... Not sure if I should have or not if I'm using these env variables.
Only results I get from running this GitHub action is ~400 lines of python error logging and in the error it says couple of times 'openai.error.AuthenticationError: Incorrect API key provided: **. You can find your API key at https://platform.openai.com/account/api-keys.'
Any ideas? (I was requested to tag you @krrishdholakia, if you could help)
The text was updated successfully, but these errors were encountered: