File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed
FirebaseVertexAI/Sources/Types/Public Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -178,22 +178,16 @@ public class Schema {
178178 public static func float( description: String ? = nil , nullable: Bool = false ) -> Schema {
179179 return self . init (
180180 type: . number,
181- // TODO(andrewheard): Revert this change when the backend accepts "float" as a format again.
182- // format: "float",
181+ format: " float " ,
183182 description: description,
184183 nullable: nullable
185184 )
186185 }
187186
188- /// Returns a `Schema` representing a double-precision floating-point number.
187+ /// Returns a `Schema` representing a floating-point number.
189188 ///
190- /// This schema instructs the model to produce data of type `"NUMBER"` with the `format`
191- /// `"double"`, which is suitable for decoding into a Swift `Double` (or `Double?`, if `nullable`
192- /// is set to `true`).
193- ///
194- /// > Important: This `Schema` provides a hint to the model that it should generate a
195- /// > double-precision floating-point number, a `double`, but only guarantees that the value will
196- /// > be a number.
189+ /// This schema instructs the model to produce data of type `"NUMBER"`, which is suitable for
190+ /// decoding into a Swift `Double` (or `Double?`, if `nullable` is set to `true`).
197191 ///
198192 /// - Parameters:
199193 /// - description: An optional description of what the number should contain or represent; may
@@ -203,8 +197,6 @@ public class Schema {
203197 public static func double( description: String ? = nil , nullable: Bool = false ) -> Schema {
204198 return self . init (
205199 type: . number,
206- // TODO(andrewheard): Revert this change when the backend accepts "double" as a format again.
207- // format: "double",
208200 description: description,
209201 nullable: nullable
210202 )
You can’t perform that action at this time.
0 commit comments