Files
hermes-agent/gateway
teknium1 aa50383030 fix(qqbot): test the STT timeout at the HTTP call-site; share the 60s default and number parsing
The previous test only checked _resolve_stt_config, so restoring the old
hardcoded timeout=30.0 in _call_stt stayed green. The replacement drives
_call_stt with a fake HTTP client and asserts the timeout kwarg actually
posted (default 60.0 and a configured "95"); proven red with timeout=30.0.

_resolve_stt_config now reuses tools.transcription_common._config_number
(cast=float) instead of an inline try/float/except, and the 60s default
lives once as transcription_common.DEFAULT_STT_TIMEOUT, used by both the
OpenAI-SDK STT path and the QQ adapter. The import is lazy inside the
resolver (0.02s, two light modules, no gateway import cycle).
2026-09-19 10:12:15 -07:00
..