-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.schema.json
84 lines (84 loc) · 2.7 KB
/
config.schema.json
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
81
82
83
84
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"required": ["chat"],
"unevaluatedProperties": false,
"properties": {
"chat": {
"type": "array",
"description": "Chat models configuration",
"items": {
"type": "object",
"required": ["model"],
"properties": {
"model": {
"type": "string",
"description": "Model name (e.g. gpt-4 for OpenAI API, or llama2 for local model)",
"examples": ["gpt-4", "gpt-3.5-turbo", "llama2"]
},
"alias": {
"type": "string",
"description": "shown in the UI as the model name",
"examples": ["gpt-4", "gpt-3.5-turbo", "llama2"]
},
"endpoint": {
"type": "string",
"description": "API endpoint URL. If not provided, indicates a downloadable local model",
"format": "uri",
"default": "https://api.openai.com/v1"
},
"token": {
"type": "string",
"description": "API authentication token"
},
"default": {
"type": "boolean",
"description": "Set as default chat model. Only one model can be default",
"default": false
},
"task": {
"type": "string",
"description": "Optional: The specific task this model is optimized for",
"examples": ["chat", "code", "analysis"]
}
}
}
},
"embedding": {
"type": "array",
"description": "Embedding models configuration",
"items": {
"type": "object",
"required": ["model"],
"properties": {
"model": {
"type": "string",
"description": "Model name (e.g. text-embedding-ada-002)",
"examples": ["text-embedding-ada-002"]
},
"endpoint": {
"type": "string",
"description": "API endpoint URL. If not provided, indicates a downloadable local model",
"format": "uri",
"default": "https://api.openai.com/v1"
},
"token": {
"type": "string",
"description": "API authentication token",
"pattern": "^sk-[a-zA-Z0-9]+$"
},
"default": {
"type": "boolean",
"description": "Set as default embedding model. Only one model can be default",
"default": false
},
"task": {
"type": "string",
"description": "Optional: The specific task this model is optimized for",
"examples": ["text-embedding", "code-embedding", "semantic-search"]
}
}
}
}
}
}