Open dmelikhov opened 3 months ago
Maybe you could test this approach extracted from a snippet: ... // bucket where image has been uploaded String imageURL = String.format("gs://%s/%s",bucketName, fileName);
// create User Message for AI framework
PromptTemplate userPromptTemplate = new PromptTemplate(imageUserMessage);
Message imageAnalysisUserMessage = userPromptTemplate.createMessage(List.of(new
Media(MimeTypeUtils.parseMimeType("image/*"), imageURL)));
...
Context I can't attach GCS files when using Gemini:
Expected Behavior A constructor with URI parameter would solve the issue: