2026-09-11 20:33:16 +02:00
using static AIStudio . Provider . Capability ;
namespace AIStudio.Models.Mistral ;
/// <summary>
/// Pixtral, the Mistral models built to look at pictures.
/// </summary>
/// <remarks>
/// They read images from the first release, so nothing here depends on a date.
/// </remarks>
public sealed class PixtralFamily : ModelFamily
{
/// <inheritdoc />
public override ModelVendor Vendor => ModelVendor . MISTRAL_AI ;
/// <inheritdoc />
2026-09-12 15:53:03 +02:00
public override ModelSource Source => new ( "https://docs.mistral.ai/getting-started/models/models_overview/" , new DateOnly ( 2026 , 9 , 12 ), "Capabilities ported unchanged from ProviderExtensions.Mistral.cs: images in every release. Mistral states a 128k window for Pixtral." );
2026-09-11 20:33:16 +02:00
/// <inheritdoc />
protected override void Declare ( ModelFamilyBuilder builder ) =>
builder . Rule ( "pixtral" ). AsSegment ()
. Capabilities ( TEXT_INPUT | MULTIPLE_IMAGE_INPUT | TEXT_OUTPUT | FUNCTION_CALLING )
2026-09-12 15:53:03 +02:00
. Apis ( CHAT_COMPLETION_API )
. ContextWindow ( 128_000 );
2026-09-11 20:33:16 +02:00
}