-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: 'async for' requires an object with __aiter__ method, got generator #29
Comments
We have just made some updates to the |
ok so i did git pull and it grabbed the new requirements.txt and when I run the command now I get the following error...
|
Currently, our preferred choice is GPT-4, and we are in the process of adjusting to other models. |
if you can please add support for the following models: gpt-3.5-turbo |
Looks like this pip package is for Intel only; and I'm on M2 Apple Silicon. |
After recreating my conda env, removing
Is this related to new commit that drops I set I tried using |
Okay, we will first adapt to GPT-3.5 |
As GPT-3.5 is unstable, we only offer GPT-4 support at the moment. We are in the process of adapting our system to other models. You can try using a GPT-4 key. |
not able to run autoagents, fresh install.
python main.py --mode commandline --llm_api_key sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxx --idea "Is LK-99 really a room temperature superconducting material?"
2023-10-15 13:37:44.757 | INFO | autoagents.system.config:init:43 - Config loading done.
SerpAPI key:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2023-10-15 13:37:51.314 | INFO | autoagents.explorer:invest:33 - Investment: $10.0.
Traceback (most recent call last):
File "/home/aitoofaan/llms/autoagents/AutoAgents/main.py", line 56, in
asyncio.run(commanline(proxy=proxy, llm_api_key=args.llm_api_key, serpapi_key=args.serpapi_key, idea=args.idea))
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/home/aitoofaan/llms/autoagents/AutoAgents/main.py", line 30, in commanline
await startup.startup(idea, investment, n_round, llm_api_key=llm_api_key, serpapi_key=serpapi_key, proxy=proxy)
File "/home/aitoofaan/llms/autoagents/AutoAgents/startup.py", line 14, in startup
await explorer.run(n_round=n_round)
File "/home/aitoofaan/llms/autoagents/AutoAgents/autoagents/explorer.py", line 57, in run
await self.environment.run()
File "/home/aitoofaan/llms/autoagents/AutoAgents/autoagents/environment.py", line 192, in run
await asyncio.gather(*futures)
File "/home/aitoofaan/llms/autoagents/AutoAgents/autoagents/roles/role.py", line 239, in run
rsp = await self._react()
File "/home/aitoofaan/llms/autoagents/AutoAgents/autoagents/roles/role.py", line 207, in _react
await self._think()
File "/home/aitoofaan/llms/autoagents/AutoAgents/autoagents/roles/role.py", line 155, in _think
next_state = await self._llm.aask(prompt)
File "/home/aitoofaan/llms/autoagents/AutoAgents/autoagents/system/provider/base_gpt_api.py", line 42, in aask
rsp = await self.acompletion_text(message, stream=True)
File "/home/aitoofaan/llms/autoagents/AutoAgents/autoagents/system/provider/openai_api.py", line 33, in wrapper
return await f(*args, **kwargs)
File "/home/aitoofaan/llms/autoagents/AutoAgents/autoagents/system/provider/openai_api.py", line 230, in acompletion_text
return await self._achat_completion_stream(messages)
File "/home/aitoofaan/llms/autoagents/AutoAgents/autoagents/system/provider/openai_api.py", line 173, in _achat_completion_stream
async for chunk in response:
TypeError: 'async for' requires an object with aiter method, got generator
The text was updated successfully, but these errors were encountered: