mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-28 10:03:54 +08:00
修复智控台保存时保存不了视觉模型的bug
This commit is contained in:
@@ -171,6 +171,9 @@ public class AgentController {
|
|||||||
if (dto.getLlmModelId() != null) {
|
if (dto.getLlmModelId() != null) {
|
||||||
existingEntity.setLlmModelId(dto.getLlmModelId());
|
existingEntity.setLlmModelId(dto.getLlmModelId());
|
||||||
}
|
}
|
||||||
|
if (dto.getVllmModelId() != null) {
|
||||||
|
existingEntity.setVllmModelId(dto.getVllmModelId());
|
||||||
|
}
|
||||||
if (dto.getTtsModelId() != null) {
|
if (dto.getTtsModelId() != null) {
|
||||||
existingEntity.setTtsModelId(dto.getTtsModelId());
|
existingEntity.setTtsModelId(dto.getTtsModelId());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,6 +30,9 @@ public class AgentUpdateDTO implements Serializable {
|
|||||||
@Schema(description = "大语言模型标识", example = "llm_model_02", required = false)
|
@Schema(description = "大语言模型标识", example = "llm_model_02", required = false)
|
||||||
private String llmModelId;
|
private String llmModelId;
|
||||||
|
|
||||||
|
@Schema(description = "VLLM模型标识", example = "vllm_model_02", required = false)
|
||||||
|
private String vllmModelId;
|
||||||
|
|
||||||
@Schema(description = "语音合成模型标识", example = "tts_model_02", required = false)
|
@Schema(description = "语音合成模型标识", example = "tts_model_02", required = false)
|
||||||
private String ttsModelId;
|
private String ttsModelId;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user