mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-14 11:37:31 +08:00
fix(skill): use getModel instead of nonexistent getById in SkillSynthesisService
This commit is contained in:
parent
1fdf87b31e
commit
04ad281ffd
@ -224,7 +224,7 @@ public class SkillSynthesisService {
|
|||||||
ModelConfigEntity model = null;
|
ModelConfigEntity model = null;
|
||||||
if (properties.getModelId() != null && !properties.getModelId().isBlank()) {
|
if (properties.getModelId() != null && !properties.getModelId().isBlank()) {
|
||||||
try {
|
try {
|
||||||
model = modelConfigService.getById(Long.parseLong(properties.getModelId()));
|
model = modelConfigService.getModel(Long.parseLong(properties.getModelId()));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.warn("[SkillSynthesis] Invalid modelId '{}', falling back to default", properties.getModelId());
|
log.warn("[SkillSynthesis] Invalid modelId '{}', falling back to default", properties.getModelId());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user