MCPcopy Create free account
hub / github.com/astercloud/aster / useUpdatePricing

Function useUpdatePricing

studio/src/hooks/useApi.ts:126–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124}
125
126export 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
139export function useSessions(opts: SessionQueryOpts = {}) {

Callers 1

SettingsFunction · 0.90

Calls 1

updatePricingMethod · 0.80

Tested by

no test coverage detected