feat(gateway): per-channel model and system prompt overrides (Fixes #1955)

- ChannelOverride + channel_overrides; session /model > channel > global
- Thread/parent lookup; YAML bridge for discord.channel_overrides
- Guard channel_overrides when config lacks platforms (test mocks)
- Add sampiyonyus@gmail.com to AUTHOR_MAP
This commit is contained in:
crazywriter1 2026-05-17 17:14:06 +03:00 committed by Teknium
parent 0010c14e66
commit c43aa6301d
2 changed files with 5 additions and 1 deletions

View file

@ -2343,7 +2343,10 @@ def _get_channel_override(
Looks up ``channel_overrides`` by ``chat_id``, then ``thread_id``, then
``parent_id`` (forum threads / child channels inherit the parent entry).
"""
platform_config = config.platforms.get(platform)
platforms = getattr(config, "platforms", None)
if not platforms:
return None
platform_config = platforms.get(platform)
if not platform_config or not platform_config.channel_overrides:
return None
overrides = platform_config.channel_overrides

View file

@ -918,6 +918,7 @@ AUTHOR_MAP = {
"fr@tecompanytea.com": "ifrederico",
"cdanis@gmail.com": "cdanis",
"samherring99@gmail.com": "samherring99",
"sampiyonyus@gmail.com": "crazywriter1",
"desaiaum08@gmail.com": "Aum08Desai",
"shannon.sands.1979@gmail.com": "shannonsands",
"shannon@nousresearch.com": "shannonsands",