on main help sign in
fix: recent models dont go into the schema (#1892)

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

commit077706036c3a6dc502d7f5d30f2bc77ad1b4d733 authorCarlos Alexandro Becker <caarlos0@users.noreply.github.com> dateTue 20 Jan 2026, 15:21 (9 months ago) parent2926883
2 files changed+2−11
internal/config/config.go+2−1 schema.json−10
internal/config/config.go+2−1
@@ -359,8 +359,9 @@ type Config struct {
359359
360360 // We currently only support large/small as values here.
361361 Models map[SelectedModelType]SelectedModel `json:"models,omitempty" jsonschema:"description=Model configurations for different model types,example={\"large\":{\"model\":\"gpt-4o\",\"provider\":\"openai\"}}"`
362+
362363 // Recently used models stored in the data directory config.
363− RecentModels map[SelectedModelType][]SelectedModel `json:"recent_models,omitempty" jsonschema:"description=Recently used models sorted by most recent first"`
364+ RecentModels map[SelectedModelType][]SelectedModel `json:"recent_models,omitempty" jsonschema:"-"`
364365
365366 // The providers that are configured
366367 Providers *csync.Map[string, ProviderConfig] `json:"providers,omitempty" jsonschema:"description=AI provider configurations"`
schema.json−10
@@ -63,16 +63,6 @@
6363 "type": "object",
6464 "description": "Model configurations for different model types"
6565 },
66− "recent_models": {
67− "additionalProperties": {
68− "items": {
69− "$ref": "#/$defs/SelectedModel"
70− },
71− "type": "array"
72− },
73− "type": "object",
74− "description": "Recently used models sorted by most recent first"
75− },
7666 "providers": {
7767 "additionalProperties": {
7868 "$ref": "#/$defs/ProviderConfig"