Skip to content

Commit

Permalink
Remove apiVersion from RequestOptions in Vertex AI (#12707)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheard authored Apr 4, 2024
1 parent 45c3c59 commit 468013c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions FirebaseVertexAI/Sources/GenerativeAIRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,14 @@ public struct RequestOptions {
let timeout: TimeInterval?

/// The API version to use in requests to the backend.
let apiVersion: String
let apiVersion = "v2beta"

/// Initializes a request options object.
///
/// - Parameters:
/// - timeout The request’s timeout interval in seconds; if not specified uses the default value
/// for a `URLRequest`.
/// - apiVersion The API version to use in requests to the backend; defaults to "v2beta".
public init(timeout: TimeInterval? = nil, apiVersion: String = "v2beta") {
public init(timeout: TimeInterval? = nil) {
self.timeout = timeout
self.apiVersion = apiVersion
}
}

0 comments on commit 468013c

Please sign in to comment.