Gemini 1.5 Flash replies with very long line breaks at random times.
Is this strange phenomenon happening only with my API account? If anyone has any countermeasures, please let me know.
In advance, I would like to thank the Gemini API team for their generous usage quota. It is very helpful.
I will post the API response logs for your reference.
[2024-07-28 23:45:04] production.INFO: array (
'candidates' =>
array (
0 =>
array (
'content' =>
array (
'parts' =>
array (
0 =>
array (
'text' => 'ćŖć«ćŖć«ć¼ļ¼
',
),
),
'role' => 'model',
),
'finishReason' => 'STOP',
'index' => 0,
'safetyRatings' =>
array (
0 =>
array (
'category' => 'HARM_CATEGORY_SEXUALLY_EXPLICIT',
'probability' => 'NEGLIGIBLE',
),
1 =>
array (
'category' => 'HARM_CATEGORY_HATE_SPEECH',
'probability' => 'NEGLIGIBLE',
),
2 =>
array (
'category' => 'HARM_CATEGORY_HARASSMENT',
'probability' => 'NEGLIGIBLE',
),
3 =>
array (
'category' => 'HARM_CATEGORY_DANGEROUS_CONTENT',
'probability' => 'NEGLIGIBLE',
),
),
),
),
'usageMetadata' =>
array (
'promptTokenCount' => 355,
'candidatesTokenCount' => 5,
'totalTokenCount' => 360,
),
)