mirror of
https://github.com/open-webui/computer.git
synced 2026-11-30 00:45:14 -05:00
refac
This commit is contained in:
1 parent
577836a086
commit
de7ca987a5
44 files changed
+1905
-713
No files matched your search
@@ -118,7 +118,7 @@
|
||||
>
|
||||
<input
|
||||
type="text"
|
||||
placeholder="Optional"
|
||||
placeholder={$t('connections.optional')}
|
||||
bind:value={formName}
|
||||
autofocus
|
||||
autocomplete="off"
|
||||
@@ -127,7 +127,9 @@
|
||||
/>
|
||||
</div>
|
||||
<div class="w-28 shrink-0">
|
||||
<label class="text-[0.625rem] text-gray-400 dark:text-gray-600">Provider</label>
|
||||
<label class="text-[0.625rem] text-gray-400 dark:text-gray-600">
|
||||
{$t('connections.provider')}
|
||||
</label>
|
||||
<select
|
||||
bind:value={formProvider}
|
||||
class="block w-full bg-transparent text-[0.8125rem] text-gray-700 dark:text-gray-300 outline-none py-0.5 cursor-pointer"
|
||||
@@ -139,13 +141,15 @@
|
||||
</div>
|
||||
|
||||
{#if formProvider === 'openai'}
|
||||
<label class="text-[0.625rem] text-gray-400 dark:text-gray-600 mt-2">API Type</label>
|
||||
<label class="text-[0.625rem] text-gray-400 dark:text-gray-600 mt-2">
|
||||
{$t('connections.apiType')}
|
||||
</label>
|
||||
<select
|
||||
bind:value={formApiType}
|
||||
class="block w-full bg-transparent text-[0.8125rem] text-gray-700 dark:text-gray-300 outline-none py-0.5 cursor-pointer"
|
||||
>
|
||||
<option value="chat_completions">Chat Completions</option>
|
||||
<option value="responses">Responses</option>
|
||||
<option value="chat_completions">{$t('connections.chatCompletions')}</option>
|
||||
<option value="responses">{$t('connections.responses')}</option>
|
||||
</select>
|
||||
{/if}
|
||||
|
||||
|
||||
Reference in new issue
Block a user