mirror of
https://github.com/TeamWiseFlow/wiseflow.git
synced 2025-01-23 02:20:20 +08:00
eec15ba037
* feat: async tasks for get_more_related_urls
* feat: max LLM concurrent number
* fix(core/agents/get_info.py): 降低默认并发数量
* fix(get_info.py): 在部分模型指定response_format为json的情况下需要在prompt中显式的指明json格式
* fix: text长度不足的情况
* feat: 并发部分移动到openai_wapper
* ♻️ refactor(openai_wrapper.py): 重构异步LLM调用逻辑,优化异常处理和日志记录
- 将响应结果提取到`resp`变量中,避免重复代码
- 简化异常处理逻辑,确保`finally`块中释放信号量
- 优化日志记录位置,确保在返回结果前记录调试信息
* Update openai_wrapper.py
to resolve error raise by 'logger is None'
(This problem existed in the previous version. It was not caused by your code. I just modified it.)
Signed-off-by: bigbrother666 <96130569+bigbrother666sh@users.noreply.github.com>
---------
Signed-off-by: bigbrother666 <96130569+bigbrother666sh@users.noreply.github.com>
Co-authored-by: bigbrother666 <96130569+bigbrother666sh@users.noreply.github.com>
|
||
---|---|---|
.. | ||
agents | ||
custom_fetchings | ||
llms | ||
utils | ||
docker_entrypoint.sh | ||
general_process.py | ||
requirements.txt | ||
run_task.sh | ||
run.sh | ||
tasks.py |