mem0 icon indicating copy to clipboard operation
mem0 copied to clipboard

Feature Request - Integrate Azure's OpenAI API as an Option

Open big-analytics opened this issue 2 years ago • 1 comments

Currently, embedchain is designed to use OpenAI's API for creating embeddings and leveraging the power of GPT-3 for generating answers in the context of chatbots. This feature request proposes to include the option of using Azure's OpenAI API as an alternative.

Azure, a comprehensive suite of cloud services offered by Microsoft, also provides an implementation of OpenAI API. Integration with Azure's OpenAI API would provide a choice to the users to select between OpenAI's original API and Azure's version based on their specific requirements and preferences.

big-analytics avatar Jun 21 '23 20:06 big-analytics

Can modify the source code of the API configuration.

xihuishawpy avatar Jun 29 '23 16:06 xihuishawpy

@big-analytics @xihuishawpy please check the above PR, you can use Azure OpenAI as following:

  1. In addition to OpenAI key add API base in environment as : OPENAI_API_BASE
  2. add is_azure=True in InitConfig

Please test this out if you have Azure OpenAI keys

aaishikdutta avatar Jul 17 '23 13:07 aaishikdutta

this is addressed now. Closing the issue.

taranjeet avatar Aug 11 '23 06:08 taranjeet