Файли
Arnaud Ritti 905a672bad feat(plugins): add declarative multi-page settings (#2074)
Closes #1720

Plugins can declare searchable multi-page settings (API 1.3): pages under the plugin in Settings, groups, string lists, editable tables and command buttons, while single-schema plugins keep working. A command button applies pending edits first and runs against the selected Global/Project layer (also remotely); Reset keeps other pages' edits, and invalid table/list edits never replace saved rows. Field and page order come from the schema without changing serde_json's map ordering elsewhere in the app.

Co-authored-by: arnaud-ritti <[email protected]>
2026-11-08 08:38:42 +08:00

20 рядки
835 B
JSON

{
"properties": {
"profiles": {
"type": "array", "title": "Model profiles", "group": "Provider",
"items": {
"type": "object",
"properties": {
"name": { "type": "string", "title": "Name", "default": "Local" },
"provider": { "type": "string", "title": "Provider", "enum": ["local", "openai"], "default": "local" },
"baseUrl": { "type": "string", "title": "Base URL", "default": "http://localhost:11434" },
"model": { "type": "string", "title": "Model", "default": "example-model" },
"enabled": { "type": "boolean", "title": "Enabled", "default": true },
"temperature": { "type": "number", "title": "Temperature", "default": 0.7 },
"limit": { "type": "integer", "title": "Token limit", "default": 2048 }
}
}
}
}
}