Skip to content

Commit

Permalink
fix set google credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
danijerez committed Jul 22, 2024
1 parent f2f5836 commit 749fb70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Providers/Google.VertexAI/src/VertexAIConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class VertexAIConfiguration
public const string SectionName = "VertexAI";
public string Location { get; set; } = "us-central1";
public string Publisher { get; set; } = "google";
public GoogleCredential? GoogleCredential { get; set; } = GoogleCredential.GetApplicationDefault();
public GoogleCredential? GoogleCredential { get; set; }
public GenerationConfig? GenerationConfig { get; set; }
}
}
1 change: 1 addition & 0 deletions src/Providers/Google.VertexAI/src/VertexAIProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public VertexAIProvider(VertexAIConfiguration configuration) : base(id: VertexAI
Configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
Api = new PredictionServiceClientBuilder
{
GoogleCredential = Configuration.GoogleCredential,
Endpoint = $"{Configuration.Location}-aiplatform.googleapis.com"
}.Build();
}
Expand Down

0 comments on commit 749fb70

Please sign in to comment.