You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
text=f"{self.computer.interpreter.messages}\n\nThe program above has been running for over 15 seconds. It might require user input. Are there keystrokes that the user should type in, to proceed after the last command?"
159
+
iftime.time() -self.last_output_time>500:
160
+
text+=f" If you think the process is frozen, or that the user wasn't expect it to run for this long (it has been {time.time() -self.last_output_time} seconds since last output) then say <input>CTRL-C</input>."
161
+
162
+
messages= [
163
+
{
164
+
"role": "system",
165
+
"type": "message",
166
+
"content": "You are an expert programming assistant. You will help the user determine if they should enter input into the terminal, per the user's requests. If you think the user would want you to type something into stdin, enclose it in <input></input> XML tags, like <input>y</input> to type 'y'.",
0 commit comments