-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.schema.json
More file actions
269 lines (269 loc) · 9.74 KB
/
Copy pathconfig.schema.json
File metadata and controls
269 lines (269 loc) · 9.74 KB
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Chat UI Configuration",
"type": "object",
"properties": {
"base_path": {
"type": "string",
"description": "このアプリがホスティングされているパス",
"default": "/"
},
"app": {
"type": "object",
"properties": {
"title": { "type": "string", "description": "ブラウザのタブやヘッダーに表示されるタイトル" },
"description": {
"anyOf": [
{ "type": "string", "description": "画面に表示する説明文や指示(Markdown対応)" },
{
"type": "object",
"properties": {
"contents": { "type": "string", "description": "Markdownテキスト" },
"contents": {
"type": "string",
"description": "説明文の内容 (Markdown format)。${PASSWORD}やURLクエリパラメータのプレースホルダーが使用可能。"
},
"position": {
"type": "string",
"enum": ["top", "bottom", "left", "right"],
"default": "top",
"description": "表示位置"
},
"width": {
"type": "string",
"default": "16rem",
"description": "サイドバー表示時の幅 (CSS値)"
},
"style": {
"type": "string",
"enum": ["fixed", "floating"],
"default": "fixed",
"description": "表示スタイル (fixed: サイドバー固定, floating: フローティング)"
},
"max_height": {
"type": "string",
"default": "12rem",
"description": "説明文の最大高さ (CSS値: px, rem, %, vhなど)"
}
},
"required": ["contents"]
}
]
}
},
"required": ["title"]
},
"llm": {
"type": "object",
"properties": {
"provider": { "type": "string", "enum": ["openai", "azure", "anthropic", "google", "local"] },
"endpoint_url": { "type": "string" },
"model": { "type": "string" },
"api_key": { "type": "string" },
"system_prompt": { "type": "string" },
"enable_thinking": { "type": "boolean" },
"thinking_tags": {
"type": "array",
"description": "思考過程として扱うタグのペア",
"items": {
"type": "object",
"required": ["start", "end"],
"properties": {
"start": { "type": "string", "description": "開始タグ" },
"end": { "type": "string", "description": "終了タグ" }
}
}
},
"permissions": {
"type": "object",
"properties": {
"allow_change_config": { "type": "boolean" },
"allow_change_system_prompt": { "type": "boolean" },
"allow_toggle_thinking": { "type": "boolean" }
},
"required": ["allow_change_config", "allow_change_system_prompt"]
}
},
"required": ["provider", "model", "permissions"]
},
"chat": {
"type": "object",
"properties": {
"start_role": { "type": "string", "enum": ["user", "assistant"] },
"max_turns": { "type": "integer", "minimum": 1 },
"on_limit_reached": {
"type": "object",
"properties": {
"action": { "type": "string", "enum": ["modal", "inline", "none"] },
"auto_exit_delay_sec": { "type": "number", "minimum": 0 },
"modal_delay_sec": {
"type": "number",
"default": 1.0,
"description": "モーダル表示までの遅延時間(秒)"
}
},
"required": ["action", "auto_exit_delay_sec"]
},
"exit_redirect_url": { "type": "string" },
"prefill_messages": {
"type": "array",
"description": "初期表示されるメッセージのリスト",
"items": {
"type": "object",
"required": ["role", "text"],
"properties": {
"role": {
"type": "string",
"enum": ["user", "assistant"],
"description": "メッセージの送信者ロール"
},
"text": {
"type": "string",
"description": "メッセージの本文"
},
"reasoning": {
"type": "string",
"description": "思考過程のテキスト(オプション)"
}
}
}
},
"user_name": {
"type": "string",
"description": "ユーザーの表示名(吹き出しの上に表示)"
},
"assistant_name": {
"type": "string",
"description": "アシスタントの表示名(吹き出しの上に表示)"
}
},
"required": ["start_role", "max_turns", "on_limit_reached", "exit_redirect_url"]
},
"ui": {
"type": "object",
"properties": {
"styles": {
"type": "object",
"properties": {
"generation_style": { "type": "string", "enum": ["streaming", "spinner", "read", "instant"] },
"message_style": { "type": "string", "enum": ["bubble", "flat"] }
},
"required": ["generation_style", "message_style"]
},
"components": {
"type": "object",
"properties": {
"exit_button_visibility": {
"anyOf": [
{ "type": "string", "enum": ["always", "on_limit", "never"] },
{ "type": "integer", "minimum": 0 }
]
},
"allow_import": { "type": "boolean" },
"allow_export": { "type": "boolean" },
"candidates": {
"type": "object",
"properties": {
"show_turn": { "type": "integer", "minimum": 0 },
"hide_turn": { "type": "integer", "minimum": 0 },
"before_show_text": { "type": "string" },
"after_hide_text": { "type": "string" },
"used_contents_behavior": { "type": "string", "enum": ["none", "move_to_end", "remove"] },
"contents": {
"type": "array",
"items": { "type": "string" }
}
},
"required": ["contents"]
}
},
"required": ["exit_button_visibility", "allow_import", "allow_export"]
},
"turn_counter": {
"type": "object",
"properties": {
"style": { "type": "string", "enum": ["hidden", "fraction", "custom"] },
"custom_suffix": { "type": "string" }
},
"required": ["style"]
},
"export": {
"type": "object",
"properties": {
"filename_prefix": { "type": "string" },
"include_settings": {
"type": "boolean",
"description": "エクスポートデータに現在のllm設定を含めるかどうか",
"default": false
}
},
"required": ["filename_prefix"]
},
"theme": {
"type": "object",
"description": "テーマ設定",
"properties": {
"base": {
"type": "string",
"enum": ["light", "dark", "system"],
"description": "ベーステーマ"
},
"colors": {
"type": "object",
"description": "カスタムカラー設定",
"properties": {
"background": { "type": "string", "description": "全体の背景色" },
"user_bubble": { "type": "string", "description": "ユーザー吹き出しの色" },
"user_bubble_text": { "type": "string", "description": "ユーザー吹き出しの文字色" },
"assistant_bubble": { "type": "string", "description": "アシスタント吹き出しの色" },
"assistant_bubble_text": { "type": "string", "description": "アシスタント吹き出しの文字色" }
}
}
}
}
},
"required": ["styles", "components", "turn_counter", "export"]
},
"system": {
"type": "object",
"properties": {
"security": {
"type": "object",
"properties": {
"password_auth_enabled": { "type": "boolean" },
"auth_request": {
"type": "object",
"properties": {
"url": { "type": "string" },
"method": { "type": "string", "enum": ["GET", "POST", "PUT"] },
"headers": { "type": "object" },
"body": { "type": "string" }
},
"required": ["url"]
}
},
"required": ["password_auth_enabled"]
},
"logging": {
"type": "object",
"properties": {
"endpoint_url": { "type": "string" },
"target_events": { "type": "array", "items": { "type": "string" } }
}
},
"heartbeat": {
"type": "object",
"properties": {
"enabled": { "type": "boolean" },
"interval_sec": { "type": "integer" },
"url": { "type": "string" },
"method": { "type": "string", "enum": ["GET", "POST", "PUT"] },
"headers": { "type": "object" },
"body": { "type": "string" }
}
}
}
}
},
"required": ["app", "llm", "chat", "ui"]
}