mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-18 09:17:59 +00:00
Added Mistral Large 4 to the model knowledge (#1059)
This commit is contained in:
1 parent
fbb65fd72d
commit
ab45580473
6 files changed
+49
-3
No files matched your search
@@ -8,7 +8,7 @@ namespace AIStudio.Models.Mistral;
|
||||
public sealed class MistralLargeFamily : MistralReleaseDatedFamily
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override ModelSource Source => new("https://docs.mistral.ai/models/mistral-large-3-25-12", new DateOnly(2026, 9, 12), "Capabilities ported unchanged from ProviderExtensions.Mistral.cs: images and reasoning from Mistral Large 3 on. The model card states a 256k window.");
|
||||
public override ModelSource Source => new("https://docs.mistral.ai/models/mistral-large-4-0", new DateOnly(2026, 10, 13), "Capabilities ported unchanged from ProviderExtensions.Mistral.cs: images and reasoning from Mistral Large 3 on. The model card of Mistral Large 3 states a 256k window, the one of Mistral Large 4 a 1M window.");
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override int VisionSince => 2512;
|
||||
@@ -20,9 +20,18 @@ public sealed class MistralLargeFamily : MistralReleaseDatedFamily
|
||||
protected override int LatestRelease => 2512;
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Declare(ModelFamilyBuilder builder) =>
|
||||
protected override void Declare(ModelFamilyBuilder builder)
|
||||
{
|
||||
builder.Rule("mistral-large").AsSegment()
|
||||
.Capabilities(WHAT_THEY_COULD_ALWAYS_DO)
|
||||
.Apis(CHAT_COMPLETION_API)
|
||||
.ContextWindow(256_000);
|
||||
|
||||
//
|
||||
// Mistral Large 4 reads a million tokens instead of 256k. Its names carry the generation
|
||||
// instead of a release, so this rule answers for the window only; images and reasoning
|
||||
// still follow from the release, which the version names map Mistral Large 4 onto:
|
||||
//
|
||||
builder.Rule("mistral-large-4").AsSegment().InheritsFrom("mistral-large").ContextWindow(1_000_000);
|
||||
}
|
||||
}
|
||||
@@ -59,6 +59,7 @@ public static class MistralReleases
|
||||
/// </remarks>
|
||||
private static readonly (string VersionName, int Release)[] VERSION_NAMES =
|
||||
[
|
||||
("mistral-large-4", 2610),
|
||||
("mistral-large-3", 2512),
|
||||
|
||||
("mistral-medium-3.5", 2604),
|
||||
|
||||
Reference in new issue
Block a user