Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues while making prompts with Cyrillic characters. #8

Open
FanaticExplorer opened this issue Jul 25, 2023 · 3 comments
Open

Issues while making prompts with Cyrillic characters. #8

FanaticExplorer opened this issue Jul 25, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@FanaticExplorer
Copy link

When I send openai:gpt-3.5-turbo a chat request on russian (for example, "Расскажи больше про себя"), i get an error:

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/curl_cffi/curl.py", line 53, in write_callback
    callback(ffi.buffer(ptr, nmemb)[:])
  File "/home/vercel_ai.py", line 123, in callback
    chunks_queue.put(data.decode())
                     ^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 0: unexpected end of data

And when I make a chat on Ukrainian with the same model, it gives only part of the text. For example, "Розкажи більше про себе" returned

Звісно, я з радістю розповім більше про себе! 

... //answers like usual

Щодо моїх функцій, я можу допомогти вам з по

And that's all; it didn't finished his answer.

@ading2210 ading2210 added the bug Something isn't working label Jul 26, 2023
@FanaticExplorer
Copy link
Author

Somehow, while trying to ask on russian, i got whole new error:

Traceback (most recent call last):
  File "/home/vercel_ai.py", line 137, in stream_request
    chunk = chunks_queue.get(block=True, timeout=0.01)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/queue.py", line 179, in get
    raise Empty
_queue.Empty

@FanaticExplorer
Copy link
Author

Any progress?

@0x6a69616e
Copy link

We're stuck on an entirely different issue which renders the library unusable 😅

See issue #22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants