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
I upload a python file at web gui, and I ask a question.
the response is:
An error occured: UnicodeDecodeError: 'gbk' codec can't decode byte 0xa4 in position 1041: illegal multibyte sequence
the cmd error log:
Caused by:
operation timed out
ERROR:g4f.gui.server.api:'gbk' codec can't decode byte 0xa4 in position 1041: illegal multibyte sequence
Traceback (most recent call last):
File "e:\develop\github\ai\gpt4free\g4f\gui\server\api.py", line 167, in _create_response_stream
forchunk in result:
File "e:\develop\github\ai\gpt4free\g4f\tools\run_tools.py", line 190, in iter_run_tools
new_message_content = re.sub(r'{"bucket_id":"([^"]*)"}', on_bucket, message["content"])
File "E:\Anaconda\envs\ai\lib\re.py", line 209, in sub
return _compile(pattern, flags).sub(repl, string, count)
File "e:\develop\github\ai\gpt4free\g4f\tools\run_tools.py", line 186, in on_bucket
return "".join(read_bucket(get_bucket_dir(match.group(1))))
File "e:\develop\github\ai\gpt4free\g4f\tools\files.py", line 257, in read_bucket
yield cache_file.read_text()
File "E:\Anaconda\envs\ai\lib\pathlib.py", line 1135, in read_text
then I re-write the File "e:\develop\github\ai\gpt4free\g4f\tools\files.py", line 257, in read_bucket
I upload a python file at web gui, and I ask a question.
the response is:
the cmd error log:
then I re-write the
File "e:\develop\github\ai\gpt4free\g4f\tools\files.py", line 257, in read_bucket
then I slove the problem.
ps: I tried adding
#-*- coding: utf-8 -*-
at the beginning of the py file, but it didn't work.The text was updated successfully, but these errors were encountered: