Your team did an excellent job.
However, when I run the code from README.md, I encountered the following error with json.dumps():
TypeError: Object of type ChatResponse is not JSON serializable
Here’s the relevant snippet from wrapper.py (line 183):
response = self.client.chat(**ollama_kwargs)
logger.debug(
"Received response: %s",
json.dumps(response, indent=2, ensure_ascii=False),
)
If I comment out the logger.debug() line, everything works fine.