Skip to content

Commit dbcdcd4

Browse files
committed
v0.76 - premium mode auto-switching
1 parent d681759 commit dbcdcd4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,12 @@ If you run into any issues, consult the logs or reach out on the repository's [I
236236
---
237237

238238
# Changelog
239+
- v0.76 – **Premium mode auto-switching** + usage DB synergy
240+
- Added daily usage-based auto-switch logic between “premium” vs. “mini” models (see `[ModelAutoSwitch]` in `config.ini`).
241+
- Once you exceed the `PremiumTokenLimit`, the bot seamlessly switches to the fallback model.
242+
- If that fallback also goes past `MiniTokenLimit`, the bot can either deny usage or proceed, according to `FallbackLimitAction`.
243+
- New param `model_info` for logging function calls, so the “Bot” lines in your chat log can show which model/tier is used (i.e. `model=gpt-4, tier=premium, usage=12345/500000`).
244+
- Some small bugfixes for the SQLite usage DB, ensuring we properly update `premium_tokens` or `mini_tokens` after each request based on the `usage` field in OpenAI’s response.
239245
- 0.75056 - switched to newer Perplexity API models due to new models / old model depreciation
240246
- see [Perplexity API guide for supported models](https://docs.perplexity.ai/guides/model-cards)
241247
- v0.75055 - fixes to the html sanitizer (for Telegram's API; better handling of malformed html), using BeautifulSoup4+lxml for parsing now

0 commit comments

Comments
 (0)