Skip to content

Commit 2419ec3

Browse files
committed
[Vertex AI] Remove format for floating-point Schema types
1 parent f7689cf commit 2419ec3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

FirebaseVertexAI/Sources/Types/Public/Schema.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ public class Schema {
178178
public static func float(description: String? = nil, nullable: Bool = false) -> Schema {
179179
return self.init(
180180
type: .number,
181-
format: "float",
181+
// TODO(andrewheard): Revert this change when the backend accepts "float" as a format again.
182+
// format: "float",
182183
description: description,
183184
nullable: nullable
184185
)
@@ -202,7 +203,8 @@ public class Schema {
202203
public static func double(description: String? = nil, nullable: Bool = false) -> Schema {
203204
return self.init(
204205
type: .number,
205-
format: "double",
206+
// TODO(andrewheard): Revert this change when the backend accepts "double" as a format again.
207+
// format: "double",
206208
description: description,
207209
nullable: nullable
208210
)

0 commit comments

Comments
 (0)