Revert WeChat Intelligent Conversation implementation - awaiting official API documentation #3724
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR initially implemented support for WeChat Intelligent Conversation (微信智能对话) functionality in the MP module, but has been reverted after feedback indicating that the API endpoint was incorrectly assumed. The implementation has been reverted pending access to the official WeChat AI Speech documentation.
What Was Reverted
The following implementation has been completely removed:
Removed API Methods from
WxMpAiOpenService
intelligentConversation(String query, String sessionId)
- Basic intelligent conversation with default Chinese languageintelligentConversation(String query, String sessionId, AiLangType lang)
- Conversation with explicit language specificationintelligentConversation(WxMpAiConversationRequest request)
- Bean-based method for structured requestsRemoved Bean Classes
WxMpAiConversationRequest
- Request object supporting query, sessionId, and language parametersWxMpAiConversationResponse
- Response object with reply content, sessionId, and error handlingRemoved API Integration
INTELLIGENT_CONVERSATION_URL
constant fromWxMpApiUrl.AiOpen
enum that pointed to/cgi-bin/aispeech/conversation
WxMpAiOpenServiceImpl
with JSON request/response handlingWxMpAiOpenServiceImplTest
Reason for Reversion
The API endpoint
/cgi-bin/aispeech/conversation
that was implemented does not exist in the official WeChat documentation. This was an incorrect assumption made during the initial implementation. The official documentation is available at https://developers.weixin.qq.com/doc/aispeech/confapi/dialog/token.html, which indicates the correct API structure uses/confapi/dialog/
endpoints.Current State
All files have been restored to their original state from the base commit:
WxMpAiOpenService.java
- Reverted to original interfaceWxMpAiOpenServiceImpl.java
- Reverted to original implementationWxMpApiUrl.java
- Removed non-existent API URL constantWxMpAiOpenServiceImplTest.java
- Reverted to original testsThe repository is now back to a clean state without any incorrect API implementation. All existing AI services (voice recognition, translation) remain unchanged and fully functional.
Next Steps
This feature will be properly implemented based on the official WeChat AI Speech documentation at https://developers.weixin.qq.com/doc/aispeech/confapi/dialog/token.html once the correct API endpoints and request/response structures are clarified.
Addresses #3523
Fixes #3523
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.