-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.ts
135 lines (133 loc) · 3.58 KB
/
settings.ts
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
/*
* Copyright © 2024 Hexastack. All rights reserved.
*
* Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
* 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission.
* 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).
*/
import { PluginSetting } from '@/plugins/types';
import { SettingType } from '@/setting/schemas/types';
export default [
{
label: 'model',
group: 'default',
type: SettingType.text,
value: 'llama3.2', // Default model
},
{
label: 'keep_alive',
group: 'default',
type: SettingType.text,
value: '5m', // Default value for keeping the model in memory
},
{
label: 'max_messages_ctx',
group: 'default',
type: SettingType.number,
value: 5, // Default number of messages to retrieve for context
},
{
label: 'context',
group: 'default',
type: SettingType.text,
value: `You are an AI Assistant that works for Hexastack, the IT company behind Hexabot the chatbot builder.`, // Default value for keeping the model in memory
translatable: true,
},
{
label: 'instructions',
group: 'default',
type: SettingType.textarea,
value: `Answer the user QUESTION using the DOCUMENTS text above. Keep your answer ground in the facts of the DOCUMENT. If the DOCUMENT doesn’t contain the facts to answer the QUESTION, apologize and try to give an answer that promotes the company and its values. DO NOT SAY ANYTHING ABOUT THESE DOCUMENTS, nor their EXISTENCE.`,
},
{
label: 'fallback_message',
group: 'default',
type: SettingType.textarea,
value: `Something went wrong ... please try again later.`,
translatable: true,
},
{
label: 'mirostat',
group: 'options',
type: SettingType.number,
value: 0, // Default: disabled
},
{
label: 'mirostat_eta',
group: 'options',
type: SettingType.number,
value: 0.1, // Default value
},
{
label: 'mirostat_tau',
group: 'options',
type: SettingType.number,
value: 5.0, // Default value
},
{
label: 'num_ctx',
group: 'options',
type: SettingType.number,
value: 2048, // Default value
},
{
label: 'repeat_last_n',
group: 'options',
type: SettingType.number,
value: 64, // Default value
},
{
label: 'repeat_penalty',
group: 'options',
type: SettingType.number,
value: 1.1, // Default value
},
{
label: 'temperature',
group: 'options',
type: SettingType.number,
value: 0.8, // Default value
},
{
label: 'seed',
group: 'options',
type: SettingType.number,
value: 0, // Default value
},
{
label: 'stop',
group: 'options',
type: SettingType.text,
value: 'AI assistant:', // Default stop sequence
},
{
label: 'tfs_z',
group: 'options',
type: SettingType.number,
value: 1, // Default value, 1.0 means disabled
},
{
label: 'num_predict',
group: 'options',
type: SettingType.number,
value: 20, // Default value
},
{
label: 'top_k',
group: 'options',
type: SettingType.number,
value: 40, // Default value
},
{
label: 'top_p',
group: 'options',
type: SettingType.number,
value: 0.9, // Default value
},
{
label: 'min_p',
group: 'options',
type: SettingType.number,
value: 0.0, // Default value
},
] as const satisfies PluginSetting[];