ai-codereviewer icon indicating copy to clipboard operation
ai-codereviewer copied to clipboard

Azure GPT support

Open gofort opened this issue 1 year ago • 3 comments

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.

gofort avatar Jan 19 '24 10:01 gofort

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

villesau avatar Jan 19 '24 14:01 villesau

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

gofort avatar Jan 20 '24 13:01 gofort

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.

mathiash98 avatar Apr 11 '24 09:04 mathiash98