Files
AstrBot/astrbot/core
qingyun df1e59e01c fix(core): use original version constraints instead of locking to installed version (#6445)
* feat: Add OpenRouter chat completion provider adapter with custom headers. (#6436)

* chore: update astrbot.service configuration

* fix(core): use original version constraints instead of locking to installed version

Fixes #6420

The core constraints mechanism was using the currently installed version as
an exact constraint (e.g., `aiosqlite==0.21.0`), preventing plugins from
installing higher versions even when they satisfy the original constraint.

Changes:
- Preserve original version specifier from pyproject.toml (e.g., `>=0.21.0`)
- Allow plugins to require higher versions as long as they satisfy core constraint
- Prevent downgrade by using `>=installed` for packages without version constraint

Example:
- Before: Core constraint `aiosqlite==0.21.0`, plugin requires `>=0.22.1` → BLOCKED
- After: Core constraint `aiosqlite>=0.21.0`, plugin requires `>=0.22.1` → ALLOWED

This enables better dependency management while still protecting core dependencies
from incompatible downgrades.

---------

Co-authored-by: Futureppo <luominzhi2005@qq.com>
Co-authored-by: LIghtJUNction <lightjunction.me@gmail.com>
Co-authored-by: ccsang <ccsang@users.noreply.github.com>
2026-03-17 18:59:24 +08:00
..
2026-03-17 16:53:45 +08:00
2026-03-17 16:53:45 +08:00
2026-03-17 18:53:46 +08:00
2026-02-27 22:03:17 +08:00
2026-03-17 18:53:46 +08:00
2026-03-17 18:53:46 +08:00
2026-03-17 16:51:45 +08:00
2026-02-27 22:03:17 +08:00
2026-03-17 16:51:45 +08:00
2026-02-27 22:03:17 +08:00
2026-02-27 22:03:17 +08:00
2026-02-27 22:03:17 +08:00
2026-03-17 16:51:45 +08:00
2026-02-27 22:03:17 +08:00