RuntimeError: OpenAI拒绝了请求
CGUO00 opened this issue · comments
Liu Chen commented
Yuki commented
Liu Chen commented
您好,十分感谢您的解答,但我在config文件中设置的默认访问线程数3,并没有变动,我觉得在使用批量分析整个cpp项目函数插件处理大量的cpp项目文件时,应该并没有触发线程数上限,而是可能达到了单位时间内token字节数量的限制,如果是这种原因该如何避免,同时我也会将访问线程数将为2或1再次尝试,再次感谢您的解答。
…________________________________
From: ***@***.*** ***@***.***> on behalf of Yuki ***@***.***>
Sent: Saturday, April 20, 2024 8:10 PM
To: binary-husky/gpt_academic ***@***.***>
Cc: Liu Chen ***@***.***>; Author ***@***.***>
Subject: Re: [binary-husky/gpt_academic] RuntimeError: OpenAI拒绝了请求 (Issue #1726)
Hi,
请查看
https://github.com/binary-husky/gpt_academic/blob/ae4407135db8a8910755cf6895cf90037b651d34/config.py#L69
―
Reply to this email directly, view it on GitHub<#1726 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUJTMTTJEHV6NHQZ6YFM3MLY6JLLPAVCNFSM6AAAAABGQIPHKSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRXGY2TIMZUGI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
Yuki commented
不好意思 请确认一下您用的是逆向的 copilot吗?Copilot 不支持并发吧?
代码这块在
gpt_academic/crazy_functions/crazy_utils.py
Lines 158 to 173 in 09990d4
gpt_academic/crazy_functions/解析项目源代码.py
Lines 52 to 103 in 09990d4
binary-husky commented
DEFAULT_WORKER_NUM 改成 1 试试,也不需要只看openai的模型