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
Copy file name to clipboardExpand all lines: tests/test_interpreter.py
+19-19Lines changed: 19 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -37,9 +37,9 @@ def test_hallucinations():
37
37
assertchunk.get("content") =="22"
38
38
break
39
39
40
-
code="""{
41
-
"language": "python",
42
-
"code": "10+12"
40
+
code="""{
41
+
"language": "python",
42
+
"code": "10+12"
43
43
}"""
44
44
45
45
interpreter.messages= [
@@ -50,9 +50,9 @@ def test_hallucinations():
50
50
assertchunk.get("content") =="22"
51
51
break
52
52
53
-
code="""functions.execute({
54
-
"language": "python",
55
-
"code": "10+12"
53
+
code="""functions.execute({
54
+
"language": "python",
55
+
"code": "10+12"
56
56
})"""
57
57
58
58
interpreter.messages= [
@@ -1198,7 +1198,7 @@ def test_math():
1198
1198
1199
1199
order_of_operations_message=f"""
1200
1200
Please perform the calculation `{n1} + {n2} * ({n1} - {n2}) / ({n2} + {n1})` then reply with just the answer, nothing else. No confirmation. No explanation. No words. Do not use commas. Do not show your work. Just return the result of the calculation. Do not introduce the results with a phrase like \"The result of the calculation is...\" or \"The answer is...\"
0 commit comments