mirror of
https://github.com/father-bot/chatgpt_telegram_bot.git
synced 2026-08-03 13:27:16 +03:00
- unsupport_message_handle now checks is_bot_mentioned, so the bot stops replying "I don't know how to read files or videos" to videos/documents it wasn't mentioned in within group chats (#454). Private chats are unaffected (is_bot_mentioned returns True there). - Bump python-dotenv 1.0.1 -> 1.2.2 to resolve a Dependabot symlink-following advisory in set_key. - Bump version to 1.3.1 and document in CHANGELOG.
3.9 KiB
3.9 KiB
Changelog
All notable changes to this project are documented in this file. The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[1.3.1]
Fixed
- In group chats the bot no longer replies "I don't know how to read files or
videos" to videos and documents it wasn't mentioned in —
unsupport_message_handlenow respects the sameis_bot_mentionedcheck as the other handlers (#454).
Security
- Bumped
python-dotenv1.0.1 → 1.2.2 to resolve a symlink-following advisory inset_key(Dependabot).
[1.3.0]
Removed
- Legacy
gpt-3.5-turboandgpt-4models from the menu and config — the lineup is now gpt-4o-mini (default), gpt-5.5, gpt-4o and the Claude models.
Changed
- Simplified the token-count overhead table (all current chat models share the same overhead).
- Refreshed the README (title and feature list) to drop legacy GPT-4 mentions.
Fixed
/balanceno longer raises aKeyErrorfor users with historical usage of models that have since been removed from the config.
[1.2.0]
Added
- Minimal GitHub Actions CI: installs requirements on Python 3.12 and byte-compiles the bot on every push and pull request.
Changed
- Image generation now uses OpenAI gpt-image-1 (default size 1024×1024);
images are returned as bytes and
/balance/ pricing updated accordingly. - Updated
gpt-4opricing to current rates (0.0025 / 0.01 per 1k tokens).
Removed
- Deprecated models
gpt-3.5-turbo-16k,gpt-4-1106-previewandgpt-4-vision-previewfrom the model menu (gpt-4o / gpt-4o-mini cover them).
[1.1.0]
Added
- OpenRouter provider support: models can declare
provider: openrouterinmodels.ymland are routed through an OpenAI-compatible OpenRouter client. Newopenrouter_api_key/openrouter_api_baseconfig options. - Anthropic Claude models via OpenRouter: Claude Opus 4.8, Claude Sonnet and Claude Haiku.
- OpenAI
gpt-5.5(via OpenRouter).
Changed
- Chat models are now dispatched by their
typeinmodels.ymlinstead of hardcoded model-name lists, so adding a model is a config-only change. - Token counting falls back to the
o200k_baseencoding for models unknown totiktoken(e.g. Claude). - The
/settingsmodel picker lays buttons out in rows of two to stay within Telegram's per-row inline-button limit. - Image understanding is now driven by a
vision: trueflag inmodels.yml, so any vision-capable model (GPT-4o, GPT-4o mini, GPT-5.5, Claude) can read images — no longer limited to GPT-4o / GPT-4 Vision.
[1.0.0]
Added
gpt-4oandgpt-4o-minimodels, withgpt-4o-minias the new default.VERSIONfile and this changelog.
Changed
- Migrated from the deprecated
openai==0.28API to theopenai>=1.xSDK (AsyncOpenAIclient, new chat/image/audio/moderation methods, updated error classes). - Default model is now
gpt-4o-miniinstead of the outdatedgpt-3.5-turbo(new users,/new, and theChatGPTfallback). - Upgraded the Docker base image to Python 3.12 (3.8 is end-of-life).
- Bumped dependencies:
python-telegram-bot20.8,pymongo4.6.3,PyYAML6.0.2,python-dotenv1.0.1,tiktoken>= 0.7.0. - Docker: smaller image (
pip --no-cache-dir), unbuffered logs (PYTHONUNBUFFERED), live-mounted config, expanded.dockerignore, removed the obsolete Composeversionkey.
Removed
text-davinci-003and its legacy completion code paths (the model was shut down by OpenAI).
Fixed
- Corrected
gpt-4opricing and scores inmodels.yml. tiktokennow recognizes theo200k_baseencoding used bygpt-4o.- Removed debug logging that fired on every incoming message.
- Narrowed bare
except:clauses so shutdown/cancellation propagates. - Stopped tracking
.DS_Store; various typo and docs fixes.