Genkit JS API reference
    Preparing search index...

    Type Alias DefineModelOptions<CustomOptionsSchema>

    Options for defining a new model via defineModel or model.

    type DefineModelOptions<CustomOptionsSchema extends z.ZodTypeAny = z.ZodTypeAny> = {
        configSchema?: CustomOptionsSchema;
        label?: string;
        name: string;
        supports?: ModelInfo["supports"];
        use?: ModelMiddlewareArgument[];
        versions?: string[];
    }

    Type Parameters

    Index

    Properties

    configSchema?: CustomOptionsSchema

    Custom options schema for this model.

    label?: string

    Descriptive name for this model e.g. 'Google AI - Gemini Pro'.

    name: string
    supports?: ModelInfo["supports"]

    Capabilities this model supports.

    Middleware to be used with this model.

    versions?: string[]

    Known version names for this model, e.g. gemini-1.0-pro-001.