gemini
.text("Write a story about a magic backpack.")
.then((value) => print(value?.output))
/// or value?.content?.parts?.last.text
.catchError((e) => print(e));
`
and the response is
**GeminiException** => This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code.
So I tried other code examples, and none of them work. Then I tried demo app, and TADAAA, it doesn't work either.
I guess there is something wrong :D
Edit: it seems to be related to my local region (Italy).
I tried to cut and paste example code
` final gemini = Gemini.instance;
`
and the response is
**GeminiException** => This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code.
So I tried other code examples, and none of them work. Then I tried demo app, and TADAAA, it doesn't work either. I guess there is something wrong :D
Edit: it seems to be related to my local region (Italy).