|
@@ -125,9 +125,9 @@ class QueryGenerationAgent:
|
|
with httpx.Client() as client:
|
|
with httpx.Client() as client:
|
|
data_content = result_items
|
|
data_content = result_items
|
|
logger.info(f"查询词保存数据: {data_content}")
|
|
logger.info(f"查询词保存数据: {data_content}")
|
|
- # resp1 = client.post(url, headers=headers, json=data_content, timeout=30)
|
|
|
|
- # resp1.raise_for_status()
|
|
|
|
- # logger.info(f"查询词保存结果: {resp1.text}")
|
|
|
|
|
|
+ resp1 = client.post(url, headers=headers, json=data_content, timeout=30)
|
|
|
|
+ resp1.raise_for_status()
|
|
|
|
+ logger.info(f"查询词保存结果: {resp1.text}")
|
|
logger.info(f"查询词保存成功: question={question},query数量={len(result_items)}")
|
|
logger.info(f"查询词保存成功: question={question},query数量={len(result_items)}")
|
|
except httpx.HTTPError as e:
|
|
except httpx.HTTPError as e:
|
|
logger.error(f"保存查询词时发生HTTP错误: {str(e)}")
|
|
logger.error(f"保存查询词时发生HTTP错误: {str(e)}")
|