feat: add Google Vertex AI provider support#29
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
| @@ -36,7 +36,7 @@ type MetaConfig interface { | |||
| // GetSecretAccessKey returns the secret access key for authentication | |||
| GetSecretAccessKey() *string | |||
There was a problem hiding this comment.
do you think now converting API key should be an interface{}/Generic based struct and it returns based on which provider its calling? cc @danpiths
There was a problem hiding this comment.
So we don't have to keep on adding new methods to this interface and bloat it
There was a problem hiding this comment.
i'm sorry i didn't get the should be an interface{}/Generic based struct
There was a problem hiding this comment.
The problem here is - every extra field we add to the config, we have to add a new method like GetSecretAccessKey, GetServiceAccountAccessKey.
Better we keep overall MetaConfig as map[string]interface{} and parse it to specific type in corresponding providers
3693c51 to
59cc5d1
Compare
59cc5d1 to
2dc0a0d
Compare
Merge activity
|
# Add Google Vertex AI Provider Support This PR adds support for Google Vertex AI as a new provider in Bifrost, allowing users to access Google's AI models like Gemini and third-party models hosted on Vertex AI. Key changes: - Implemented a new `VertexProvider` that supports chat completion with Google's models - Added authentication via Google Cloud credentials - Created region-specific model routing for Vertex AI endpoints - Refactored provider code to extract common request preparation logic - Added support for both OpenAI-style and Anthropic-style models on Vertex - Enhanced error handling and debugging for all providers The implementation uses Google's OAuth2 authentication and doesn't require API keys like other providers, instead using service account credentials. The PR also updates the gitignore to exclude credential files for security.

Add Google Vertex AI Provider Support
This PR adds support for Google Vertex AI as a new provider in Bifrost, allowing users to access Google's AI models like Gemini and third-party models hosted on Vertex AI.
Key changes:
VertexProviderthat supports chat completion with Google's modelsThe implementation uses Google's OAuth2 authentication and doesn't require API keys like other providers, instead using service account credentials. The PR also updates the gitignore to exclude credential files for security.