🤖 自动格式化代码 [skip ci]

This commit is contained in:
github-actions[bot]
2025-07-03 04:26:17 +00:00
parent c3588a707c
commit fbe8f08862
7 changed files with 15 additions and 18 deletions

View File

@@ -74,9 +74,7 @@ class ExpressionLearner:
)
self.llm_model = None
def get_expression_by_chat_id(
self, chat_id: str
) -> Tuple[List[Dict[str, str]], List[Dict[str, str]]]:
def get_expression_by_chat_id(self, chat_id: str) -> Tuple[List[Dict[str, str]], List[Dict[str, str]]]:
"""
获取指定chat_id的style和grammar表达方式
返回的每个表达方式字典中都包含了source_id, 用于后续的更新操作
@@ -110,7 +108,6 @@ class ExpressionLearner:
except Exception as e:
logger.error(f"读取grammar表达方式失败: {e}")
return learnt_style_expressions, learnt_grammar_expressions
def is_similar(self, s1: str, s2: str) -> bool: