-
Notifications
You must be signed in to change notification settings - Fork 55
/
config.example.yml
84 lines (66 loc) · 2.93 KB
/
config.example.yml
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
# Bot configuration parameters.
# Config schema version. Increments for backward-incompatible changes.
schema_version: 3
# Telegram settings.
telegram:
# Telegram Bot API token.
token: ""
# The list of Telegram usernames allowed to chat with the bot.
# If empty, the bot will be available to anyone.
usernames: []
# The list of Telegram usernames allowed to change bot settings.
# If empty, then no one is allowed to change the settings.
admins: []
# The list of Telegram group ids, whose members are allowed to chat with the bot.
# If empty, the bot will only be available to `telegram.usernames`.
chat_ids: []
# OpenAI settings.
openai:
# OpenAI API key.
api_key: ""
# OpenAI model name.
# See https://platform.openai.com/docs/models for description.
model: "gpt-3.5-turbo"
# Model prompt.
prompt: "You are an AI assistant."
# Model parameters.
# See https://platform.openai.com/docs/api-reference/chat/create for description.
params:
temperature: 0.7
presence_penalty: 0
frequency_penalty: 0
max_tokens: 1000
# Azure OpenAI settings, only required if you are using OpenAI through Azure
# (https://learn.microsoft.com/en-us/azure/cognitive-services/openai/overview)
# Refer to the Azure documentation for the values of these parameters.
# azure:
# endpoint: https://example-endpoint.openai.azure.com
# version: 2023-03-15-preview
# deployment: deployment-name
conversation:
# The maximum number of previous messages
# the bot will remember when talking to a user.
depth: 3
# The maximum number of messages a user can send during the specified time period.
# Only applies to users who are not listed in `telegram.usernames`.
# `count` = an integer number of messages (0 = unlimited)
# `period` = minute | hour | day
message_limit:
count: 0
period: hour
# Image generation settings.
imagine:
# Enable/disable image generation:
# - none = disabled for everyone
# - users_only = enabled only for users listed in `telegram.usernames`
# - users_and_groups = enabled for both users listed in `telegram.usernames`
# and members of `telegrams.chat_ids`
enabled: users_only
# Where to store the chat context file.
persistence_path: "./data/persistence.pkl"
# Custom AI commands (additional prompts)
shortcuts:
bugfix: "Examine the following code. Rewrite it if necessary to fix bugs and various problems. Explain the changes you've made."
proofread: "Proofread the following text. Correct grammar and punctuation errors. Rephrase if necessary. Make sure the resulting text is clear, concise, and easy to read. Explain the changes you've made."
summarize: "Explain the following text in simple terms. Use no more than two paragraphs."
translate: "Translate the following text into English."