"I made a mistake. Trying again..." loop
CryptoLibertus opened this issue ยท 9 comments
Anyone know how to solve this loop?
Insuffient memories. Now learning...
I made a mistake. Trying again...
I made a mistake. Trying again...
I made a mistake. Trying again...
I made a mistake. Trying again...
I made a mistake. Trying again...
I made a mistake. Trying again...
I made a mistake. Trying again...
Anyone know how to solve this loop?
Insuffient memories. Now learning... I made a mistake. Trying again... I made a mistake. Trying again... I made a mistake. Trying again... I made a mistake. Trying again... I made a mistake. Trying again... I made a mistake. Trying again... I made a mistake. Trying again...
yes i got the same issue ...
Anyone know how to solve this loop?
Insuffient memories. Now learning... I made a mistake. Trying again... I made a mistake. Trying again... I made a mistake. Trying again... I made a mistake. Trying again... I made a mistake. Trying again... I made a mistake. Trying again... I made a mistake. Trying again...
I delete my SERPAPI_API_KEY and is working now.... Not sur wy, but is Working !
@CryptoLibertus I delete my SERPAPI_API_KEY and is working now.... Not sur wy, but is Working !
well its strange but it does work now. I got a bunch of the same but then got an answer. Might be something related to Chroma.
well its strange but it does work now. I got a bunch of the same but then got an answer. Might be something related to Chroma.
it work for me, but is verry slow...
can we add a other api? whiteout adding to much code ?
I also had this issue.
At first it was because of a wrong SerpApi key, and then it was because I wasn't providing a "clear question".
Line 78 in 273dd45
Debug logs are helpful to figure out what is actually causing the loop.
catch (e) {
console.log("Error", e.stack);
console.log("Error", e.name);
console.log("Error", e.message);
console.log(chalk.red("\nI made a mistake. Trying again..."));
return answerFromSearch(brain, input);
}
For example when you don't provide a question, the error is
I made a mistake. Trying again...
Error Error: Unable to parse JSON response from chat agent.
I'm sorry, but the input "gg" is not a clear question or request. Please provide a valid input that I can help you with.
at ChatAgent.extractToolAndInput
And when your key is wrong then the error is
I made a mistake. Trying again...
Error Error: Got error from serpAPI: Invalid API key. Your API key should be here: https://serpapi.com/manage-api-key
at SerpAPI._call
I'd make the bot output the error message and then just allow the user to ask another question instead of this endless "made a mistake" loop
hi
I also had this issue. At first it was because of a wrong SerpApi key, and then it was because I wasn't providing a "clear question".
Line 78 in 273dd45
Debug logs are helpful to figure out what is actually causing the loop.
catch (e) { console.log("Error", e.stack); console.log("Error", e.name); console.log("Error", e.message); console.log(chalk.red("\nI made a mistake. Trying again...")); return answerFromSearch(brain, input); }
For example when you don't provide a question, the error is
I made a mistake. Trying again... Error Error: Unable to parse JSON response from chat agent. I'm sorry, but the input "gg" is not a clear question or request. Please provide a valid input that I can help you with. at ChatAgent.extractToolAndInput
And when your key is wrong then the error is
I made a mistake. Trying again... Error Error: Got error from serpAPI: Invalid API key. Your API key should be here: https://serpapi.com/manage-api-key at SerpAPI._call
I'd make the bot output the error message and then just allow the user to ask another question instead of this endless "made a mistake" loop
hi @r-fumachi , i got my API key from = https://serper.dev/api-key, and is should work.....
did't you fix it ?
your key should be here https://serpapi.com/manage-api-key
your key should be here https://serpapi.com/manage-api-key
yes !! your are a master !! thx