Defines a custom GitHub model that is not exported by the plugin
The name of the model (e.g., "gpt-4-turbo", "custom-model")
Optional
Plugin options including githubToken, endpoint, and apiVersion
A ModelAction that can be used with Genkit
import { defineGithubModel } from 'genkitx-github';const customModel = defineGithubModel('my-custom-model', { githubToken: process.env.GITHUB_TOKEN});const response = await ai.generate({ model: customModel, prompt: 'Hello!'}); Copy
import { defineGithubModel } from 'genkitx-github';const customModel = defineGithubModel('my-custom-model', { githubToken: process.env.GITHUB_TOKEN});const response = await ai.generate({ model: customModel, prompt: 'Hello!'});
Defines a custom GitHub model that is not exported by the plugin