Hello,
I am trying to use Jupter notebook to run ChatCompletion api.
I send in Chinese but got Unicode response. Where am I supposed to set to get the correct response with correct language?
Thanks
Hello,
I am trying to use Jupter notebook to run ChatCompletion api.
I send in Chinese but got Unicode response. Where am I supposed to set to get the correct response with correct language?
Thanks
You can simply use strip() function.
Which in your case, should be res[‘choices’][0][‘message’][‘content’].strip()