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'm trying to build the app locally but getting an error.
what I tried
checkout the code
have .env file ready for API keys
installed all dependencies
run the cmd uvicorn main:app --reload
go to http://localhost:8000/ and typed my question
Then I'm getting this error: UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f4b0' in position 0: character maps to <undefined>
Looks like a lot of code base is using emoji strings and parsed to stream_output() in gpt-research/gpt_research/master/function.py which is causing my error here. Surprising I don't see anyone else having this issue.
For example ``gpt-research/gpt_research/master/agent.py` line 169:
await stream_output("logs", f"\n🔎 Running research for '{sub_query}'...", self.websocket)
What I did to solve this issue
search all the place using stream_output() and remove all the emoji characters, but still getting the same issue.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm trying to build the app locally but getting an error.
what I tried
uvicorn main:app --reload
http://localhost:8000/
and typed my questionThen I'm getting this error:
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f4b0' in position 0: character maps to <undefined>
Looks like a lot of code base is using emoji strings and parsed to
stream_output()
ingpt-research/gpt_research/master/function.py
which is causing my error here. Surprising I don't see anyone else having this issue.For example ``gpt-research/gpt_research/master/agent.py` line 169:
await stream_output("logs", f"\n🔎 Running research for '{sub_query}'...", self.websocket)
What I did to solve this issue
stream_output()
and remove all the emoji characters, but still getting the same issue.Can anyone please help to take a look? Thanks
Beta Was this translation helpful? Give feedback.
All reactions