Files
hermes-agent/tests/agent
alt-glitch c297adadea refactor: move model_forces_max_completion_tokens from utils to agent.provider_route_hooks
The rule knows OpenAI model family names, which utils (a product-agnostic helper module) should
not, and only agent code calls it. It now sits beside the provider profile max_tokens_param answer
it backs up in both callers. No re-export is left in utils.

agent/auxiliary_client.py imports route_answer at module top with the moved rule and drops its two
function-local imports of it, keeping the file at its line cap.

The test file moves to tests/agent/test_provider_route_hooks_max_completion_tokens.py.
2026-11-16 14:23:53 +05:30
..