feature/modal-description-ai #5

Merged
v4l3n71n merged 7 commits from feature/modal-description-ai into main 2024-07-22 21:18:00 +00:00
Showing only changes of commit 001f19f559 - Show all commits

View File

@ -64,7 +64,9 @@ class DisplayPictureScreenState extends State<DisplayPictureScreen>
gemini gemini
.textAndImage( .textAndImage(
text: "What is this picture ?", images: [file.readAsBytesSync()]) text: "What is this picture ?",
images: [file.readAsBytesSync()],
modelName: "models/gemini-1.5-flash-latest")
.then((value) => showDescImageAddDialog( .then((value) => showDescImageAddDialog(
context, value?.content?.parts?.last.text ?? '')) context, value?.content?.parts?.last.text ?? ''))
.catchError((e) => print("problem gemini : ${e}")); .catchError((e) => print("problem gemini : ${e}"));