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 customizable OpenAI API model parameter #13

Merged

Conversation

lfsevergnini
Copy link
Contributor

What's new

This PR adds a new parameter to the freeedcom/ai-codereviewer Github Action: OPENAI_API_MODEL, which enables its users to customize the OpenAI model as needed.

Why

As mentioned in issue #12, a possible reason for a "404 Not Found" error while posting a request to OpenAI API's endpoint is that the API Key doesn't have access to the gpt-4 model.

With these updates, it'll be possible to use another OpenAI model e.g. gpt-3.5-turbo instead.

@lfsevergnini
Copy link
Contributor Author

@villesau I didn't find any guidelines on how to contribute, so I inspected the latest commits in the main branch.

I ran yarn package after saving my changes. FYI used Node 18.

Please let me know if you want me to follow a different approach.

Copy link

@bbernstein bbernstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very helpful addition, works well for me.

@villesau
Copy link
Contributor

Nice, looks great! And sorry for being slow with merging this. I'll release the new version to marketplace shortly.

@villesau villesau merged commit d3abad1 into freeedcom:main Jul 31, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants