Skip to content

@chinmaymk/aikit v0.0.40


@chinmaymk/aikit / createGoogle

Function: createGoogle()

createGoogle(options): GoogleProvider

Defined in: factory.ts:98

Creates a Google Gemini provider.

Parameters

options

WithApiKey<GoogleOptions>

Configuration options with required API key

Returns

GoogleProvider

Google streaming generation provider function

Example

typescript
const google = createGoogle({
  apiKey: 'AIza...',
  model: 'gemini-1.5-pro',
  topK: 20
});

Released under the MIT License.