MQTTX icon indicating copy to clipboard operation
MQTTX copied to clipboard

[Feature] Add an option for the OpenAI Host interface.

Open ni00 opened this issue 1 year ago • 1 comments

Motivation

Some users do not directly use the api host service provided by OpenAI, but use third-party openai compatible interfaces, such as Azure OpenAI API or Claude, which can also return compatible data and results.

Detailed design

Add an option in the settings (and a field in the database at the same time), the default value is the official Host interface of OpenAI, but users can customize it.

img1

Alternatives

Maintain the status quo, as the official api can deliver the best performance. However, in some areas (including China), it may not be possible to directly use OpenAI's interface service.

More detail (optional)

Other similar options in open source projects (ChatBox):

img2 img3

ni00 avatar Dec 28 '23 05:12 ni00

Thank you for the suggestions, @ni00! They are indeed valuable. Currently, we focus on rapidly testing and implementing the Copilot AI functionality, which is why we initially opted for OpenAI's API. Your idea of integrating third-party OpenAI-compatible interfaces is interesting and could be considered for future updates. If you're interested, feel free to join in on the contributions. Thanks again!

ysfscream avatar Dec 29 '23 09:12 ysfscream

The issue has been fixed in https://github.com/emqx/MQTTX/releases/tag/v1.10.1. Please update and use it. Thank you for your feedback and contribution.

ysfscream avatar Jul 17 '24 02:07 ysfscream