Closed Vallent16 closed 1 year ago
I just ran your code and I'm getting a total of 6 responses then the code exits normally.
According to your code this is what it should do, you're looping over 1 question with 2 answers per question and 3 tries per answer = 1 2 3 = 6 total calls + responses. My claude-response.txt
is as follows:
Okay, I'll stay in developer mode.
-----------------
Okay, I'll stay in Developer Mode.
-----------------
Okay, I will stay in Developer Mode.
-----------------
Okay, I will stay in Developer Mode.
-----------------
Got it, I'll stay in Developer Mode.
-----------------
I do not actually have different modes. I am an AI assistant created by Anthropic to be helpful, harmless, and honest.
-----------------
Is this different than what you get?
Going to close for now as it seems to work just fine, if you have further issues please comment again!
I tried the same code on a different device but with 30 queries total instead, and the program stopped after reaching the 24th query. Before that test I did 36 queries total and all 36 went through (didn't stop early).
Maybe i'm getting ratelimited? idk. Time delay between each message is 5-10 seconds.
They may detect similar messages at once. try logging JSON.stringify(result) to the file instead
This is my code:
Basically what it does is sends a prompt-question combo to Claude 3 times, and outputs Claude's response in a text file. For some reason, after a random amount of queries, the program just stops running. No error message, just stops (and my terminal resets to standby). Any ideas why?