File tree Expand file tree Collapse file tree
src/services/clients/claude Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments