State the context window where a vendor documents one

This commit is contained in:
Thorsten Sommer committed 2026-09-12 15:53:03 +02:00
1 parent 6d80e6de8a
commit e8ec2c1bef
20 files changed
+562 -314

No files matched your search

@@ -186,6 +186,22 @@ public sealed class ModelRuleBuilder(string patternText, ModelRuleKind ruleKind,
return this;
}
/// <summary>
/// Takes back a context window this rule inherited, because nobody states one for this variant.
/// </summary>
/// <remarks>
/// A variant can already hand back a capability its family granted; a number has to be handed
/// back too. Without this, a generation whose window nobody documents would quietly carry the
/// number of the generation it inherits from -- and the app would then show a person that
/// number as a fact about their model.
/// </remarks>
/// <returns>The rule, to go on stating.</returns>
public ModelRuleBuilder WithoutContextWindow()
{
this.context = Models.ContextWindow.UNKNOWN;
return this;
}
/// <summary>
/// Which tokenizer counts this model's tokens.
/// </summary>