File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -400,7 +400,7 @@ def openai_create_completion(
400
400
message = message ["answer" ]
401
401
except (JSONDecodeError , KeyError ):
402
402
raise errors .InternalServerError ("Got invalid JSON from API" )
403
- return message
403
+ return message . encode ( "utf-8" ). decode () # get rid of unicode codes like \u00ea
404
404
405
405
def render_text (self , text : str ) -> t .Any :
406
406
"""
Original file line number Diff line number Diff line change 2
2
# For pre-releases, postfix with ".betaN" or ".rcN" where `N` is an incremented number for each pre-release.
3
3
# This will mark it as a pre-release as well on PyPI.
4
4
5
- __version__ = "0.0.0.dev5 "
5
+ __version__ = "0.0.0.dev6 "
6
6
7
7
assert __version__ .count ("." ) >= 2 and "" .join (__version__ .split ("." , 3 )[:3 ]).isdigit (), \
8
8
"Semantic __version__ expected!"
You can’t perform that action at this time.
0 commit comments