Skip to content

**GeminiException** => This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus #51

@AgnelSelvan

Description

@AgnelSelvan

I'm facing this issue when trying to run on Android, but not facing this issue while running on Windows.

Image

Here is the initialization code.

Gemini.init(
    apiKey: token,
    disableAutoUpdateModelName: true,
  );
final geminiResponse = await Gemini.instance.prompt(
        parts: [
          Part.text(_purchasePrompt()),
          Part.bytes(file.readAsBytesSync()),
        ],
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions