freeedcom / 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
479 stars 439 forks source link

Azure GPT support #40

Open gofort opened 6 months ago

gofort commented 6 months ago

It would be nice to support Azure GPT private instances which don't leak code inputs. There is an action from Microsoft, but we have tested it and comments are useless really. It pushes only 1 comment and that's it.

villesau commented 6 months ago

Is the API structure similar? If so, feel free to open a PR that adds a prop that allows overriding the base url 👌

gofort commented 6 months ago

Not sure. As I don't know JS it takes some time to understand :) It also seems that their SDK is in beta right now https://learn.microsoft.com/en-us/javascript/api/overview/azure/openai-readme?view=azure-node-preview#examples

mathiash98 commented 3 months ago

Implementing this should be quite easy, I might make a PR for this when I test out the project. Pretty much to just add support for https://www.npmjs.com/package/@azure/openai

I know there are some NPM projects where they aim to support a range of LLM backend models like mistral, Llama, OpenAi, Azure OpenAi in the same package by just defining what to use and define required env variables.