UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

53 lines (52 loc) 1.33 kB
//#region extensions/google/provider-contract-api.ts const noopAuth = async () => ({ profiles: [] }); function createGoogleProvider() { return { id: "google", label: "Google AI Studio", docsPath: "/providers/models", hookAliases: ["google-antigravity", "google-vertex"], envVars: ["GEMINI_API_KEY", "GOOGLE_API_KEY"], auth: [{ id: "api-key", kind: "api_key", label: "Google AI Studio API key", hint: "Supported API-key access from aistudio.google.com/apikey", run: noopAuth, wizard: { choiceId: "gemini-api-key", choiceLabel: "Google AI Studio API key", groupId: "google", groupLabel: "Google", groupHint: "Supported API-key setup" } }] }; } function createGoogleVertexProvider() { return { id: "google-vertex", label: "Google Vertex AI", docsPath: "/providers/models", envVars: [ "GOOGLE_CLOUD_API_KEY", "GOOGLE_CLOUD_PROJECT", "GCLOUD_PROJECT", "GOOGLE_CLOUD_LOCATION", "GOOGLE_APPLICATION_CREDENTIALS" ], auth: [] }; } function createGoogleGeminiCliProvider() { return { id: "google-gemini-cli", label: "Gemini CLI runtime", docsPath: "/providers/models", aliases: ["gemini-cli"], envVars: [], auth: [] }; } //#endregion export { createGoogleProvider as n, createGoogleVertexProvider as r, createGoogleGeminiCliProvider as t };