aidar-freeed / ai-codereviewer

AI Code Reviewer: Enhance your GitHub workflow with AI-powered code review! Get intelligent feedback and suggestions on pull requests using OpenAI's GPT-4 API, improving code quality and saving developers time.
MIT License
662 stars 634 forks source link

Does this repo support Gemini API instead of OpenAI's GPT-4 API? #96

Open truongnh1992 opened 1 month ago

truongnh1992 commented 1 month ago

Hi, The repo ai-codereviewer currently uses a GPT model for code analysis. Is it possible to use the Gemini model instead?

MrMasrozYTLIVE commented 1 month ago

Hi, The repo ai-codereviewer currently uses a GPT model for code analysis. Is it possible to use the Gemini model instead?

After checking the code: yes. But you must fork the repo, modify it to use https://github.com/google-gemini/generative-ai-js instead of OpenAI library and then builld it yourself

kylebrowning commented 1 month ago

So no then? haha

MrMasrozYTLIVE commented 1 month ago

So no then? haha

Its a yes. You must modify the src to use gemini instead of openai, but it's possible to do

kylebrowning commented 1 month ago

The question was does this repo support Gemini, and the answer to that is no unless you fork it.

MrMasrozYTLIVE commented 1 month ago

The question was does this repo support Gemini, and the answer to that is no unless you fork it.

Oh my bad. Yeah then its a no