yGuy / chatgpt-mattermost-bot

A very simple implementation of a service for a mattermost bot that uses ChatGPT in the backend.
MIT License
145 stars 50 forks source link

✨ Feature: add support for Azure OpenAI Service #41

Open takuya-o opened 1 year ago

takuya-o commented 1 year ago

If setting Azure OpenAI API key instead of OpenAI API key, it uses Azure OpenAI Service. The instance name, deployment name and API version are now configurable via environment variables. The API request base path and headers are set upped accordingly to use the Azure OpenAI Service API.

cforce commented 9 months ago

@takuya-o please adopt to allow to merge your contribution without conflicts