* Gets a GenerativeModel instance for the provided model name.
(modelParams, requestOptions)
| 79685 | }; |
| 79686 | var GoogleGenerativeAI = class { |
| 79687 | constructor(apiKey) { |
| 79688 | this.apiKey = apiKey; |
| 79689 | } |
| 79690 | /** |
| 79691 | * Gets a {@link GenerativeModel} instance for the provided model name. |
| 79692 | */ |
| 79693 | getGenerativeModel(modelParams, requestOptions) { |
| 79694 | if (!modelParams.model) { |
| 79695 | throw new GoogleGenerativeAIError(`Must provide a model name. Example: genai.getGenerativeModel({ model: 'my-model-name' })`); |
no outgoing calls
no test coverage detected