Open johnnyheineken opened 1 month 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}
What was the issue with U+0009 : <control> CHARACTER TABULATION [TAB] {horizontal tabulation (HT); tab}
?
Hi @johnnyheineken . Sometimes we see Internal Server Error (500) because there are too many requests coming, which results in an unexpected error on Google's side. You can refer to this Troubleshooting doc "https://ai.google.dev/gemini-api/docs/troubleshooting?lang=python" I recommend temporarily switching to another model (e.g. from Gemini 1.5 Pro to Gemini 1.5 Flash) and see if it works Or wait a bit and retry your request.
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,