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

Restrict the support type of plain-text documents for Gemini #148

Open
adubovik opened this issue Nov 14, 2024 · 0 comments
Open

Restrict the support type of plain-text documents for Gemini #148

adubovik opened this issue Nov 14, 2024 · 0 comments

Comments

@adubovik
Copy link
Collaborator

#100 has introduced support of the following plain-text files: txt, html, css, js, ts, csv, md, py, json, xml, rtf.

However, it seems like Gemini has restricted this list to only txt: https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/document-understanding#document-requirements.

Screenshot 2024-11-14 at 16 50 56

E.g. gemini-1.5-flash-001 fails with the following error when given .json file:

400 Unable to submit request because it has a mimeType parameter with value application/json, which is not supported. Update the mimeType and try again

  1. We need to verify this statement,
  2. If true, restrict the list of supported types in the adapter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant