Symbols are occasionally lost in responses

Occasionally, when I get the response, some of the symbols in a word are lost.
I first noticed this a few months ago and it keeps repeating.
It happens with cyrillic letters.
I checked how the responses are streamed to see whether it is us who gets it wrong, but I can see that the symbols are already lost in streaming parts.
It looks like this, and you can also see that not just the letters but number 8 has been eaten too:

Screenshot 2023-09-28 at 16.56.15

Is there any way to fix this?

Hi and welcome to the Developer Forum!

Does this happen without streaming turned on? Also how are you implementing streaming?

It looks like character encoding problem in the receiving end. Is this reproducible using any prompts or you have some chat sequence sample that we can test?

We thouroughly investigated with developers again. It seems that the problem was in the old nodeJs version of API that we didn’t update for very long.

We had version 3.2 while the new one was 4+. We will upgrade and see how it goes.