Skip to content

Auto Agents Chat error #58

Description

@smalldog9

Auto Agents Chat follow message below :

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new
LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True'.

2025-07-05 14:36:51,351 | ERROR | ws_service:handle_message:62 - Traceback (most recent call last):
File "/app/autoagents/ws_service.py", line 55, in handle_message
await startup.startup(idea=idea, task_id=task_id, llm_api_key=llm_api_key, serpapi_key=serpapi_key, proxy=proxy, alg_msg_queue=alg_msg_queue)
File "/app/autoagents/startup.py", line 14, in startup
await explorer.run(n_round=n_round)
File "/app/autoagents/autoagents/explorer.py", line 57, in run
await self.environment.run()
File "/app/autoagents/autoagents/environment.py", line 192, in run
await asyncio.gather(*futures)
File "/app/autoagents/autoagents/roles/role.py", line 239, in run
rsp = await self._react()
File "/app/autoagents/autoagents/roles/role.py", line 207, in _react
await self._think()
File "/app/autoagents/autoagents/roles/role.py", line 155, in _think
next_state = await self._llm.aask(prompt)
File "/app/autoagents/autoagents/system/provider/base_gpt_api.py", line 42, in aask
rsp = await self.acompletion_text(message, stream=True)
File "/app/autoagents/autoagents/system/provider/openai_api.py", line 33, in wrapper
return await f(*args, **kwargs)
File "/app/autoagents/autoagents/system/provider/openai_api.py", line 230, in acompletion_text
return await self._achat_completion_stream(messages)
File "/app/autoagents/autoagents/system/provider/openai_api.py", line 164, in _achat_completion_stream
response = await litellm.acompletion(
File "/home/user/.local/lib/python3.10/site-packages/litellm/main.py", line 103, in acompletion
response = await loop.run_in_executor(None, func_with_context)
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/user/.local/lib/python3.10/site-packages/litellm/utils.py", line 775, in wrapper
raise e
File "/home/user/.local/lib/python3.10/site-packages/litellm/utils.py", line 734, in wrapper
result = original_function(*args, **kwargs)
File "/home/user/.local/lib/python3.10/site-packages/litellm/timeout.py", line 53, in wrapper
result = future.result(timeout=local_timeout_duration)
File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 458, in result
return self.__get_result()
File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/home/user/.local/lib/python3.10/site-packages/litellm/timeout.py", line 42, in async_func
return func(*args, **kwargs)
File "/home/user/.local/lib/python3.10/site-packages/litellm/main.py", line 1180, in completion
raise exception_type(
File "/home/user/.local/lib/python3.10/site-packages/litellm/utils.py", line 2942, in exception_type
raise e
File "/home/user/.local/lib/python3.10/site-packages/litellm/utils.py", line 2361, in exception_type
raise original_exception
File "/home/user/.local/lib/python3.10/site-packages/litellm/main.py", line 441, in completion
raise e
File "/home/user/.local/lib/python3.10/site-packages/litellm/main.py", line 423, in completion
response = openai.ChatCompletion.create(
File "/home/user/.local/lib/python3.10/site-packages/openai/api_resources/chat_completion.py", line 25, in create
return super().create(*args, **kwargs)
File "/home/user/.local/lib/python3.10/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 153, in create
response, _, api_key = requestor.request(
File "/home/user/.local/lib/python3.10/site-packages/openai/api_requestor.py", line 226, in request
resp, got_stream = self._interpret_response(result, stream)
File "/home/user/.local/lib/python3.10/site-packages/openai/api_requestor.py", line 619, in _interpret_response
self._interpret_response_line(
File "/home/user/.local/lib/python3.10/site-packages/openai/api_requestor.py", line 682, in _interpret_response_line
raise self.handle_error_response(
openai.error.InvalidRequestError: The model gpt-4 does not exist or you do not have access to it.

=====Sending msg=====
{"action": "run_task", "data": null, "msg": "The model gpt-4 does not exist or you do not have access to it."}
=====Sending msg=====
{"action": "interrupt", "data": {"task_id": "24957bec-b974-49df-828a-64486eddab74"}, "msg": "ok"}
=====Sending msg=====
{"action": "run_task", "data": {"task_id": "24957bec-b974-49df-828a-64486eddab74"}, "msg": "finished"}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions