GoogleAiModel constructor
GoogleAiModel(name)
Initializes a new instance of GoogleAiModel class.
GoogleAiModel(name: string)
| Parameter | Type | Description |
|---|---|---|
| name | string | The name of the model. For example, gemini-2.5-flash. |
GoogleAiModel(name, apiKey)
Initializes a new instance of GoogleAiModel class.
GoogleAiModel(name: string, apiKey: string)
| Parameter | Type | Description |
|---|---|---|
| name | string | The name of the model. For example, gemini-2.5-flash. |
| apiKey | string | The API key to use the Gemini API. Please refer to https://ai.google.dev/gemini-api/docs/api-key for details. |
See Also
- module Aspose.Words.AI
- class GoogleAiModel