import{n as i}from"./rolldown-runtime-M0oDzQ_3.js";import{d as t,l as r}from"./_plugin-vue_export-helper-BP_yjQAc.js";async function o(){return t("/health")}async function d(){return t("/api/hermes/update",{method:"POST"})}async function m(){return t("/api/hermes/update/preview")}async function c(){return t("/api/hermes/update/preview/tags")}async function p(e){return t("/api/hermes/update/preview/prepare",{method:"POST",body:JSON.stringify({tag:e})})}async function u(){return t("/api/hermes/update/preview/install",{method:"POST"})}async function f(e){return t("/api/hermes/update/preview/start",{method:"POST",body:JSON.stringify({tag:e})})}async function h(){return t("/api/hermes/update/preview/stop",{method:"POST"})}async function l(){return t("/api/hermes/available-models")}async function y(e){const a=new URLSearchParams;return a.set("profile",e||"default"),t(`/api/hermes/available-models?${a.toString()}`)}async function v(e){return t("/api/hermes/provider-models",{method:"POST",body:JSON.stringify(e)})}async function P(e){await t("/api/hermes/config/model",{method:"PUT",body:JSON.stringify(e)})}async function S(e){await t("/api/hermes/model-alias",{method:"PUT",body:JSON.stringify(e)})}async function g(e){await t("/api/hermes/config/providers",{method:"POST",body:JSON.stringify(e)})}async function w(e){await t(`/api/hermes/config/providers/${encodeURIComponent(e)}`,{method:"DELETE"})}async function b(e,a){await t(`/api/hermes/config/providers/${encodeURIComponent(e)}`,{method:"PUT",body:JSON.stringify(a)})}async function O(e){return t("/api/hermes/model-visibility",{method:"PUT",body:JSON.stringify(e)})}async function T(e){return t("/api/hermes/custom-model",{method:"PUT",body:JSON.stringify(e)})}async function U(e){const a=new URLSearchParams;return a.set("provider",e.provider),a.set("model",e.model),t(`/api/hermes/custom-model?${a.toString()}`,{method:"DELETE"})}var J=i((()=>{r()}));export{P as _,y as a,b,v as c,p as d,U as f,d as g,h,l as i,J as l,f as m,g as n,m as o,w as p,o as r,c as s,T as t,u,S as v,O as y};
