api typing check

This commit is contained in:
UnCLASPrommer
2025-07-15 19:09:04 +08:00
parent 2fab069dca
commit 80a1c0bf93
8 changed files with 144 additions and 26 deletions

View File

@@ -108,8 +108,8 @@ class EmojiAction(BaseAction):
models = llm_api.get_available_models()
chat_model_config = getattr(models, "utils_small", None) # 默认使用chat模型
if not chat_model_config:
logger.error(f"{self.log_prefix} 未找到'chat'模型配置无法调用LLM")
return False, "未找到'chat'模型配置"
logger.error(f"{self.log_prefix} 未找到'utils_small'模型配置无法调用LLM")
return False, "未找到'utils_small'模型配置"
success, chosen_emotion, _, _ = await llm_api.generate_with_model(
prompt, model_config=chat_model_config, request_type="emoji"