Skip to content

[Vertex AI] Temporarily disable proxied Dev API integration tests #14722

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 15, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,10 @@ struct CountTokensIntegrationTests {
#expect(promptTokensDetails.tokenCount == response.totalTokens)
}

@Test(arguments: [
InstanceConfig.vertexV1,
InstanceConfig.vertexV1Staging,
InstanceConfig.vertexV1Beta,
InstanceConfig.vertexV1BetaStaging,
@Test(
/* System instructions are not supported on the v1 Developer API. */
InstanceConfig.developerV1Beta,
])
arguments: InstanceConfig.allConfigsExceptDeveloperV1
)
func countTokens_text_systemInstruction(_ config: InstanceConfig) async throws {
let model = VertexAI.componentInstance(config).generativeModel(
modelName: ModelNames.gemini2Flash,
Expand Down Expand Up @@ -122,14 +118,10 @@ struct CountTokensIntegrationTests {
)
}

@Test(arguments: [
InstanceConfig.vertexV1,
InstanceConfig.vertexV1Staging,
InstanceConfig.vertexV1Beta,
InstanceConfig.vertexV1BetaStaging,
@Test(
/* System instructions are not supported on the v1 Developer API. */
InstanceConfig.developerV1Beta,
])
arguments: InstanceConfig.allConfigsExceptDeveloperV1
)
func countTokens_jsonSchema(_ config: InstanceConfig) async throws {
let model = VertexAI.componentInstance(config).generativeModel(
modelName: ModelNames.gemini2Flash,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,8 @@ struct GenerateContentIntegrationTests {

@Test(
"Generate an enum and provide a system instruction",
arguments: [
InstanceConfig.vertexV1,
InstanceConfig.vertexV1Staging,
InstanceConfig.vertexV1Beta,
InstanceConfig.vertexV1BetaStaging,
/* System instructions are not supported on the v1 Developer API. */
InstanceConfig.developerV1Beta,
]
/* System instructions are not supported on the v1 Developer API. */
arguments: InstanceConfig.allConfigsExceptDeveloperV1
)
func generateContentEnum(_ config: InstanceConfig) async throws {
let model = VertexAI.componentInstance(config).generativeModel(
Expand Down Expand Up @@ -122,7 +116,8 @@ struct GenerateContentIntegrationTests {

@Test(arguments: [
InstanceConfig.vertexV1Beta,
InstanceConfig.developerV1Beta,
// Temporarily disabled due to Firebase Proxy issues.
// InstanceConfig.developerV1Beta,
])
func generateImage(_ config: InstanceConfig) async throws {
let generationConfig = GenerationConfig(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ struct InstanceConfig {
static let developerV1Beta = InstanceConfig(
apiConfig: APIConfig(service: .developer(endpoint: .firebaseVertexAIProd), version: .v1beta)
)
static let developerV1BetaStaging = InstanceConfig(
apiConfig: APIConfig(service: .developer(endpoint: .firebaseVertexAIStaging), version: .v1beta)
)
static let developerV1Spark = InstanceConfig(
appName: FirebaseAppNames.spark,
apiConfig: APIConfig(service: .developer(endpoint: .generativeLanguage), version: .v1)
Expand All @@ -48,7 +51,9 @@ struct InstanceConfig {
vertexV1Staging,
vertexV1Beta,
vertexV1BetaStaging,
developerV1Beta,
// Temporarily disabled due to Firebase Proxy issues:
// developerV1Beta,
// developerV1BetaStaging,
developerV1Spark,
developerV1BetaSpark,
]
Expand All @@ -58,6 +63,9 @@ struct InstanceConfig {
vertexV1Staging,
vertexV1Beta,
vertexV1BetaStaging,
// Temporarily disabled due to Firebase Proxy issues:
// developerV1Beta,
// developerV1BetaStaging,
developerV1BetaSpark,
]

Expand Down
Loading