-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproperties.schema
156 lines (156 loc) · 6.76 KB
/
properties.schema
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema",
"id": "http://jsonschema.net",
"required": false,
"properties": {
"pluginLocations": {
"type": "object",
"required": true,
"properties": {
"config": {
"type": "object",
"properties": {
"_openaiodi": {
"type": "object",
"required": true,
"legend": "Open AI (ODI)",
"properties": {
"apiUrl": {
"type": "string",
"required": true,
"title": "API URL",
"help": "The URL endpoint for the OpenAI API",
"inputType" : "Text",
"validators": ["required"],
"default": "https://api.openai.com/v1/completions"
},
"apiKey": {
"type": "string",
"required": false,
"title": "API Key",
"inputType" : "Text",
"help": "Your API key (DO NOT USE THIS IN PRODUCTION! See the extensions README for details.)",
"validators": [],
"default": "your_api_key_here"
},
"useClientAPIKey": {
"type": "boolean",
"required": true,
"default": false,
"title": "Use client API Key",
"inputType": "Checkbox",
"validators": [],
"help": "If enabled, the the plugin will generate an API Key dynamically, normally this would be authenticated using the client auth server."
},
"clientAuthServer": {
"type": "string",
"required": true,
"title": "Client API Key auth server",
"help": "The URL endpoint for the client API Key authorisation server (see documentation)",
"inputType" : "Text",
"validators": [],
"default": ""
},
"_testMode": {
"type": "boolean",
"required": true,
"default": false,
"title": "Enable testing mode",
"inputType": "Checkbox",
"validators": [],
"help": "If enabled, the the plugin will response with the placeholder responser and not query the AI API."
},
"_testModeResponse": {
"type": "string",
"required": false,
"default": "Are you sure about that? 3/10",
"title": "Test mode response",
"inputType": "Text",
"validators": [],
"help": "The test response to any messages."
},
"model": {
"type": "string",
"required": true,
"title": "Model",
"inputType" : "Text",
"help": "The language model to use (e.g., 'gpt-3.5-turbo')",
"validators": ["required"],
"default": "gpt-3.5-turbo"
},
"temperature": {
"type": "number",
"required": true,
"title": "Temperature",
"inputType" : "Number",
"help": "Controls the randomness of the output",
"validators": ["required"],
"default": 0.7
},
"maxTokens": {
"type": "integer",
"required": true,
"title": "Max Tokens",
"inputType" : "Number",
"help": "Maximum number of tokens the model can generate",
"validators": ["required"],
"default": 150
},
"topP": {
"type": "number",
"required": true,
"title": "Top P",
"inputType" : "Number",
"help": "Nucleus sampling parameter",
"validators": ["required"],
"default": 1.0
},
"frequencyPenalty": {
"type": "number",
"required": true,
"inputType" : "Number",
"title": "Frequency Penalty",
"help": "Penalty to decrease likelihood of repeating tokens",
"validators": ["required"],
"default": 0
},
"presencePenalty": {
"type": "number",
"required": true,
"title": "Presence Penalty",
"inputType" : "Number",
"help": "Penalty to decrease likelihood of generating off-topic responses",
"validators": ["required"],
"default": 0
},
"stop": {
"type": "array",
"required": true,
"title": "Stop Tokens",
"help": "List of strings to stop generation at",
"items": {
"type": "object",
"required": true,
"properties": {
"text": {
"type": "string",
"required": false,
"default": "",
"title": "Stop text",
"inputType": "Text",
"validators": [],
"help": "The stop text",
"translatable": true
}
}
}
}
}
}
}
}
}
}
}
}