import{l as i}from"./main-few-lands-burn.js";const l="https://api.deepseek.com/",d=async t=>i({headers:{Authorization:["Bearer ",{encryption:"hmac_decrypt",value:t}]},method:"GET",url:`${l}models`}),r=async t=>{t.setComponent("model-id",e=>{e.loading=!0});const o=await t.getConnection();if(!o)return;const{data:n,status:s}=await d(o.auth_details.value);if(s!=="success"){t.setComponent("model-id",e=>{t.util.isSelectComponent(e)&&(e.loading=!1,e.status=s,e.invalidMessage=n)}),console.error("Failed to fetch list");return}t.setComponent("model-id",e=>{t.util.isSelectComponent(e)&&(e.options=n?.data?.map(a=>({label:a.id,value:a.id})),e.loading=!1)})};export{r as f};
