MCPcopy
hub / github.com/di-sukharev/opencommit / getGenerativeModel

Method getGenerativeModel

out/cli.cjs:79687–79692  ·  view source on GitHub ↗

* Gets a GenerativeModel instance for the provided model name.

(modelParams, requestOptions)

Source from the content-addressed store, hash-verified

79685};
79686var 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' })`);

Callers 2

generateCommitMessageMethod · 0.80
generateCommitMessageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected