refactor(model): streamline model filtering and SSRF validation
- Simplified model filtering logic by removing the deduplication function and directly filtering models based on type. - Updated SSRF validation to preserve backend-managed fields when parameters are not provided by the frontend. - Clarified comments and improved code readability in the ModelEditorDialog and ModelSettings components.
This commit is contained in:
@@ -230,8 +230,8 @@
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- Chat/VLLM: supports vision toggle -->
|
||||
<div v-if="modelType === 'chat' || modelType === 'vllm'" class="form-item">
|
||||
<!-- Chat: supports vision toggle (VLLM models are inherently multimodal) -->
|
||||
<div v-if="modelType === 'chat'" class="form-item">
|
||||
<label class="form-label">{{ $t('model.editor.supportsVisionLabel') }}</label>
|
||||
<div style="display: flex; align-items: center; gap: 8px;">
|
||||
<t-switch v-model="formData.supportsVision" />
|
||||
|
||||
Reference in New Issue
Block a user