chibi-bot 1.6.0b2__tar.gz → 1.6.0b3__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.
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/PKG-INFO +1 -1
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/service.py +10 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/pyproject.toml +1 -1
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/LICENSE +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/README.md +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/__init__.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/__main__.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/cli.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/config/__init__.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/config/app.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/config/gpt.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/config/logging.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/config/telegram.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/config_generator.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/constants.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/exceptions.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/models.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/schemas/__init__.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/schemas/anthropic.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/schemas/app.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/schemas/cloudflare.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/schemas/mistralai.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/schemas/suno.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/bot.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/lock_manager.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/mcp/manager.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/metrics.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/__init__.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/alibaba.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/anthropic.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/cloudflare.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/constants/suno.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/customopenai.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/deepseek.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/eleven_labs.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/gemini_native.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/grok.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/minimax.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/mistralai_native.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/moonshotai.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/openai.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/provider.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/suno.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/__init__.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/cmd.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/common.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/constants.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/exceptions.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/file_editor.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/mcp_management.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/mcp_simple.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/media.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/memory.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/schemas.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/send.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/tool.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/utils.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/web.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/providers/utils.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/task_manager.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/services/user.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/storage/abstract.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/storage/database.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/storage/dynamodb.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/storage/local.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/storage/redis.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/utils/__init__.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/utils/app.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/chibi/utils/telegram.py +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/data/.keep +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/skills/imagen_prompting_skill.md +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/skills/jina_reader_skill.md +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/skills/nano_banana_prompting_skill.md +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/skills/suno_skill.md +0 -0
- {chibi_bot-1.6.0b2 → chibi_bot-1.6.0b3}/skills/wan_prompting_skill.md +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: chibi-bot
|
|
3
|
-
Version: 1.6.
|
|
3
|
+
Version: 1.6.0b3
|
|
4
4
|
Summary: An asynchronous Telegram bot providing access to various LLMs (OpenAI, Gemini, Anthropic, etc.) and image generation models, featuring context management and built-in tools for web search, news retrieval, and reading web pages.
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Sergei Nagaev
|
|
@@ -5,6 +5,8 @@ import sys
|
|
|
5
5
|
from pathlib import Path
|
|
6
6
|
from typing import Optional
|
|
7
7
|
|
|
8
|
+
from dotenv import dotenv_values
|
|
9
|
+
|
|
8
10
|
|
|
9
11
|
class Service:
|
|
10
12
|
"""Service management for the Chibi bot."""
|
|
@@ -23,6 +25,7 @@ class Service:
|
|
|
23
25
|
home = Path.home()
|
|
24
26
|
self.pid_path = pid_path or str(home / ".chibi" / "chibi.pid")
|
|
25
27
|
self.log_path = log_path or str(home / ".chibi" / "logs" / "chibi.log")
|
|
28
|
+
self.settings_path = home / ".chibi" / "settings"
|
|
26
29
|
|
|
27
30
|
def _ensure_directories(self) -> None:
|
|
28
31
|
"""Ensure required directories exist."""
|
|
@@ -83,6 +86,12 @@ class Service:
|
|
|
83
86
|
except OSError:
|
|
84
87
|
pass
|
|
85
88
|
|
|
89
|
+
envs = os.environ.copy()
|
|
90
|
+
|
|
91
|
+
if self.settings_path.exists():
|
|
92
|
+
settings = dotenv_values(self.settings_path)
|
|
93
|
+
envs.update(settings)
|
|
94
|
+
|
|
86
95
|
try:
|
|
87
96
|
# Start the bot process in background
|
|
88
97
|
with open(self.log_path, "a") as log_file:
|
|
@@ -91,6 +100,7 @@ class Service:
|
|
|
91
100
|
stdout=log_file,
|
|
92
101
|
stderr=log_file,
|
|
93
102
|
start_new_session=True, # Create new process group (Unix)
|
|
103
|
+
env=envs,
|
|
94
104
|
)
|
|
95
105
|
self._write_pid(process.pid)
|
|
96
106
|
print(f"Service started (PID: {process.pid}).")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "chibi-bot"
|
|
3
|
-
version = "1.6.
|
|
3
|
+
version = "1.6.0b3"
|
|
4
4
|
description = "An asynchronous Telegram bot providing access to various LLMs (OpenAI, Gemini, Anthropic, etc.) and image generation models, featuring context management and built-in tools for web search, news retrieval, and reading web pages."
|
|
5
5
|
authors = ["Sergei Nagaev <nagaev.sv@gmail.com>"]
|
|
6
6
|
license = "MIT"
|
|
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
|
|
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
|
|
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
|
|
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
|