File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed
src/services/clients/claude Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -298,19 +298,20 @@ export class Claude {
298
298
updated_at,
299
299
} )
300
300
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' ,
305
313
} ,
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
+ )
314
315
. then ( ( r ) => r . json ( ) )
315
316
. catch ( errorHandle ( 'startConversation generate_chat_title' ) )
316
317
return convo
You can’t perform that action at this time.
0 commit comments