fix(skill): use getModel instead of nonexistent getById in SkillSynthesisService

This commit is contained in:
matevip 2026-04-16 17:11:46 +08:00
parent 1fdf87b31e
commit 04ad281ffd

View File

@ -224,7 +224,7 @@ public class SkillSynthesisService {
ModelConfigEntity model = null;
if (properties.getModelId() != null && !properties.getModelId().isBlank()) {
try {
model = modelConfigService.getById(Long.parseLong(properties.getModelId()));
model = modelConfigService.getModel(Long.parseLong(properties.getModelId()));
} catch (Exception e) {
log.warn("[SkillSynthesis] Invalid modelId '{}', falling back to default", properties.getModelId());
}