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

Handle attachments that are sent without a prompt #20

Closed
simonw opened this issue Nov 6, 2024 · 2 comments
Closed

Handle attachments that are sent without a prompt #20

simonw opened this issue Nov 6, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@simonw
Copy link
Owner

simonw commented Nov 6, 2024

llm-gemini breaks on this:

llm -m gemini-1.5-flash-latest -a joke-about-pelicans-and-walruses.png

Error: * GenerateContentRequest.contents[0].parts[0].data: required oneof field 'data' must have one initialized field

Originally posted by @simonw in simonw/llm#611 (comment)

@simonw simonw changed the title llm-gemini breaks on this: Handle attachments that are sent without a prompt Nov 6, 2024
@simonw
Copy link
Owner Author

simonw commented Nov 6, 2024

Interesting - Gemini transcribes the text from an image without following the instructions:

llm -m gemini-1.5-flash-latest -a joke-about-pelicans-and-walruses.png

Joke about pelicans and walruses living together.

But it follows instructions in an audio file:

llm -m gemini-1.5-flash-latest -a https://static.simonwillison.net/static/2024/pelican-joke-request.mp3

Why did the pelican cross the road?

To get to the other tide!

@simonw simonw added the enhancement New feature or request label Nov 6, 2024
@simonw simonw closed this as completed Nov 6, 2024
@simonw
Copy link
Owner Author

simonw commented Nov 6, 2024

Can't release this until I release the underlying LLM update, since without that it's not possible to send an attachment without a prompt - at least using the CLI.

simonw added a commit that referenced this issue Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant