-
Notifications
You must be signed in to change notification settings - Fork 7.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Javascript Error in Reasoner v1 After Update to v3.7.0 #3421
Comments
Got the same problem. |
Looks like it may be related to this change: e2541a2 |
I am not a developer but I asked the AI and it suggested: |
It suggested the following code:
|
duplicate of #3419 EDIT: just 2 issues below it, lol |
In fact, I started my bug report with: "This issue might have the same root as this: #3419". I did more tests and the problem is intermittent, so I just ask the model to do not use Javascript. |
This issue might have the same root as this: #3419
Bug Report
After updating to version 3.7.0, I have noticed an issue with the Reasoner v1 when it attempts to use Javascript during its reasoning process. The model consistently returns an error whenever Javascript is involved. This issue did not occur in the previous release.
Additionally, in some cases, the Javascript reasoning process is triggered even after the model has already provided its final answer, which seems unintended.
Steps to Reproduce
User: "Write code to check if a number is prime, use that to see if the number 7 is prime."
Assistant:
Certainly! Let's compute the answer to whether the number 7 is prime.
isPrime(n)
that checks if a number ( n ) is prime.The number 7 is prime: true
Uncaught exception at line 5: Error: console.log string formatting not supported
for (let i = 2; i <= Math.sqrt(n); i++) {```It looks like there was an error in the code. The
console.log
function does not support string formatting directly within it. Let's correct that and re-run the code.Here is the corrected version:
Uncaught exception at line 5: Error: console.log string formatting not supported
for (let i = 2; i <= Math.sqrt(n); i++) {```It seems there is a persistent issue with the
console.log
function not supporting string formatting directly. Let's try another approach by using template literals, which are supported in modern JavaScript environments.Here is the corrected version:
Uncaught exception at line 5: Error: console.log string formatting not supported
for (let i = 2; i <= Math.sqrt(n); i++) {```
Expected Behavior
I would hopefully expect that the Javascript processing works as it seemed to be happening before the last update. I don't know if the problem is in the code or in the model itself, but there is a difference of behavior compared to the previous version of the program.
Your Environment
The text was updated successfully, but these errors were encountered: