~cytrogen/evi-run

ref: 6b317f5a0b2a543bc9825f2ab1c23911c6935500 evi-run/config.py -rw-r--r-- 1.1 KiB
6b317f5a — Bendy Disable code formatting checks for the first release 6 months ago
                                                                                
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
# =============================================================================
# MAIN CONFIGURATION SETTINGS for the bot behavior and features
# =============================================================================

# REQUIRED! Enter your Telegram ID (get from @userinfobot)
ADMIN_ID = XXX

# Bot usage mode: 'private' (owner only), 'free' (public with limits), 'pay' (monetized)
TYPE_USAGE = 'private'

# Daily credit allocation for pay and free mode users
CREDITS_USER_DAILY = 500
CREDITS_ADMIN_DAILY = 5000

# Credit costs for text processing (per 1000 tokens, pay mode only)
CREDITS_INPUT_TEXT = 2
CREDITS_OUTPUT_TEXT = 8

# Credit costs for image processing (per 1000 tokens, pay mode only)
CREDITS_INPUT_IMAGE = 10
CREDITS_OUTPUT_IMAGE = 40

# Token usage warning threshold - user gets notified when exceeded
TOKENS_LIMIT_FOR_WARNING_MESSAGE = 15000

# Supported languages configuration
AVAILABLE_LANGUAGES = ['en', 'ru']
AVAILABLE_LANGUAGES_WORDS = ['English', 'Русский']
DEFAULT_LANGUAGE = 'en'
LANGUAGE_FALLBACKS = {
    'ru': ['ru', 'en'],
    'en': ['en']
}

# Application host address (do not modify)
HOST_ADDRESS = 'https://evi.run'