Derive provider from model ID

The provider is always the prefix before "/" in the model ID,
so storing it as a separate field is redundant. Replace the
field with a Provider() method.

Signed-off-by: Aurélien Sibiril <81782+aureliensibiril@users.noreply.github.com>
This commit is contained in:
Aurélien Sibiril
2026-04-13 17:17:41 +02:00
committed by Sacha Al Himdani
parent adeef0d5cb
commit 481b56402a
4 changed files with 13 additions and 189 deletions

View File

@@ -136,7 +136,6 @@ var generatedModels = map[string]ModelDefinition{
&buf,
` %q: {
Name: %q,
Provider: %q,
ContextLength: %d,
MaxOutputTokens: %d,
Supports: SupportedParameters{
@@ -145,7 +144,6 @@ var generatedModels = map[string]ModelDefinition{
`,
m.ID,
m.Name,
provider,
m.ContextLen,
m.TopProvider.MaxCompletionTokens,
buildSupports(m.SupportedParams),