Two bugs in your gemini api doc need to be fixed, please: "Inconsistent Documentation and Errors with Text-Only Models and Streamed Responses" #140
Labels
component:other
Issues unrelated to examples/quickstarts
status:awaiting response
Awaiting a response from the author
type:bug
Something isn't working
The overall reference link: Google Gemini API Documentation
Description of the Bug:
Title: Inconsistent Documentation and Errors with Text-Only Models and Streamed Responses
Description:
I encountered several issues while using the Google Gemini API, specifically related to text-only input and streamed responses.
Text-Only Input Issue:
The documentation states that the Gemini API can handle text-only input. However, the example provided uses the 'gemini-pro-vision' model, which requires an image. This causes an error when executed.
Streamed Responses Issue:
The documentation example for streamed responses is incorrect. When executing the provided code, an
AttributeError
is raised.Steps to Reproduce:
For Text-Only Input Issue:
For Streamed Responses Issue:
Expected Behavior:
AttributeError
.Actual Behavior:
Text-Only Input Issue:
When running the text-only example, I received the following error:
Streamed Responses Issue:
When running the streamed response example, I received the following error:
Development Environment:
Please address these documentation errors to ensure the examples work correctly for users.
Thanks,
github user @eawlot3000
The text was updated successfully, but these errors were encountered: