fix(agent): 修复更新智能体时无法保存视觉模型的问题

This commit is contained in:
brucelee
2025-06-10 16:09:27 +08:00
parent 992eb89d1a
commit aa7303c707
3 changed files with 6 additions and 35 deletions
@@ -171,6 +171,9 @@ public class AgentController {
if (dto.getLlmModelId() != null) {
existingEntity.setLlmModelId(dto.getLlmModelId());
}
if (dto.getVllmModelId() != null) {
existingEntity.setVllmModelId(dto.getVllmModelId());
}
if (dto.getTtsModelId() != null) {
existingEntity.setTtsModelId(dto.getTtsModelId());
}
@@ -30,6 +30,9 @@ public class AgentUpdateDTO implements Serializable {
@Schema(description = "大语言模型标识", example = "llm_model_02", required = false)
private String llmModelId;
@Schema(description = "VLLM模型标识", example = "vllm_model_01", required = false)
private String vllmModelId;
@Schema(description = "语音合成模型标识", example = "tts_model_02", required = false)
private String ttsModelId;