TeLLMgramBot 3.13.1__tar.gz → 3.13.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tellmgrambot-3.13.1 → tellmgrambot-3.13.2}/PKG-INFO +2 -1
- {tellmgrambot-3.13.1 → tellmgrambot-3.13.2}/README.md +1 -0
- {tellmgrambot-3.13.1 → tellmgrambot-3.13.2}/TeLLMgramBot/TeLLMgramBot.py +2 -5
- {tellmgrambot-3.13.1 → tellmgrambot-3.13.2}/TeLLMgramBot/initialize.py +2 -0
- {tellmgrambot-3.13.1 → tellmgrambot-3.13.2}/TeLLMgramBot.egg-info/PKG-INFO +2 -1
- {tellmgrambot-3.13.1 → tellmgrambot-3.13.2}/setup.py +1 -1
- {tellmgrambot-3.13.1 → tellmgrambot-3.13.2}/LICENSE +0 -0
- {tellmgrambot-3.13.1 → tellmgrambot-3.13.2}/TeLLMgramBot/__init__.py +0 -0
- {tellmgrambot-3.13.1 → tellmgrambot-3.13.2}/TeLLMgramBot/archive.py +0 -0
- {tellmgrambot-3.13.1 → tellmgrambot-3.13.2}/TeLLMgramBot/conversation.py +0 -0
- {tellmgrambot-3.13.1 → tellmgrambot-3.13.2}/TeLLMgramBot/database.py +0 -0
- {tellmgrambot-3.13.1 → tellmgrambot-3.13.2}/TeLLMgramBot/message_handlers.py +0 -0
- {tellmgrambot-3.13.1 → tellmgrambot-3.13.2}/TeLLMgramBot/models.py +0 -0
- {tellmgrambot-3.13.1 → tellmgrambot-3.13.2}/TeLLMgramBot/providers/__init__.py +0 -0
- {tellmgrambot-3.13.1 → tellmgrambot-3.13.2}/TeLLMgramBot/providers/anthropic_provider.py +0 -0
- {tellmgrambot-3.13.1 → tellmgrambot-3.13.2}/TeLLMgramBot/providers/base.py +0 -0
- {tellmgrambot-3.13.1 → tellmgrambot-3.13.2}/TeLLMgramBot/providers/factory.py +0 -0
- {tellmgrambot-3.13.1 → tellmgrambot-3.13.2}/TeLLMgramBot/providers/openai_provider.py +0 -0
- {tellmgrambot-3.13.1 → tellmgrambot-3.13.2}/TeLLMgramBot/tools.py +0 -0
- {tellmgrambot-3.13.1 → tellmgrambot-3.13.2}/TeLLMgramBot/utils.py +0 -0
- {tellmgrambot-3.13.1 → tellmgrambot-3.13.2}/TeLLMgramBot/web_utils.py +0 -0
- {tellmgrambot-3.13.1 → tellmgrambot-3.13.2}/TeLLMgramBot.egg-info/SOURCES.txt +0 -0
- {tellmgrambot-3.13.1 → tellmgrambot-3.13.2}/TeLLMgramBot.egg-info/dependency_links.txt +0 -0
- {tellmgrambot-3.13.1 → tellmgrambot-3.13.2}/TeLLMgramBot.egg-info/requires.txt +0 -0
- {tellmgrambot-3.13.1 → tellmgrambot-3.13.2}/TeLLMgramBot.egg-info/top_level.txt +0 -0
- {tellmgrambot-3.13.1 → tellmgrambot-3.13.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: TeLLMgramBot
|
|
3
|
-
Version: 3.13.
|
|
3
|
+
Version: 3.13.2
|
|
4
4
|
Summary: LLM-powered Telegram bot (OpenAI + Anthropic)
|
|
5
5
|
Home-page: https://github.com/Digital-Heresy/TeLLMgramBot
|
|
6
6
|
Author: Digital Heresy
|
|
@@ -157,6 +157,7 @@ When the bot is triggered in a group and about to respond (not deferring to anot
|
|
|
157
157
|
- `token_limit`: Max tokens (optional; defaults to model's maximum)
|
|
158
158
|
- `search_limit`: Max search results (optional; defaults to 30)
|
|
159
159
|
- `archive_days`: Days before messages are eligible for archival (optional; default 60, minimum 1). Older messages are distilled into daily summaries, then progressively compressed into monthly digests. Once archived their respective raw messages do not return to the LLM context any more, only when searching messages.
|
|
160
|
+
- `allow_local_webhooks`: Set to `true` to permit webhook/MCP URLs targeting loopback or link-local addresses (optional; default `false`). Useful when tools like Home Assistant run on the same host.
|
|
160
161
|
- `tools`: Optional list of webhook and MCP tool definitions (admin-only, private chat only). See [docs/tools.md](docs/tools.md) for schema and examples.
|
|
161
162
|
4. **Disable group privacy mode in BotFather:**
|
|
162
163
|
```
|
|
@@ -125,6 +125,7 @@ When the bot is triggered in a group and about to respond (not deferring to anot
|
|
|
125
125
|
- `token_limit`: Max tokens (optional; defaults to model's maximum)
|
|
126
126
|
- `search_limit`: Max search results (optional; defaults to 30)
|
|
127
127
|
- `archive_days`: Days before messages are eligible for archival (optional; default 60, minimum 1). Older messages are distilled into daily summaries, then progressively compressed into monthly digests. Once archived their respective raw messages do not return to the LLM context any more, only when searching messages.
|
|
128
|
+
- `allow_local_webhooks`: Set to `true` to permit webhook/MCP URLs targeting loopback or link-local addresses (optional; default `false`). Useful when tools like Home Assistant run on the same host.
|
|
128
129
|
- `tools`: Optional list of webhook and MCP tool definitions (admin-only, private chat only). See [docs/tools.md](docs/tools.md) for schema and examples.
|
|
129
130
|
4. **Disable group privacy mode in BotFather:**
|
|
130
131
|
```
|
|
@@ -1111,11 +1111,8 @@ class TelegramBot:
|
|
|
1111
1111
|
key_status, config, prompt = init_structure(config_file, prompt_file)
|
|
1112
1112
|
|
|
1113
1113
|
# Build the webhook tool registry from the optional 'tools:' block in config.yaml.
|
|
1114
|
-
allow_local = config
|
|
1115
|
-
webhook_schemas, webhook_defs = build_tool_registry(
|
|
1116
|
-
config.get('tools') or [],
|
|
1117
|
-
allow_local=allow_local,
|
|
1118
|
-
)
|
|
1114
|
+
allow_local = config['allow_local_webhooks'] or False
|
|
1115
|
+
webhook_schemas, webhook_defs = build_tool_registry(config.get('tools') or [], allow_local)
|
|
1119
1116
|
|
|
1120
1117
|
# Discover MCP tools from any 'mcp_server:' entries in the tools config.
|
|
1121
1118
|
mcp_entries = [
|
|
@@ -108,6 +108,7 @@ INIT_BOT_CONFIG = {
|
|
|
108
108
|
'search_limit': None,
|
|
109
109
|
'persona_temp': None,
|
|
110
110
|
'archive_days': None,
|
|
111
|
+
'allow_local_webhooks': None,
|
|
111
112
|
'persona_prompt': 'You are a generic test bot powered by a user-configured LLM.'
|
|
112
113
|
}
|
|
113
114
|
|
|
@@ -118,6 +119,7 @@ INIT_BOT_CONFIG_COMMENTS = {
|
|
|
118
119
|
'search_limit': '# Optional, max results returned by message search (default: 30)',
|
|
119
120
|
'persona_temp': '# Optional, LLM temperature 0.0-2.0 (default: model\'s default)',
|
|
120
121
|
'archive_days': '# Optional, days before messages are eligible for Tier 1 archival (default: 60, min: 1). Tier 2 triggers at 2x this value.',
|
|
122
|
+
'allow_local_webhooks': '# Optional, set to true to permit webhook/MCP URLs targeting loopback or link-local addresses (default: false)',
|
|
121
123
|
}
|
|
122
124
|
|
|
123
125
|
# Append the framework-owned system appendix to the persona prompt.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: TeLLMgramBot
|
|
3
|
-
Version: 3.13.
|
|
3
|
+
Version: 3.13.2
|
|
4
4
|
Summary: LLM-powered Telegram bot (OpenAI + Anthropic)
|
|
5
5
|
Home-page: https://github.com/Digital-Heresy/TeLLMgramBot
|
|
6
6
|
Author: Digital Heresy
|
|
@@ -157,6 +157,7 @@ When the bot is triggered in a group and about to respond (not deferring to anot
|
|
|
157
157
|
- `token_limit`: Max tokens (optional; defaults to model's maximum)
|
|
158
158
|
- `search_limit`: Max search results (optional; defaults to 30)
|
|
159
159
|
- `archive_days`: Days before messages are eligible for archival (optional; default 60, minimum 1). Older messages are distilled into daily summaries, then progressively compressed into monthly digests. Once archived their respective raw messages do not return to the LLM context any more, only when searching messages.
|
|
160
|
+
- `allow_local_webhooks`: Set to `true` to permit webhook/MCP URLs targeting loopback or link-local addresses (optional; default `false`). Useful when tools like Home Assistant run on the same host.
|
|
160
161
|
- `tools`: Optional list of webhook and MCP tool definitions (admin-only, private chat only). See [docs/tools.md](docs/tools.md) for schema and examples.
|
|
161
162
|
4. **Disable group privacy mode in BotFather:**
|
|
162
163
|
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|