matrixgpt / matrix-chatgpt-bot

Talk to ChatGPT via any Matrix client!
GNU Affero General Public License v3.0
235 stars 63 forks source link

Add support for Azure OpenAI #186

Closed sg-qwt closed 1 year ago

sg-qwt commented 1 year ago

This allows to use Azure's openai endpoint in together with CHATGPT_REVERSE_PROXY.

The relevant upstream change is here: https://github.com/waylaidwanderer/node-chatgpt-api/pull/361

max298 commented 1 year ago

Thanks! I'll give this a quick test shortly

sg-qwt commented 1 year ago

If it helps, I've done some manual testing with the following setup, and I think it just works, at least 'on my machine' :D https://github.com/sg-qwt/nixos/commit/4c092710804655ba228e91ffbff5b0f4dc3c059d#diff-f3157762c08d07b67c3eaab6a86876fe6ef5d1a4c672174095c5571c4143179fR149

max298 commented 1 year ago

Sorry, this took longer than expected, had some other stuff to get done. I've just run a quick test for myself, looks good! Thank you for contributing 👍 I'll release a new minor version shortly.