Skip to content

Commit 6b000df

Browse files
authored
Minor prompt parsing changes
1 parent 869fc66 commit 6b000df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nuggt-wizcoder/nuggt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def initialise_agent(nuggt, value_dict, tools):
188188
regex = r"Action\s*\d*\s*:(.*?)\nAction\s*\d*\s*Input\s*\d*\s*:[\s]*(.*)"
189189
match = re.search(regex, output, re.DOTALL)
190190

191-
if "Final Step:" in output and not match:
191+
if "Final Answer:" in output and not match:
192192
return output.split("Final Answer:")[1]
193193

194194

0 commit comments

Comments
 (0)