-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
120 lines (113 loc) · 2.89 KB
/
config.js
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
module.exports = {
Server: {
port: 51113,
audio_log_location: "./data/audio/",
autio_log_filename: () => `${Date.now()}_VAD_Voice.wav`,
https: {
enabled: false,
certs: {
key: "certs/privkey.pem",
cert: "certs/cert.pem",
ca: "certs/chain.pem",
}
},
basic_auth: {
enabled: false,
username: "admin",
password: "miku"
},
activation_words: [/*"Hey"*/],
remove_activation_word: true,
},
TTS: {
edge_tts: {
//https://learn.microsoft.com/en-us/azure/ai-services/speech-service/language-support?tabs=tts
//Some voices dont work :(
//voice: "en-IE-EmilyNeural", //Smooth voice.
//voice: "ka-GE-EkaNeural", //Cold voice
//voice: "en-US-AvaNeural", //Most expressive
//voice: "zh-CN-XiaoyiNeural", //China!
voice: "en-US-AvaNeural",
lang: "en",
rate: "+10%"
},
audio_log_location: "./data/audio/",
autio_log_filename: () => `${Date.now()}_TTS_Voice.wav`,
remove_asterisks: true,
remove_emojis: true,
pronunciation_replacements: {
//Should be tailored for a specific voice you plan on using.
//Can test using some online WebAPI SpeechSynthesis test using Edge browser
"Eika": "[eh-eeka]"
}
},
STT: {
whisper_location: "./3rd_party/whisper/main.exe",
whisper_args: [
"-m",
"./models/whisper-base.en-q5_1.bin",
"-nt"
],
remove_solo_annotations: true
},
LLM: {
provider: "koboldcpp",
last_gen_perf: "http://localhost:5001/api/extra/perf",
token_count_url: "http://localhost:5001/api/extra/tokencount",
stream_url: "http://localhost:5001/api/extra/generate/stream",
samplers: "./data/samplers/default.json", //SillyTavern compatible
//In case new samplers are supported, but not in the samplers json,
//of you want to overwrite some without changing json
force_custom_samplers: [
{
//sets stream: true, overrides the setting samplers/default.json
prop: "stream",
value: true
},
{
//custom stopping strings
prop: "stop_sequence",
value: [
]
},
{
prop: "temperature",
value: 0.4
},
/*
{
prop: "seed",
value: 123
}
*/
],
sentence_split: {
min_word_count: 4
},
context_size: 16384, //overrides samplers too, should match with LLM
max_response_length: 512, //overrides samplers too
user: "Boss", //Also used as a stopping string
system_prompt: "You are {{char}}! Only respond as {{char}}. Hold and drive a conversation with {{user}}",
//Prefix and suffix for system prompt and your inputs
/* ChatML
system_prefix: "<|im_start|>system\n",
system_suffix: "<|im_end|>",
user_prefix: "<|im_start|>",
user_suffix: "<|im_end|>",
char_prefix: "<|im_start|>",
char_suffix: "<|im_end|>",
//*/
//* Mistral
system_prefix: "[INST] ",
system_suffix: " [/INST]",
user_prefix: "[INST] ",
user_suffix: " [/INST]",
char_prefix: "",
char_suffix: "",
//*/
card: "./data/cards/Vika.png"
},
Logger: {
show_level: "trace"
}
};