import{e as o}from"./main-few-lands-burn.js";const c=e=>({addConnectionHelpingText:o('You can find your API key in <a target="_blank" class="text-blue-600 underline" rel="noopener noreferrer nofollow" href="https://console.groq.com/keys">Groq Console API Keys</a>'),componentName:e.componentName.connection,connectionsTypes:[{encryptKeys:["value"],label:o("Api Key"),showKey:!1,type:"api_key",verifyConnection:{headers:{Authorization:""},method:"GET",responseKeyMatch:["object"],url:"https://api.groq.com/openai/v1/models"}}],fieldType:"config",id:"connection-id",label:o("Select Connection"),onConnectionAddChange:"CONNECTION_ADD_CHANGE",onConnectionChange:"SET_CONNECTION",render:!0,value:void 0}),r=({$:e,e:t})=>{e.setThisComponent(i=>{e.util.isConnectionComponent(i)&&i.connectionsTypes.forEach(n=>{n.type==="api_key"&&n.verifyConnection?.headers&&t.value&&(n.verifyConnection.headers.Authorization="Bearer "+t.value)})})};export{c,r as h};
