1.17 小bug
This commit is contained in:
parent
94b945e6b1
commit
20e297c3ad
@ -157,7 +157,7 @@ def llm_call(question, knowledge_name,file_id, result_queue, ans_index, llm_type
|
||||
ans = send_message(assistant, message=question)
|
||||
result_queue.put((ans_index, (question, ans))) # 在队列中添加索引 (question, ans)
|
||||
elif llm_type==2:
|
||||
print(f"qianwen_long! question:{question}")
|
||||
# print(f"qianwen_long! question:{question}")
|
||||
# qianwen_res,usage = qianwen_long(file_id,question) #有bug
|
||||
qianwen_res = qianwen_long(file_id, question,2,1,need_extra)
|
||||
if not qianwen_res:
|
||||
@ -172,6 +172,12 @@ def llm_call(question, knowledge_name,file_id, result_queue, ans_index, llm_type
|
||||
result_queue.put((ans_index, None)) # 如果为空字符串,直接返回 None
|
||||
else:
|
||||
result_queue.put((ans_index, (question, qianwen_plus_res)))
|
||||
elif llm_type==4:
|
||||
qianwen_plus_res = qianwen_plus(question, need_extra)
|
||||
if not qianwen_plus_res:
|
||||
result_queue.put((ans_index, None)) # 如果为空字符串,直接返回 None
|
||||
else:
|
||||
result_queue.put((ans_index, (question, qianwen_plus_res)))
|
||||
else :
|
||||
assistant = pure_assistant()
|
||||
ans = send_message(assistant, message=question)
|
||||
|
@ -33,8 +33,7 @@ def fetch_procurement_reqs(procurement_path, invalid_path):
|
||||
if proc_path == invalid_path:
|
||||
# 读取 PDF 页码数
|
||||
page_count = get_pdf_page_count(procurement_path)
|
||||
|
||||
if page_count > 80: # 如果页码数大于 580
|
||||
if page_count > 60: # 如果页码数大于60,不转markdown
|
||||
tech_model_type= 2 #long
|
||||
busi_model_type=3 #long-stream
|
||||
processed_filepath = ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user