{ updateOpenAIHandler(); dispatch('save'); }} >
OpenAI API
{ showOpenAI = !showOpenAI; }}>{showOpenAI ? 'Hide' : 'Show'}
{#if showOpenAI}
{#each OPENAI_API_BASE_URLS as url, idx}
{#if idx === 0}
{ OPENAI_API_BASE_URLS = [...OPENAI_API_BASE_URLS, '']; OPENAI_API_KEYS = [...OPENAI_API_KEYS, '']; }} type="button" >
{:else}
{ OPENAI_API_BASE_URLS = OPENAI_API_BASE_URLS.filter( (url, urlIdx) => idx !== urlIdx ); OPENAI_API_KEYS = OPENAI_API_KEYS.filter((key, keyIdx) => idx !== keyIdx); }} type="button" >
{/if}
WebUI will make requests to
'{url}/models'
{/each}
{/if}
Ollama Base URL
{#each OLLAMA_BASE_URLS as url, idx}
{#if idx === 0}
{ OLLAMA_BASE_URLS = [...OLLAMA_BASE_URLS, '']; }} type="button" >
{:else}
{ OLLAMA_BASE_URLS = OLLAMA_BASE_URLS.filter((url, urlIdx) => idx !== urlIdx); }} type="button" >
{/if}
{/each}
{ updateOllamaUrlsHandler(); }} type="button" >
Trouble accessing Ollama?
Click here for help.
Save