(queryClient: QueryClient)
| 1096 | }); |
| 1097 | |
| 1098 | export const proposeChatTitle = (queryClient: QueryClient) => ({ |
| 1099 | mutationFn: (chatId: string) => API.experimental.proposeChatTitle(chatId), |
| 1100 | |
| 1101 | onSettled: ( |
| 1102 | _data: { title: string } | undefined, |
| 1103 | _error: unknown, |
| 1104 | chatId: string, |
| 1105 | ) => { |
| 1106 | void invalidateChatDebugRuns(queryClient, chatId); |
| 1107 | }, |
| 1108 | }); |
| 1109 | |
| 1110 | type UpdateChatTitleVariables = { |
| 1111 | chatId: string; |
no test coverage detected