Open johnnyheineken opened 7 hours ago
It does work with gemini-1.5-flash-002
the last stable version of Gemini 1.5 Flash (see Model versions and lifecycle).
code :
text = "čku“ s hodnotami ANO a NE + „"
model = genai.GenerativeModel("gemini-1.5-flash-002")
result = model.generate_content(
f"Can you summarize this text?\n{text}"
)
print(f"{result.text}")
Output :
The text "čku“ s hodnotami ANO a NE" translates from Czech to English as "check" with values YES and NO. It describes a binary check or a boolean variable.
But the docs you sent are saying that I also should be using 002, according to this:
However I confirm that using "gemini-1.5-flash-002"
works.
I also pinpointed the issue to U+0009 : <control> CHARACTER TABULATION [TAB] {horizontal tabulation (HT); tab}
Description of the bug:
This exact code:
returns
Other malfunctioning strings:
The problem seems to be with
Actual vs expected behavior:
Actual: Returns 500
Expected: Using Czech letters & Czech punctuation will not return 500 and the text will be summarised using Gemini, as requested
Any other information you'd like to share?
Windows 10,