Use POST for more-like-this flow

This commit is contained in:
-LAN-
2025-09-27 02:36:03 +08:00
parent 695d89ef2d
commit e0fb754e80
5 changed files with 243 additions and 12 deletions

View File

@ -251,8 +251,8 @@ export const updateFeedback = async ({ url, body }: { url: string; body: Feedbac
}
export const fetchMoreLikeThis = async (messageId: string, isInstalledApp: boolean, installedAppId = '') => {
return (getAction('get', isInstalledApp))(getUrl(`/messages/${messageId}/more-like-this`, isInstalledApp, installedAppId), {
params: {
return (getAction('post', isInstalledApp))(getUrl(`/messages/${messageId}/more-like-this`, isInstalledApp, installedAppId), {
body: {
response_mode: 'blocking',
},
})