Type Alias DefineModelOptions<CustomOptionsSchema>

DefineModelOptions: {
    configSchema?: CustomOptionsSchema;
    label?: string;
    name: string;
    supports?: ModelInfo["supports"];
    use?: ModelMiddleware[];
    versions?: string[];
}

Type Parameters

Type declaration

  • OptionalconfigSchema?: CustomOptionsSchema

    Custom options schema for this model.

  • Optionallabel?: string

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

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

    Capabilities this model supports.

  • Optionaluse?: ModelMiddleware[]

    Middleware to be used with this model.

  • Optionalversions?: string[]

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