Skip to content

Commit f5f5126

Browse files
committed
fix(react-app): 修正 dify-api 中的 重命名/删除对话 API 路径错误
- 将 conversations 改为 conversation
1 parent 43026e9 commit f5f5126

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-app/src/utils/dify-api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ export class DifyApi {
478478
auto_generate?: boolean
479479
}) => {
480480
const { conversation_id, ...restParams } = params
481-
return this.baseRequest.post(`/conversations/${conversation_id}/name`, {
481+
return this.baseRequest.post(`/conversation/${conversation_id}/name`, {
482482
...restParams,
483483
user: this.options.user,
484484
})
@@ -488,7 +488,7 @@ export class DifyApi {
488488
* 删除会话
489489
*/
490490
deleteConversation = (conversation_id: string) => {
491-
return this.baseRequest.delete(`/conversations/${conversation_id}`, {
491+
return this.baseRequest.delete(`/conversation/${conversation_id}`, {
492492
user: this.options.user,
493493
})
494494
}

0 commit comments

Comments
 (0)