-
Notifications
You must be signed in to change notification settings - Fork 466
Description
Description of the bug:
sometime's the gemini-pro resoponse is not readable, for example:
ofscrollingscrolling,makingitcompatiblewithvariousdevicesandinputmethods.\nExampleUsage:\n\n//Assuming"dom"isaDOMelementand"card"isanobjectwitha"value"propertyrepresentingthecontainer.\ncheckAndScrollToDiv(dom,card.value);\n
\nInthiscontext,whenyoucallcheckAndScrollToDiv(dom,card.value)
,thefunctionwillcheckifthespecifiedDOMelement(dom
)ispositionedoutofthevisibleareawithinthecontainer(card.value
)and,ifso,scrollsthecontainertobringtheelementopintoviewatthetop.\nConclusion:\nThecheckAndScrollToDiv
functionplaysacrucialroleinimprovinguserexperienceandaccessibilitybyensuringthatelementsarevisiblewithinthecontainer.Itscompatibilitywithvariousdevicesandinputmethodsmakesitavaluabletoolforcreatinguser-friendlyapplications.
this is stream mode, and use: print(repr(resp.text))
there was no space between words, and not readable, even i add a note at the last of my question:
question += 'please return a formatted and human readable answer.'
but sometimes, i asked gemini-pro to return a readable string again, it works, sometimes not word.
Actual vs expected behavior:
actual: ihaveaquesiton
expected response; i have a qeustion
Any other information you'd like to share?
python 3.9
google-ai-generativelanguage 0.4.0
google-api-core 2.15.0
google-auth 2.25.2
google-generativeai 0.3.2
googleapis-common-protos 1.62.0