Browse Source

2024-0514-搜索策略实验上线

罗俊辉 11 months ago
parent
commit
4f461d9f1c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      applications/functions/kimi.py
  2. 1 1
      dev/test.py

+ 1 - 1
applications/functions/kimi.py

@@ -151,7 +151,7 @@ class KimiServer(object):
             model="moonshot-v1-8k",
             model="moonshot-v1-8k",
         )
         )
         response = chat_completion.choices[0].message.content
         response = chat_completion.choices[0].message.content
-        return response
+        return response.split("\n")[0]
 
 
     @classmethod
     @classmethod
     async def kimi_mining(cls, text):
     async def kimi_mining(cls, text):

File diff suppressed because it is too large
+ 1 - 1
dev/test.py


Some files were not shown because too many files changed in this diff