File size: 2,063 Bytes
0f07ba7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/mudler/LocalAI/main/schemas/gallery.model.schema.json",
  "title": "LocalAI Gallery Model Spec",
  "description": "Schema for LocalAI gallery model YAML files",
  "type": "object",

  "properties": {
    "name": {
      "type": "string",
      "description": "Model name"
    },
    "description": {
      "type": "string",
      "description": "Human-readable description of the model"
    },
    "icon": {
      "type": "string",
      "description": "Optional icon reference or URL"
    },
    "license": {
      "type": "string",
      "description": "Model license identifier or text"
    },
    "urls": {
      "type": "array",
      "description": "URLs pointing to remote model configuration",
      "items": {
        "type": "string",
        "format": "uri"
      }
    },
    "config_file": {
      "type": "string",
      "description": "Inline YAML configuration that will be written to the model config file"
    },
    "files": {
      "type": "array",
      "description": "Files to download and install for this model",
      "items": {
        "type": "object",
        "required": ["filename", "uri"],
        "properties": {
          "filename": {
            "type": "string"
          },
          "sha256": {
            "type": "string",
            "description": "Optional SHA256 checksum for file verification"
          },
          "uri": {
            "type": "string",
            "format": "uri"
          }
        },
        "additionalProperties": false
      }
    },
    "prompt_templates": {
      "type": "array",
      "description": "Prompt templates written as .tmpl files",
      "items": {
        "type": "object",
        "required": ["name", "content"],
        "properties": {
          "name": {
            "type": "string"
          },
          "content": {
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    }
  },

  "additionalProperties": false
}