(queryClient: QueryClient)
| 1731 | }); |
| 1732 | |
| 1733 | export const deleteUserChatProviderKey = (queryClient: QueryClient) => ({ |
| 1734 | mutationFn: (providerConfigId: string) => |
| 1735 | API.experimental.deleteUserAIProviderKey(providerConfigId), |
| 1736 | onSuccess: async () => { |
| 1737 | await Promise.all([ |
| 1738 | queryClient.invalidateQueries({ |
| 1739 | queryKey: userChatProviderConfigsKey, |
| 1740 | }), |
| 1741 | queryClient.invalidateQueries({ queryKey: chatModelsKey }), |
| 1742 | ]); |
| 1743 | }, |
| 1744 | }); |
| 1745 | |
| 1746 | const invalidateChatConfigurationQueries = async (queryClient: QueryClient) => { |
| 1747 | await Promise.all([ |
no test coverage detected