LLM service implementation using Google’s Vertex AI with OpenAI-compatible interface
GoogleVertexLLMService
provides access to Google’s language models through Vertex AI while maintaining an OpenAI-compatible interface. It inherits from OpenAILLMService
and supports all the features of the OpenAI interface while connecting to Google’s AI services.
GoogleVertexLLMService
, install the required dependencies:
GOOGLE_APPLICATION_CREDENTIALS
environment variable pointing to your service account JSON fileGOOGLE_APPLICATION_CREDENTIALS
to the path of your service account fileModel Name | Description |
---|---|
google/gemini-2.0-flash-001 | Fast, efficient text generation model |
google/gemini-2.0-pro-001 | Comprehensive, high-quality model |
google/gemini-1.5-pro-001 | Versatile multimodal model |
google/gemini-1.5-flash-001 | Fast, efficient multimodal model |