gpt-pilot icon indicating copy to clipboard operation
gpt-pilot copied to clipboard

[Bug]: latin-1' codec can't encode character '\u201c' in position 7: ordinal not in range(256)

Open hunny1389 opened this issue 1 year ago • 2 comments

Version

Command-line (Python) version

Operating System

Windows 11

What happened?

I am getting the error

latin-1' codec can't encode character '\u201c' in position 7: ordinal not in range(256)

my openapi key is not in double quotes. Any resolution ?

hunny1389 avatar Dec 30 '23 20:12 hunny1389

@hunny1389 could you please paste the entire error output (15-20 lines) so we can try to check where the error happened?

senko avatar Dec 31 '23 11:12 senko

There was a problem with request to openai API: 'latin-1' codec can't encode character '\u201c' in position 7: ordinal not in range(256)

? Do you want to try make the same request again? If yes, just press ENTER. Otherwise, type "no". no

---------- GPT PILOT EXITING WITH ERROR ---------- Traceback (most recent call last): File "C:\Pun\My AI experiments\Gpt-pilot\gpt-pilot\pilot\main.py", line 78, in project.start() File "C:\Pun\My AI experiments\Gpt-pilot\gpt-pilot\pilot\helpers\Project.py", line 90, in start self.project_manager.get_project_description() File "C:\Pun\My AI experiments\Gpt-pilot\gpt-pilot\pilot\helpers\agents\ProductOwner.py", line 61, in get_project_description high_level_messages = self.ask_clarifying_questions(self.project.main_prompt) File "C:\Pun\My AI experiments\Gpt-pilot\gpt-pilot\pilot\helpers\agents\ProductOwner.py", line 81, in ask_clarifying_questions return get_additional_info_from_openai(self.project, instructions) File "C:\Pun\My AI experiments\Gpt-pilot\gpt-pilot\pilot\prompts\prompts.py", line 94, in get_additional_info_from_openai if response['text'] and response['text'].strip() == END_RESPONSE: KeyError: 'text'

This is the entire error. Also i am not running with docker

hunny1389 avatar Jan 02 '24 06:01 hunny1389