Skip to content

Commit 4d038dc

Browse files
committed
update title generation for claude web client
1 parent 8825a70 commit 4d038dc

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

src/services/clients/claude/index.mjs

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -298,19 +298,20 @@ export class Claude {
298298
updated_at,
299299
})
300300
await convo.sendMessage(message, params)
301-
await this.request(`/api/generate_chat_title`, {
302-
headers: {
303-
'content-type': 'application/json',
304-
cookie: `sessionKey=${this.sessionKey}`,
301+
await this.request(
302+
`/api/organizations/${this.organizationId}/chat_conversations/${convoID}/title`,
303+
{
304+
headers: {
305+
'content-type': 'application/json',
306+
cookie: `sessionKey=${this.sessionKey}`,
307+
},
308+
body: JSON.stringify({
309+
message_content: message,
310+
recent_titles: this.recent_conversations.map((i) => i.name),
311+
}),
312+
method: 'POST',
305313
},
306-
body: JSON.stringify({
307-
organization_uuid: this.organizationId,
308-
conversation_uuid: convoID,
309-
message_content: message,
310-
recent_titles: this.recent_conversations.map((i) => i.name),
311-
}),
312-
method: 'POST',
313-
})
314+
)
314315
.then((r) => r.json())
315316
.catch(errorHandle('startConversation generate_chat_title'))
316317
return convo

0 commit comments

Comments
 (0)