Commit 34e9e568 by lei

1

parent bfb2299e
...@@ -38,6 +38,7 @@ def gpt_callback(res_prompt, task): ...@@ -38,6 +38,7 @@ def gpt_callback(res_prompt, task):
def split_prompt(response, task): def split_prompt(response, task):
try: try:
text = response.choices[0].text text = response.choices[0].text
logger.info(text)
if text: if text:
# 使用正则定义分隔符 # 使用正则定义分隔符
pattern = r'\n[1-9]{1,2}.*.' pattern = r'\n[1-9]{1,2}.*.'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment