e4e47c46497f99ebd55104f39b7687218f7911bb
Some providers (e.g. Ollama) may return response bytes that aren't valid UTF-8. json.loads() raises UnicodeDecodeError in that case. Add an httpx response event hook that replaces invalid bytes before the SDK parses the response body. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Description
No description provided
Languages
Python
100%