TypeError: argument of type 'Part' is not iterable #274
Labels
component:other
Issues unrelated to examples/quickstarts
status:awaiting response
Awaiting a response from the author
status:stale
Issue/PR is marked for closure due to inactivity
type:help
Support-related issues
Description of the bug:
I am getting a error of "Part" when i try running the code.
Actual vs expected behavior:
import google.generativeai as genai
import os
genai.configure(api_key=os.environ["API_KEY"])
model = genai.GenerativeModel('gemini-1.0-pro-latest')
response = model.generate_content("The opposite of hot is")
print(response.text)
Above is the code I am trying to run. But it's throwing me a error "TypeError: argument of type 'Part' is not iterable"
Any other information you'd like to share?
No response
The text was updated successfully, but these errors were encountered: