From 2419ec396a15fa753ebf9d63abbfc888ae78ab1f Mon Sep 17 00:00:00 2001 From: Andrew Heard Date: Tue, 29 Oct 2024 12:23:43 -0400 Subject: [PATCH] [Vertex AI] Remove `format` for floating-point `Schema` types --- FirebaseVertexAI/Sources/Types/Public/Schema.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/FirebaseVertexAI/Sources/Types/Public/Schema.swift b/FirebaseVertexAI/Sources/Types/Public/Schema.swift index 93cf4f55127..68a842a269a 100644 --- a/FirebaseVertexAI/Sources/Types/Public/Schema.swift +++ b/FirebaseVertexAI/Sources/Types/Public/Schema.swift @@ -178,7 +178,8 @@ public class Schema { public static func float(description: String? = nil, nullable: Bool = false) -> Schema { return self.init( type: .number, - format: "float", + // TODO(andrewheard): Revert this change when the backend accepts "float" as a format again. + // format: "float", description: description, nullable: nullable ) @@ -202,7 +203,8 @@ public class Schema { public static func double(description: String? = nil, nullable: Bool = false) -> Schema { return self.init( type: .number, - format: "double", + // TODO(andrewheard): Revert this change when the backend accepts "double" as a format again. + // format: "double", description: description, nullable: nullable )