gpt_academic icon indicating copy to clipboard operation
gpt_academic copied to clipboard

[Bug]: 询问多个GPT模型时出现报错

Open Nextstrain9000 opened this issue 1 year ago • 2 comments

Installation Method | 安装方法与平台

Docker-Compose(Linux)

Version | 版本

Latest | 最新版

OS | 操作系统

Docker

Describe the bug | 简述

询问多个GPT模型时出现以下报错

Traceback (most recent call last): File "./crazy_functions/crazy_utils.py", line 84, in _req_gpt result = predict_no_ui_long_connection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "./request_llms/bridge_all.py", line 874, in predict_no_ui_long_connection return_string_collect.append( f"【{str(models[i])} 说】: <font color=\"{colors[i]}\"> {future.result()} </font>" ) ~~~~~~^^^ IndexError: list index out of range

Screen Shot | 有帮助的截图

搜狗截图20240328112910 搜狗截图20240328113116

Terminal Traceback & Material to Help Reproduce Bugs | 终端traceback(如有) + 帮助我们复现的测试材料样本(如有)

我的docker compose文件

docker-compose.zip

Nextstrain9000 avatar Mar 28 '24 03:03 Nextstrain9000

https://github.com/binary-husky/gpt_academic/commit/216d4374e7ce9eb84a6a33c24c8b826b69785478

binary-husky avatar Mar 31 '24 16:03 binary-husky

已经修复,请试试看?

binary-husky avatar Mar 31 '24 16:03 binary-husky

感谢!

Nextstrain9000 avatar Apr 21 '24 08:04 Nextstrain9000