llama.cpp sends the streaming response as text/event-stream WITHOUT a charset; requests then does not decode as UTF-8, so iter_lines(decode_unicode=True) mangled multibyte characters (German Umlaute) into double-encoded garbage (e.g. "schön" -> "schön"). The non-streaming path via resp.json() was fine. Set resp.encoding = "utf-8" before iter_lines. Verified live: streamed bytes for "schön" are now c3 b6 (correct UTF-8), file detected as UTF-8. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| conftest.py | ||
| test_actions.py | ||
| test_cli.py | ||
| test_config.py | ||
| test_docker_ops.py | ||
| test_http_ops.py | ||
| test_lock_ops.py | ||
| test_prompt_files.py | ||
| test_prompt_sources.py | ||
| test_prompt_urls.py | ||