import{_ as n}from"./main-tangy-colts-beg.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const p=e=>({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:e.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}),s=({$:e,e:t})=>{e.setThisComponent(i=>{e.util.isConnectionComponent(i)&&i.connectionsTypes.forEach(o=>{var a;o.type==="api_key"&&((a=o.verifyConnection)!=null&&a.headers)&&t.value&&(o.verifyConnection.headers.Authorization="Bearer "+t.value)})})},c=e=>({$:t,e:i})=>{t.setThisComponent(o=>{o.value=i}),t.setDb(o=>{o[e]=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{g as a,c as b,p as c,s as h,d as n};
