Google has released the google-genai library version 1.0 (now updated to 1.2). This is a central library for using Google’s Generative AI. Previously, Google’s LLM application had two separate sides. The Google AI Studio and Google Cloud Vertex AI services were distinct, although they used similar models, the user authentication and API processes were different. The AI Studio uses API keys similar to OpenAI, while Vertex AI uses JSON like other APIs. The google-genai library now allows for unified development of applications with shared code, supporting tasks such as schema validation, tool invocation, data streaming, and even fine-tuning. App developers can continue to use the old library, but future support is likely to shift towards google-genai overall, despite some initial platform-specific feature gaps such as large file uploads. Google’s restless API problem has long been a point of criticism, with AI Studio initially patching with OpenAI libraries, but now aiming to build out its own library features more comprehensively.
TLDR: Google has launched google-genai, a unified library for Generative AI, consolidating previous fragmented services and paving the way for future development and support improvements.
Leave a Comment