readme-ai
readme-ai copied to clipboard
Feature/azure client
Hi guys, this is my first open-source PL, please be patient :D
- in case of using private GPT instances on Azure, the api calls look different
- I implemented AzureOpenAIHandler() which uses openai Azure client to call the completions endpoint (there is also an option to not use a client and construct the endpoint similarly to other handlers, however the structure of the endpoint is anyway more complex so I found this more appropriate)
- I also renamed the openai.py module as it was causing conflicts with openai lib. Ofc, I am open to different suggestions
- documentation to readme will be added once I get some feedback from the maintainers
any comments? 😄