mirror of
https://github.com/mudler/LocalAI.git
synced 2026-11-07 13:03:20 -05:00
No release ever shipped add-ons, so there is no installed base on api 1.
The manifest must now declare api {"min": 2, "max": 2}; a manifest with
api 1, no api or a wider range is refused with a message that names the
range.
Every field that was gated on api 2 is now part of the contract, so the
Min*API constants and their gates are gone, and so are HostAPIMin and
the apiMin host field. Three older-manifest shims go with them: the
resource listing the host implied for one add-on, the legacyArgs hint
for arguments an older version of a tool took, and the tests that
checked the gates. All shipped manifests and the test fixtures declare
api 2.
Assisted-by: Claude:claude-sonnet-5-5 go test
53 lines
839 B
JSON
53 lines
839 B
JSON
{
|
|
"schemaVersion": 1,
|
|
"id": "sample",
|
|
"version": "1.2.3",
|
|
"executable": "bin/sample",
|
|
"os": "linux",
|
|
"arch": "amd64",
|
|
"host": {
|
|
"min": 1,
|
|
"max": 2
|
|
},
|
|
"api": {"min": 2, "max": 2},
|
|
"protocol": {
|
|
"min": 1,
|
|
"max": 1
|
|
},
|
|
"dataFormat": {
|
|
"min": 1,
|
|
"max": 2
|
|
},
|
|
"launchMode": "always",
|
|
"capabilities": {
|
|
"service": true,
|
|
"tools": [
|
|
"query"
|
|
],
|
|
"ui": {
|
|
"entry": "ui/main.js",
|
|
"css": [
|
|
"ui/main.css"
|
|
],
|
|
"sdk": {
|
|
"min": 1,
|
|
"max": 1
|
|
},
|
|
"pages": [
|
|
"home",
|
|
"settings"
|
|
],
|
|
"navigation": [
|
|
"home"
|
|
],
|
|
"mainPage": "home",
|
|
"icon": "ui/icon.png",
|
|
"title": {
|
|
"en": "Sample",
|
|
"it": "Esempio"
|
|
},
|
|
"description": "A sample addon."
|
|
}
|
|
}
|
|
}
|