소스 검색

Update user_profile_extractor: change get_extraction_function to static

StrayWarrior 1 개월 전
부모
커밋
d02c98ff8e
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      user_profile_extractor.py

+ 2 - 1
user_profile_extractor.py

@@ -20,7 +20,8 @@ class UserProfileExtractor:
         )
         self.model_name = chat_service.VOLCENGINE_MODEL_DEEPSEEK_V3
 
-    def get_extraction_function(self) -> Dict:
+    @staticmethod
+    def get_extraction_function() -> Dict:
         """
         定义用于用户画像信息提取的Function Calling函数
         """