Skip to content

Commit 73c7ee9

Browse files
committed
Remove apiVersion from RequestOptions in Vertex AI (#12707)
1 parent 2d48936 commit 73c7ee9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

FirebaseVertexAI/Sources/GenerativeAIRequest.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,14 @@ public struct RequestOptions {
3131
let timeout: TimeInterval?
3232

3333
/// The API version to use in requests to the backend.
34-
let apiVersion: String
34+
let apiVersion = "v2beta"
3535

3636
/// Initializes a request options object.
3737
///
3838
/// - Parameters:
3939
/// - timeout The request’s timeout interval in seconds; if not specified uses the default value
4040
/// 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") {
41+
public init(timeout: TimeInterval? = nil) {
4342
self.timeout = timeout
44-
self.apiVersion = apiVersion
4543
}
4644
}

0 commit comments

Comments
 (0)