We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
apiVersion
RequestOptions
1 parent 2d48936 commit 73c7ee9Copy full SHA for 73c7ee9
FirebaseVertexAI/Sources/GenerativeAIRequest.swift
@@ -31,16 +31,14 @@ public struct RequestOptions {
31
let timeout: TimeInterval?
32
33
/// The API version to use in requests to the backend.
34
- let apiVersion: String
+ let apiVersion = "v2beta"
35
36
/// Initializes a request options object.
37
///
38
/// - Parameters:
39
/// - timeout The request’s timeout interval in seconds; if not specified uses the default value
40
/// for a `URLRequest`.
41
- /// - apiVersion The API version to use in requests to the backend; defaults to "v2beta".
42
- public init(timeout: TimeInterval? = nil, apiVersion: String = "v2beta") {
+ public init(timeout: TimeInterval? = nil) {
43
self.timeout = timeout
44
- self.apiVersion = apiVersion
45
}
46
0 commit comments