IndexError: list index out of range
problem happened when I try to imput command "run 1",
First it shows "Rate limit reached for default-text-embedding-ada-002 in organization…… on requests per min. Limit: 3 / min. Please try again in 20s. “
Then I type "run 1" again after 1 min it shows" File "C:\Users\generative_agents\reverie\backend_server\persona\cognitive_modules\plan.py", line 567, in _determine_action act_desp, act_dura = persona.scratch.f_daily_schedule[curr_index] IndexError: list index out of range"
你好请问问题解决了嘛,我也遇到了这个问题
还是 openai api 的问题,你需要去充值才能使用,免费的5$不行。
same question
Same question, and I have $10 in my OpenAI so that doesn't seem to be the issue.
same question
我目前解决了这个问题(询问了其他研究者),应该是调用gpt api时出现错误,可能是连不上/被拒绝/被限流等等,导致收不到正常的回复,而代码中没有处理调用异常的情况,导致报错。所以需要使用合适的网络代理或者gpt代理,保证可以正常调用gpt api。 我使用了一个比较稳定的gpt代理:https://api.closeai-asia.com/v1,并购买了他网站的api,成功运行了。 此外还需要修改一下gpt_structure.py,设置openai.api_base: from utils import * openai.api_base = "https://api.closeai-asia.com/v1" openai.api_key = openai_api_key 另外建议使用gpt3.5-turbo代替默认的text-davinci模型,因为text-davinci模型很贵,而且性能不如gpt3.5。同样需要修改gpt_structure.py。具体可以参考:https://github.com/joonspk-research/generative_agents/issues/35 建议模拟从run 1或者run 10开始。 祝大家都能顺利解决问题!