Ruu3f / freeGPT

freeGPT provides free access to text and image generation models.
GNU General Public License v3.0
457 stars 55 forks source link

Fixed incorrectly decoded unicode characters #20

Closed rgryta closed 1 year ago

rgryta commented 1 year ago

Quick test scenario:

from freeGPT import Client

prompt = "Skomponuj mi dietę na najbliższy tydzień. Koniecznie odpisz po Polsku!"
resp = Client.create_completion("gpt4", prompt)

Before, the response message would contain unescaped unicode chars, like "\u0144". Now it's properly translated to "ń".

Similarly gpt3 and falcon (although the issue there is that requests decodes using latin1 instead of utf). Couldn't test alpaca - it always responds in English to me.

Ruu3f commented 1 year ago

This issue was fixed yesterday.