import{u as c}from"./useQuery-PdiC7-sY.js";import{a as u,b as s,o as t}from"./index-O0BQoyzo.js";const a={all:["llm"],list:["llm","list"]};function r(){return c({queryKey:a.list,queryFn:()=>t.get("/api/llm")})}function m(){const e=u();return s({mutationFn:n=>t.post("/api/llm/backends",{body:n}),onSuccess:()=>e.invalidateQueries({queryKey:a.all})})}function p(){const e=u();return s({mutationFn:n=>t.delete(`/api/llm/backends/${encodeURIComponent(n)}`),onSuccess:()=>e.invalidateQueries({queryKey:a.all})})}function d(){const e=u();return s({mutationFn:n=>t.put("/api/llm/roles",{body:n}),onSuccess:()=>e.invalidateQueries({queryKey:a.all})})}function y(){return s({mutationFn:e=>t.post(`/api/llm/backends/${encodeURIComponent(e)}/ping`)})}const i={all:["mcp"],list:["mcp","list"]};function q(){return c({queryKey:i.list,queryFn:()=>t.get("/api/mcp")})}function v(){const e=u();return s({mutationFn:n=>t.post("/api/mcp/servers",{body:n}),onSuccess:()=>e.invalidateQueries({queryKey:i.all})})}function f(){const e=u();return s({mutationFn:n=>t.delete(`/api/mcp/servers/${encodeURIComponent(n)}`),onSuccess:()=>e.invalidateQueries({queryKey:i.all})})}function K(){const e=u();return s({mutationFn:n=>t.post(`/api/mcp/servers/${encodeURIComponent(n)}/health`),onSuccess:()=>e.invalidateQueries({queryKey:i.all})})}export{p as a,y as b,d as c,m as d,q as e,f,K as g,v as h,r as u};
//# sourceMappingURL=use-llm-admin-DYekqogG.js.map
