Pythagora-io / gpt-pilot

The first real AI developer
Other
29.06k stars 2.91k forks source link

[Bug]: ValueError: Empty message content #1035

Open fishhead108 opened 1 week ago

fishhead108 commented 1 week ago

Version

VisualStudio Code extension

Operating System

MacOS

What happened?

Pythagora abruptly stopped with the following error:

Stopping Pythagora due to error:

File `core/cli/main.py`, line 37, in run_project
    success = await orca.run()
File `core/agents/orchestrator.py`, line 67, in run
    response = await agent.run()
File `core/agents/troubleshooter.py`, line 41, in run
    user_instructions = await self.get_user_instructions()
File `core/agents/troubleshooter.py`, line 143, in get_user_instructions
    route_files = await self._get_route_files()
File `core/agents/troubleshooter.py`, line 163, in _get_route_files
    self._get_task_convo()
File `core/agents/troubleshooter.py`, line 123, in _get_task_convo
    .assistant(self.current_state.current_task["instructions"])
File `core/llm/convo.py`, line 106, in assistant
    return self.add("assistant", content, name)
File `core/llm/convo.py`, line 61, in add
    raise ValueError("Empty message content")
ValueError: Empty message content

Versions: Pythagora v0.2.6 / GPT Pilot v0.2.5

image