import{e as n}from"./main-few-lands-burn.js";const r=t=>({addConnectionHelpingText:n('You can find your API key in <a target="_blank" class="text-blue-600 underline" rel="noopener noreferrer nofollow" href="https://platform.openai.com/settings/organization/api-keys">OpenAi Api Settings</a>'),componentName:t.componentName.connection,connectionsTypes:[{encryptKeys:["value"],label:n("Api Key"),showKey:!1,type:"api_key",verifyConnection:{headers:{Authorization:""},method:"GET",responseKeyMatch:["object"],url:"https://api.openai.com/v1/models"}}],fieldType:"config",id:"connection-id",label:n("Select Connection"),onConnectionAddChange:"CONNECTION_ADD_CHANGE",onConnectionChange:"SET_CONNECTION",render:!0,value:void 0}),p=({$:t,e:o})=>{t.setThisComponent(i=>{t.util.isConnectionComponent(i)&&i.connectionsTypes.forEach(e=>{e.type==="api_key"&&e.verifyConnection?.headers&&o.value&&(e.verifyConnection.headers.Authorization="Bearer "+o.value)})})},s=t=>({$:o,e:i})=>{o.setThisComponent(e=>{e.value=i}),o.setDb(e=>{e[t]=i})},d=["dall-e-3","gpt-4o-mini-realtime-preview-2024-12-17","gpt-4o-realtime-preview-2024-12-17","gpt-4o-mini-transcribe","gpt-4o-realtime-preview-2024-10-01","gpt-4o-audio-preview-2024-10-01","gpt-4o-audio-preview-2024-12-17","gpt-4o-audio-preview","gpt-4o-mini-audio-preview","gpt-4o-mini-audio-preview-2024-12-17","text-embedding-3-large","dall-e-2","babbage-002","text-embedding-ada-002","gpt-3.5-turbo-instruct-0914","davinci-002","gpt-3.5-turbo-instruct","gpt-4o-2024-11-20","whisper-1","gpt-4-0613","omni-moderation-2024-09-26","text-embedding-3-small","tts-1-hd","gpt-4o-mini-realtime-preview","tts-1-hd-1106","gpt-4o-transcribe","gpt-4o-realtime-preview","tts-1","tts-1-1106","o1-pro","o1-pro-2025-03-19","omni-moderation-latest","codex-mini-latest","gpt-image-1","o4-mini-deep-research"],g=["dall-e-3","text-embedding-3-large","dall-e-2","babbage-002","text-embedding-ada-002","o1-preview-2024-09-12","chatgpt-4o-latest","davinci-002","whisper-1","o1-preview","gpt-4-0613","omni-moderation-2024-09-26","text-embedding-3-small","tts-1-hd","tts-1-hd-1106","o1-pro","o1-2024-12-17","o1-pro-2025-03-19","gpt-4o-mini-audio-preview","gpt-4o-mini-audio-preview-2024-12-17","o1-mini-2024-09-12","tts-1","tts-1-1106","omni-moderation-latest","gpt-3.5-turbo-instruct","gpt-3.5-turbo-instruct-0914","codex-mini-latest","gpt-image-1","gpt-3.5-turbo","gpt-3.5-turbo-1106","gpt-3.5-turbo-0125","gpt-3.5-turbo-16k","gpt-4o-transcribe","gpt-4o-mini-transcribe","gpt-4o-mini-tts","gpt-4"];export{s as a,g as b,r as c,p as h,d as n};
