Open niklasfink opened 4 weeks ago
Thanks for reporting this @niklasfink.
Which LLM is that?
It looks like the LLM was giving inorrect (invalid JSON) response. Pythagora retried twice, but failed parsing the JSON all three times (if you look at the output you pasted, none of the tree is valid JSON, which leads me to believe it's some local model that has trouble specifying the correct JSON), and just return None.
So I don't think the cause of the error is in Pythagora, but I'd still like to keep this bug open as we should handle that edge case in a more graceful way.
Hi @senko, it’s GPT-4o on Azure OpenAI. From my perspective it’s important to handle these cases, as otherwise Pythagora needs to be restarted and all progress since the last task is lost.
Hi @senko, it’s GPT-4o on Azure OpenAI. From my perspective it’s important to handle these cases, as otherwise Pythagora needs to be restarted and all progress since the last task is lost.
Hey, can you tell me how you got it to work with azure open ai api?
[Pythagora] Stopping Pythagora due to error:
File `core/cli/main.py`, line 38, in run_project
success = await orca.run()
File `core/agents/orchestrator.py`, line 66, in run
response = await agent.run()
File `core/agents/external_docs.py`, line 48, in run
selected_docsets = await self._select_docsets(available_docsets)
File `core/agents/external_docs.py`, line 95, in _select_docsets
return {k: available_docsets[k] for k in llm_response.docsets}
File `core/agents/external_docs.py`, line 95, in <dictcomp>
return {k: available_docsets[k] for k in llm_response.docsets}
KeyError: 'express'
using openai api with gpt3-turbo
Version
VisualStudio Code extension
Operating System
MacOS
What happened?
Pythagora abruptly stopped with the following error:
Using Pythagora v0.2.0 / GPT Pilot v0.2.1. There was no error from the LLM API.
Just before that, the Developer Agent was returning (I escaped with \ ):