Skip to content
Tracon

TraconImageOptions

Namespace Tracon · Assembly Tracon.Core.dll

Settings for the image-generation tool.

public sealed class TraconImageOptions

objectTraconImageOptions

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

The tool is off by default. Setting TraconImageOptions.Enabled to true registers generate_image only when an AI.IImageGenerator is also registered.

public TraconImageOptions()

Default configuration section name.

public const string SectionName = "Tracon:Images"

string

Gets or sets whether the image tool and operator endpoint are enabled.

public bool Enabled { get; set; }

bool

Gets or sets the most images one call may produce. Default is one.

public int MaxImagesPerRequest { get; set; }

int

Gets or sets the image model.

public string? Model { get; set; }

string?

Image model names are not inferred from a chat model. Providers use distinct model catalogues, and an inferred name could spend money on the wrong model.

Gets or sets the provider name used to find configured image prices.

public string? Provider { get; set; }

string?

Provider extensions set this value when it is empty. Set it explicitly when registering a custom AI.IImageGenerator.