-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAIbot.conf.sample
190 lines (172 loc) · 5.42 KB
/
AIbot.conf.sample
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
#
# AI IRC Bot
# version: 20241129 (and later)
#
# Sample configuration file
#
[AI]
# model
# Purpose: AI model to be used.
# Mandatory: Yes
# Validity: N/A
# Default: N/A
model = gpt-4o-mini
# api_key
# Purpose: AI API KEY
# Mandatory: Yes
# Validity: any model
# Default: N/A
api_key = sk-...
# context
# Purpose: Describe behavior of the bot (e.g. provide instruction how to respond to questions).
# Mandatory: No
# Validity: Claude/ChatCompletion, ChatGPT/ChatCompletion
# Default: You are helpful and friendly assistant.
context = You are helpful and friendly assistant.
# history_time
# Purpose: Set history time (in seconds) of question/answer pairs to be kept.
# Mandatory: No
# Validity: Claude/ChatCompletion, ChatGPT/ChatCompletion
# Default: -1 (use only history setting)
history_time = -1
# history
# Purpose: Set number of previous questions/answers to be kept within specified time (history_time).
# Mandatory: No
# Validity: Claude/ChatCompletion, ChatGPT/ChatCompletion
# Default: 0 (none)
history = 0
# use_nick
# Purpose: While responding, address user with their nick.
# Mandatory: No
# Validity: Claude/ChatCompletion, ChatGPT/ChatCompletion
# Default: false
use_nick = false
# temperature
# Purpose: Defines how random each subsequent word in the chat output is.
# Mandatory: No
# Validity: Claude/ChatCompletion, ChatGPT/ChatCompletion
# Default: 0.5
temperature = 0.5
# top_p
# Purpose: An alternative to sampling with temperature, where the model considers the results of the tokens with top_p probability mass.
# Mandatory: No
# Validity: Claude/ChatCompletion, ChatGPT/ChatCompletion
# Default: 1 (meaning 100%)
top_p = 1
# max_tokens
# Purpose: The maximum number of tokens to generate in the response.
# Mandatory: No
# Validity: Claude/ChatCompletion, ChatGPT/ChatCompletion
# Default: 1000
max_tokens = 1000
# frequency_penalty
# Purpose: Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
# Mandatory: No
# Validity: ChatGPT/ChatCompletion
# Default: 0
frequency_penalty = 0
# presence_penalty
# Purpose: Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
# Mandatory: No
# Validity: ChatGPT/ChatCompletion
# Default: 0
presence_penalty = 0
# request_timeout
# Purpose: Timeout processing request by API. (OBSOLETE)
# Mandatory: No
# Validity: ChatGPT/ChatCompletion
# Default: 60
request_timeout = 60
[IRC]
# debug
# Purpose: Display some limited debugging messages.
# Mandatory: No
# Validity: N/A
# Default: false
debug = false
# accept_invites
# Purpose: Accept invitation to join a non-permanent channel.
# Mandatory: No
# Validity: N/A
# Default: false
accept_invites = false
# rejoin_invited
# Purpose: Allow to re-join a non-permanent channel (channel to which bot was previously invited).
# Mandatory: No
# Validity: N/A
# Default: false
rejoin_invited = false
# server
# Purpose: Table of servers.
# name - name or IP address of the server
# port - port of the server (default: 6667)
# tls - use SSL/TLS (default: false)
# password - user's password (default: BLANK)
# ident - user's ident
# realname - user's real name (default: BLANK)
# nickname - user's nick name
# sasl_mechanism - only PLAIN supported (default: PLAIN) (***WIP***)
# sasl_username - SASL username (default: BLANK) (***WIP***)
# sasl_password - SASL password (default: BLANK) (***WIP***)
# Mandatory: Yes (at least 1 server, with ID:0, for which name, ident and nickname are defined)
#
#server[0].name =
#server[0].port =
#server[0].tls =
#server[0].password =
#server[0].ident =
#server[0].realname =
#server[0].nickname =
#server[0].sasl_mechanism =
#server[0].sasl_username =
#server[0].sasl_password =
#
server[0].name = tngnet.ircnet.io
server[0].port = 6679
server[0].tls = true
server[0].password =
server[0].ident = SampleBot
server[0].realname = Sample Bot
server[0].nickname = SampleBot
server[0].sasl_mechanism =
server[0].sasl_username =
server[0].sasl_password =
#
server[1].name = irc.nlnog.net
server[1].port = 6667
server[1].tls = false
server[1].password =
server[1].ident = SampleBot
server[1].realname = Sample Bot
server[1].nickname = SampleBot
server[1].sasl_mechanism = PLAIN
server[1].sasl_username = user
server[1].sasl_password = password
# channel
# Purpose: Table of permanent channels.
# name - channel name, supported only standard (#NAME) channels (default: BLANK)
# context - behavior of the bot (default: GLOBAL context)
# history_time - time (in seconds) of question/answer pairs to be kept (default: GLOBAL history_time)
# history - number of question/answer pairs to be kept (default: GLOBAL history)
# use_nick - while responding, address user with their nick (default: GLOBAL use_nick)
# model - model to be used (default: GLOBAL model)
# api_key - API KEY (default: GLOBAL api_key)
# Mandatory: No (bot can be invited to channels)
#
#channel[0].name =
#channel[0].context =
#channel[0].history_time =
#channel[0].history =
#channel[0].use_nick =
#channel[0].model =
#channel[0].api_key =
#
channel[0].name = #oiram
channel[0].context = You understand many languages, but you only reply in Polish.
channel[0].history_time = 3600
channel[0].history = 10
channel[0].use_nick = true
#
channel[1].name = #oiram1
channel[1].model = claude-3-5-haiku-latest
channel[1].api_key = sk-ant-...