llamacppctl/tests
dschlueter 6076e3bcb8 feat(chat): make streaming and chat timeouts per-profile configurable
The chat request previously used a hard-coded 30 s timeout and ignored
--read-timeout entirely (that flag only bounded URL prompt fetching), so
slow reasoning models were cut off mid-generation unless one remembered
to pass --stream (which used a separate hard-coded 600 s).

Resolve `stream`, `read_timeout` and `connect_timeout` from
[default]/[model.<profile>] into PromptConfig and wire the (connect, read)
timeout into both the streaming and non-streaming chat calls. CLI
--stream/--read-timeout/--connect-timeout still override; the two timeout
flags default to None so a config value can win, with the URL-fetch
fallbacks (3 s/10 s) preserved. Default chat read_timeout is now 600 s.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-09 18:26:33 +02:00
..
conftest.py Initial commit: llamacppctl – llama.cpp Docker server control CLI 2026-07-06 16:36:27 +02:00
test_actions.py test: close coverage gaps + opt-in integration smoke 2026-07-06 17:08:10 +02:00
test_build_archive.py test: cover build_archive and add it to the ruff scope 2026-07-07 11:20:57 +02:00
test_cli.py test: close coverage gaps + opt-in integration smoke 2026-07-06 17:08:10 +02:00
test_config.py feat(chat): make streaming and chat timeouts per-profile configurable 2026-07-09 18:26:33 +02:00
test_docker_ops.py fix(docker): override image healthcheck to the configured port 2026-07-07 09:53:33 +02:00
test_http_ops.py chore(ci): add ruff and mypy, wire them into CI 2026-07-07 10:29:07 +02:00
test_lock_ops.py Initial commit: llamacppctl – llama.cpp Docker server control CLI 2026-07-06 16:36:27 +02:00
test_prompt_files.py Initial commit: llamacppctl – llama.cpp Docker server control CLI 2026-07-06 16:36:27 +02:00
test_prompt_sources.py Initial commit: llamacppctl – llama.cpp Docker server control CLI 2026-07-06 16:36:27 +02:00
test_prompt_urls.py test: close coverage gaps + opt-in integration smoke 2026-07-06 17:08:10 +02:00