-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy path.env.example
More file actions
79 lines (62 loc) · 2.73 KB
/
.env.example
File metadata and controls
79 lines (62 loc) · 2.73 KB
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
# Telegram Bot Token (from @BotFather)
TELEGRAM_BOT_TOKEN=
# Allowed Telegram User ID (from @userinfobot)
TELEGRAM_ALLOWED_USER_ID=
# Telegram Proxy URL (optional)
# Supports socks5://, socks4://, http://, https:// protocols
# Examples:
# TELEGRAM_PROXY_URL=socks5://proxy.example.com:1080
# TELEGRAM_PROXY_URL=socks5://user:password@proxy.example.com:1080
# TELEGRAM_PROXY_URL=http://proxy.example.com:8080
# TELEGRAM_PROXY_URL=
# OpenCode API URL (optional, default: http://localhost:4096)
# OPENCODE_API_URL=http://localhost:4096
# OpenCode Server Authentication (optional)
# OPENCODE_SERVER_USERNAME=opencode
# OPENCODE_SERVER_PASSWORD=
# OpenCode Model Configuration (REQUIRED)
# You must specify a default model provider and model ID
# Examples:
# Anthropic Claude 3.5 Sonnet: OPENCODE_MODEL_PROVIDER=anthropic, OPENCODE_MODEL_ID=claude-3-5-sonnet-20241022
# OpenAI GPT-4 Turbo: OPENCODE_MODEL_PROVIDER=openai, OPENCODE_MODEL_ID=gpt-4-turbo
# Groq Mixtral: OPENCODE_MODEL_PROVIDER=groq, OPENCODE_MODEL_ID=mixtral-8x7b-32768
OPENCODE_MODEL_PROVIDER=opencode
OPENCODE_MODEL_ID=big-pickle
# Server Configuration (optional)
# Logging level: debug, info, warn, error (default: info)
# Use "debug" to see detailed diagnostic logs including all bot events
# LOG_LEVEL=info
# Bot Configuration (optional)
# Maximum number of sessions shown in /sessions (default: 10)
# SESSIONS_LIST_LIMIT=10
# Maximum number of projects shown in /projects (default: 10)
# PROJECTS_LIST_LIMIT=10
# Maximum number of commands shown in /commands (default: 10)
# COMMANDS_LIST_LIMIT=10
# Maximum number of scheduled tasks allowed at once (default: 10)
# TASK_LIMIT=10
# Stream update throttle in milliseconds for assistant/tool message edits (default: 500)
# Higher value = fewer Telegram edit requests, lower value = more real-time updates
# RESPONSE_STREAM_THROTTLE_MS=500
# Bot locale: supported locale code (default: en)
# Supported locales: en, de, es, fr, ru, zh
# BOT_LOCALE=en
# Hide thinking indicator messages (default: false)
# HIDE_THINKING_MESSAGES=false
# Hide tool call service messages (default: false)
# HIDE_TOOL_CALL_MESSAGES=false
# Assistant message formatting mode (default: markdown)
# markdown = convert assistant replies to Telegram MarkdownV2
# raw = show assistant replies as plain text
# MESSAGE_FORMAT_MODE=markdown
# Code File Settings (optional)
# Maximum file size in KB to send as document (default: 100)
# CODE_FILE_MAX_SIZE_KB=100
# Speech-to-Text / Voice Recognition (optional)
# Enable voice message transcription by setting a Whisper-compatible API URL.
# Works with OpenAI, Groq, or any Whisper-compatible endpoint.
# If STT_API_URL is not set, voice messages will get a "not configured" reply.
# STT_API_URL=
# STT_API_KEY=
# STT_MODEL=
# STT_LANGUAGE=