fix: 修复返回的 embedding 为空时的处理逻辑

This commit is contained in:
Windpicker-owo
2025-11-27 22:08:22 +08:00
parent 26520c123a
commit 25571bf0ec
2 changed files with 71 additions and 56 deletions

View File

@@ -367,6 +367,7 @@ class BotInterestManager:
self.embedding_dimension,
current_dim,
)
return embedding
else:
raise RuntimeError(f"❌ 返回的embedding为空: {embedding}")