import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{i as t}from"./markdown-Biq8ujIZ.js";import{q as n}from"./index-Bh9Wgd1K.js";import{n as r}from"./tts-BkGhWsdm.js";var i=e(t(),1);function a(){let{data:e,loading:t}=n(`settings/ai`),a=e?.groqKey??``;return(0,i.useEffect)(()=>{r(a)},[a]),{apiKey:a,model:e?.model??`openai/gpt-oss-120b`,hasKey:!!e?.groqKey,loading:t}}export{a as t};