hermes-agent/gateway
teknium1 14275d7baa fix(gateway): honor per-provider max_output_tokens in max_tokens chain
Widens ViewWay's #20741 fix to the sibling config surface: a
custom_providers entry can pin its own output cap via max_output_tokens
(or max_tokens). _get_named_custom_provider now lifts it onto the
resolved runtime at all three return sites, and the gateway uses it as a
fallback only when the documented global model.max_tokens isn't set, so
the global key always wins.

Precedence: HERMES_MAX_TOKENS > model.max_tokens > provider
max_output_tokens > None. Closes the same #20741 truncation for users who
configure the cap per-provider rather than globally.

Picks up the intent of #19782 (alexcam1901), reimplemented to feed
ViewWay's max_tokens pipeline.
2026-06-05 09:10:26 -07:00
..
assets
…
builtin_hooks
…
platforms fix(gateway): log silent file-delivery drops (#39767) 2026-06-05 04:50:04 -07:00
__init__.py
…
channel_directory.py
…
config.py fix(gateway): bridge shared-key loop to nested platform config blocks 2026-06-04 05:31:47 -07:00
delivery.py
…
display_config.py
…
hooks.py
…
memory_monitor.py
…
mirror.py
…
pairing.py
…
platform_registry.py
…
restart.py
…
run.py fix(gateway): honor per-provider max_output_tokens in max_tokens chain 2026-06-05 09:10:26 -07:00
runtime_footer.py
…
session.py
…
session_context.py
…
shutdown_forensics.py
…
slash_access.py
…
status.py fix(gateway): tolerate non-UTF-8 status/pid files in gateway status reads 2026-06-04 22:05:23 -07:00
sticker_cache.py
…
stream_consumer.py fix(telegram): finalize sealed overflow chunk so split streamed replies render formatting 2026-06-04 17:11:12 -07:00
stream_dispatch.py
…
stream_events.py
…
whatsapp_identity.py
…