Parcourir la source

Update user_profile_extractor: change get_extraction_function to static

StrayWarrior il y a 1 semaine
Parent
commit
d02c98ff8e
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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函数
         """