Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

google.api_core.exceptions.InvalidArgument: 400 Unable to submit request because it must have a text parameter. #362

Closed
cr7Por opened this issue Dec 18, 2024 · 2 comments

Comments

@cr7Por
Copy link

cr7Por commented Dec 18, 2024

Description of the bug:

i am running Analyze_a_Video_Classification, get no text parameter error.

i ask aistudio, he suggest me to change the line response = model.generate_content([video_file]) to
response = model.generate_content(["Here is a video I want you to name: ", video_file])

then it can work

Actual vs expected behavior:

No response

Any other information you'd like to share?

No response

@Giom-V
Copy link
Collaborator

Giom-V commented Dec 18, 2024

Thanks for the report. It is indeed missing a prompt. I'll add it.

@Giom-V
Copy link
Collaborator

Giom-V commented Dec 18, 2024

Fixed in PR: #364

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants