()
| 124 | } |
| 125 | |
| 126 | export function useUpdatePricing() { |
| 127 | const queryClient = useQueryClient(); |
| 128 | |
| 129 | return useMutation({ |
| 130 | mutationFn: (pricing: Partial<ModelPricing> & { model: string }) => |
| 131 | api.updatePricing(pricing), |
| 132 | onSuccess: () => { |
| 133 | queryClient.invalidateQueries({ queryKey: queryKeys.pricing }); |
| 134 | }, |
| 135 | }); |
| 136 | } |
| 137 | |
| 138 | // Sessions |
| 139 | export function useSessions(opts: SessionQueryOpts = {}) { |
no test coverage detected