RainEggplant / chatgpt-telegram-bot

A ChatGPT bot for Telegram based on Node.js. Support both browserless and browser-base APIs.
MIT License
323 stars 97 forks source link

[Feature Request]: Could it support azure openai #49

Open suikaremilia opened 1 year ago

suikaremilia commented 1 year ago

Not a duplicate feature request

Supported by the upstream API

Describe the feature

Azure also provides gpt services, this key payment is more convenient. And their documents show that as long as there is one more definition of openai.api_type = "azure", the openai module can be used directly. So could you consider adding support for Azure OpenAI? Thanks.

https://learn.microsoft.com/en-us/azure/cognitive-services/openai/overview

Additional context

No response

suikaremilia commented 1 year ago

https://github.com/stulzq/azure-openai-proxy

I found this project, and the integration of azure openai and this project can be realized through this proxy.

Vadko commented 1 year ago

Hello @suikaremilia, thanks for your request, unfortunately we don't have enough time for this, feel free to open PR.