Skip to content

Commit d1240b2

Browse files
committed
Move defaultVertexAIAPIConfig to unit tests; unused in SDK
1 parent 451f45b commit d1240b2

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

FirebaseAI/Sources/FirebaseAI.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,6 @@ public final class FirebaseAI: Sendable {
194194
/// Lock to manage access to the `instances` array to avoid race conditions.
195195
private nonisolated(unsafe) static var instancesLock: os_unfair_lock = .init()
196196

197-
static let defaultVertexAIAPIConfig = APIConfig(
198-
service: .vertexAI(endpoint: .firebaseProxyProd, location: "us-central1"),
199-
version: .v1beta
200-
)
201-
202197
static func createInstance(app: FirebaseApp?,
203198
apiConfig: APIConfig,
204199
useLimitedUseAppCheckTokens: Bool) -> FirebaseAI {
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Copyright 2025 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
@testable import FirebaseAI
16+
17+
extension FirebaseAI {
18+
static let defaultVertexAIAPIConfig = APIConfig(
19+
service: .vertexAI(endpoint: .firebaseProxyProd, location: "us-central1"),
20+
version: .v1beta
21+
)
22+
}

0 commit comments

Comments
 (0)