Skip to content

Commit 6202ea2

Browse files
committed
Fix rebase issues
1 parent ff59d95 commit 6202ea2

File tree

4 files changed

+2
-23
lines changed

4 files changed

+2
-23
lines changed

FirebaseVertexAI/Sources/GenerativeAIService.swift

-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ struct GenerativeAIService {
199199
// }
200200

201201
let encoder = JSONEncoder()
202-
encoder.userInfo[CodingUserInfoKey(rawValue: "BackendAPI")!] = firebaseInfo.backendAPI
203202
urlRequest.httpBody = try encoder.encode(request)
204203
urlRequest.timeoutInterval = request.options.timeout
205204

FirebaseVertexAI/Sources/Types/Internal/BackendAPI.swift

-18
This file was deleted.

FirebaseVertexAI/Tests/Unit/ChatTests.swift

+1-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ final class ChatTests: XCTestCase {
6363
projectID: "my-project-id",
6464
apiKey: "API_KEY",
6565
googleAppID: "My app ID",
66-
firebaseApp: app,
67-
backendAPI: .vertexAI
66+
firebaseApp: app
6867
),
6968
apiConfig: APIConfig(service: .vertexAI, version: .v1beta),
7069
tools: nil,

FirebaseVertexAI/Tests/Unit/GenerativeModelTests.swift

+1-2
Original file line numberDiff line numberDiff line change
@@ -1479,8 +1479,7 @@ final class GenerativeModelTests: XCTestCase {
14791479
projectID: "my-project-id",
14801480
apiKey: "API_KEY",
14811481
googleAppID: "My app ID",
1482-
firebaseApp: app,
1483-
backendAPI: .vertexAI
1482+
firebaseApp: app
14841483
)
14851484
}
14861485

0 commit comments

Comments
 (0)