feat: Add support for builtin models in the application
- Introduced `is_builtin` property in the model configuration to identify builtin models. - Updated frontend components to display a tag for builtin models in the ModelSelector and ModelSettings. - Enhanced the ModelEditorDialog to prevent editing and deletion of builtin models. - Implemented logic in the backend to hide sensitive information for builtin models and restrict their modification. - Added informative UI elements to clarify the nature of builtin models in the settings and editor views.
This commit is contained in:
@@ -535,6 +535,16 @@ watch(() => props.visible, async (newVal) => {
|
||||
}, 300)
|
||||
}
|
||||
})
|
||||
|
||||
// 监听全局设置弹窗关闭后刷新模型列表
|
||||
watch(
|
||||
() => uiStore.showSettingsModal,
|
||||
async (visible, previous) => {
|
||||
if (!visible && previous && props.visible) {
|
||||
await loadAllModels()
|
||||
}
|
||||
}
|
||||
)
|
||||
</script>
|
||||
|
||||
<style scoped lang="less">
|
||||
|
||||
Reference in New Issue
Block a user