Open
Description
Is there an existing issue for this?
- I have searched the existing issues.
Which plugins are affected?
Other
Which platforms are affected?
No response
Description
Unforunately as of now, to my experience, package is broken on anything more than basic chat response generation . Error is always same. attached below.
firebase_ai 2.1.0
To reproduce try any model with tool call generating json response, around %50 of the tool calls are failing with this error:
[log] AI Error: Error details: Unhandled format for Content: {}
This indicates a problem with the Vertex AI in Firebase SDK. Try updating to the latest version (https://pub.dev/packages/firebase_ai/versions), or file an issue at https://github.com/firebase/flutterfire/issues.
2.5 models are worst , they are generating this response much more frequent than other models
I also tried settings SafetySettings to none as i saw another bug report causing this but no it didnt solve.
Reproducing the issue
To reproduce try any model with tool call generating json response, around %50 of the tool calls are failing with this error:
Firebase Core version
3.14.0
Flutter Version
3.32.0
Relevant Log Output
[log] AI Error: Error details: Unhandled format for Content: {}
This indicates a problem with the Vertex AI in Firebase SDK. Try updating to the latest version (https://pub.dev/packages/firebase_ai/versions), or file an issue at https://github.com/firebase/flutterfire/issues.
Flutter dependencies
Expand Flutter dependencies
snippet
Replace this line with the contents of your `flutter pub deps -- --style=compact`.
Additional context and comments
No response