MQTTX
MQTTX copied to clipboard
[Feature] Add an option for the OpenAI Host interface.
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.
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):
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!
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.