mirror of
https://github.com/AIDotNet/AntSK.git
synced 2026-02-17 22:10:14 +08:00
add 增加校验
This commit is contained in:
@@ -80,7 +80,12 @@ namespace AntSK.Pages.Setting.AIModel
|
||||
/// </summary>
|
||||
private void HandleStartService()
|
||||
{
|
||||
llamaFactoryIsStart=true;
|
||||
if (string.IsNullOrEmpty(_aiModel.ModelName))
|
||||
{
|
||||
_ = Message.Error("请先选择模型!", 2);
|
||||
return;
|
||||
}
|
||||
llamaFactoryIsStart =true;
|
||||
_ILLamaFactoryService.StartProcess(_aiModel.ModelName, "default");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user