MCPcopy Create free account
hub / github.com/TanStack/ai / createGeminiClient

Function createGeminiClient

packages/ai-gemini/src/utils/client.ts:12–17  ·  view source on GitHub ↗
(config: GeminiClientConfig)

Source from the content-addressed store, hash-verified

10 * Creates a Google Generative AI client instance
11 */
12export function createGeminiClient(config: GeminiClientConfig): GoogleGenAI {
13 return new GoogleGenAI({
14 ...config,
15 apiKey: config.apiKey,
16 })
17}
18
19/**
20 * Gets Google API key from environment variables

Callers 6

constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected