You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However when I send this schema to the generative model I get the following error:
{
"error": {
"code": 400,
"message": "Unable to submit request because one or more response schemas specified incorrect schema type field. For schema with format, schema type should be STRING. Learn more: https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/control-generated-output",
"status": "INVALID_ARGUMENT"
}
}
If I change duration to be of type .integer() then I get back a successful response. I've only tested a handful of types but so far .double() and .float() are not working as expected.
Hi @pauze, sorry for the delay in getting back to you. I've been able to reproduce the issue and have let the backend team know about the regression.
In case this is blocking you, I created PR #13990. The branch ah/vertex-float-workaround contains the Firebase 11.4 release you're using and a temporary workaround of removing the "double" or "float" format specifier from Schema.float() and Schema.double(). If using Swift Package Manager, you could temporarily depend on the branch ah/vertex-float-workaround, instead of specifying a version, to try this out.
Thanks for providing code snippets and details about the types you tried. It made it easy to reproduce on my end. And sorry for the trouble, I'll keep this issue open until it's resolved in the backend or if we decide to to merge the workaround for Firebase 11.5.
Description
I'm trying to supply Object schema to VertexAI with some basic properties.
However when I send this schema to the generative model I get the following error:
If I change duration to be of type
.integer()
then I get back a successful response. I've only tested a handful of types but so far.double()
and.float()
are not working as expected.Reproducing the issue
Firebase SDK Version
11.4.0
Xcode Version
16.0
Installation Method
Swift Package Manager
Firebase Product(s)
VertexAI
Targeted Platforms
iOS
Relevant Log Output
If using Swift Package Manager, the project's Package.resolved
Expand
Package.resolved
snippetReplace this line with the contents of your Package.resolved.
If using CocoaPods, the project's Podfile.lock
Expand
Podfile.lock
snippetReplace this line with the contents of your Podfile.lock!
The text was updated successfully, but these errors were encountered: