Skip to content

Commit

Permalink
[Vertex AI] Remove format for floating-point Schema types
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheard committed Nov 5, 2024
1 parent f7689cf commit 2419ec3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions FirebaseVertexAI/Sources/Types/Public/Schema.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand All @@ -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
)
Expand Down

0 comments on commit 2419ec3

Please sign in to comment.