Merge branch 'main' into copilot/add-self-hosted-ocr-support

This commit is contained in:
Christian Krakau-Louis
2026-02-23 23:51:43 +01:00
committed by GitHub
18 changed files with 1187 additions and 112 deletions
+26
View File
@@ -139,6 +139,7 @@
Enable {{ setting.key.replace('_', ' ').title() }}
</label>
</div>
<<<<<<< copilot/add-self-hosted-ocr-support
{% elif setting.metadata.type == 'multiselect' and setting.metadata.options %}
<!-- Multi-select checkboxes: stored as comma-separated string -->
<div class="flex flex-wrap gap-2 mt-1">
@@ -160,6 +161,31 @@
{% endfor %}
</div>
<p class="mt-1 text-xs text-gray-400">Effective value: <code x-text="formData['{{ setting.key }}'] || '(none)'"></code></p>
=======
{% elif setting.metadata.type == 'model_picker' %}
<!-- Model Picker: free-text input with datalist of common models -->
<div class="relative">
<input
type="text"
id="{{ setting.key }}"
name="{{ setting.key }}"
list="{{ setting.key }}_models"
x-model="formData['{{ setting.key }}']"
class="setting-input w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500"
placeholder="Select a common model or type a custom name…"
autocomplete="off"
/>
<datalist id="{{ setting.key }}_models">
{% for m in setting.metadata.suggested_models %}
<option value="{{ m }}">{{ m }}</option>
{% endfor %}
</datalist>
<p class="text-xs text-gray-400 mt-1">
<i class="fas fa-info-circle mr-1"></i>
Pick from the list or type any model name supported by your provider.
</p>
</div>
>>>>>>> main
{% elif setting.metadata.options %}
<!-- Dropdown Select for fields with a fixed list of values -->
<select