urlparse raises ValueError on non-integer / out-of-range ports, and http://myhost:99999/v1 passes OpenAI-client construction (only httpx rejects it later), so the crash was reachable from build_kwargs on every request for such a URL. Wrap the parsed.port check in the same try/except ValueError guard hermes_cli.models already uses around its 11434 check, and pin it with parametrized tests.