-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Looks like the console and the interpreter cannot accommodate some of the characters generated by the language model.
==============================================
Example1: if I ask the assistant a Chinese question, it will return useful code but the console cannot display the response correctly.

==============================================
Example 2: if I ask "User: please plot a sine wave and cosine wave superimposed on each other. "
the code it generated contains special character "pi", such as
# Create x values from 0 to 2π
And the interpreter will spit out an error:
SyntaxError: Non-UTF-8 code starting with '\xa6' in file C:\Users\wood_\PycharmProjects\CodeAIde\generated_code\generated_script_1.0.py on line 4, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
Looks like the character π is the source of the issue.