{ updateHandler(); }} >
{#if config !== null}
{$i18n.t("Manage Direct Connections")}
{#each config?.OPENAI_API_BASE_URLS ?? [] as url, idx} { updateHandler(); }} onDelete={() => { config.OPENAI_API_BASE_URLS = config.OPENAI_API_BASE_URLS.filter( (url, urlIdx) => idx !== urlIdx, ); config.OPENAI_API_KEYS = config.OPENAI_API_KEYS.filter( (key, keyIdx) => idx !== keyIdx, ); let newConfig = {}; config.OPENAI_API_BASE_URLS.forEach( (url, newIdx) => { newConfig[newIdx] = config.OPENAI_API_CONFIGS[ newIdx < idx ? newIdx : newIdx + 1 ]; }, ); config.OPENAI_API_CONFIGS = newConfig; }} /> {/each}
{$i18n.t( "Connect to your own OpenAI compatible API endpoints.", )}
{$i18n.t( "CORS must be properly configured by the provider to allow requests from rexpro-ai.", )}
{:else}
{/if}