generationConversationName接口怎么使用? #38

Closed
opened 2026-02-16 10:15:54 -05:00 by yindo · 3 comments
Owner

Originally created by @fycfyc123 on GitHub (Aug 1, 2024).

export const generationConversationName = async (id: string) => {
return post(conversations/${id}/name, { body: { auto_generate: true } })
}

这个是这个接口原本的样子,现在我想根据传递的name属性,去更改会话列表, 我在参数和body里面加了name,但是不好使啊,求助大佬 这是怎么回事啊

Originally created by @fycfyc123 on GitHub (Aug 1, 2024). export const generationConversationName = async (id: string) => { return post(`conversations/${id}/name`, { body: { auto_generate: true } }) } 这个是这个接口原本的样子,现在我想根据传递的name属性,去更改会话列表, 我在参数和body里面加了name,但是不好使啊,求助大佬 这是怎么回事啊
yindo closed this issue 2026-02-16 10:15:54 -05:00
Author
Owner

@iamjoel commented on GitHub (Aug 7, 2024):

The api don't support change conversation name by the specified name.

@iamjoel commented on GitHub (Aug 7, 2024): The api don't support change conversation name by the specified name.
Author
Owner

@lanizz commented on GitHub (Feb 24, 2025):

去掉auto_generate字段

export const generationConversationName = async (id: string, name:string) => {
    return post(conversations/${id}/name,  { body: { name } })
}
@lanizz commented on GitHub (Feb 24, 2025): 去掉auto_generate字段 ``` export const generationConversationName = async (id: string, name:string) => { return post(conversations/${id}/name, { body: { name } }) } ```
Author
Owner

@wenmin92 commented on GitHub (Apr 9, 2025):

这个接口没有自动生成名称,调用时,即使加上 auto_generate 和 user 也不行,返回的都是 New conversation,只能通过 name 来强行命名成指定名称?

@wenmin92 commented on GitHub (Apr 9, 2025): 这个接口没有自动生成名称,调用时,即使加上 auto_generate 和 user 也不行,返回的都是 New conversation,只能通过 name 来强行命名成指定名称?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/webapp-conversation#38