diff --git a/sgpt/cache.py b/sgpt/cache.py index 5d63db8..c176fe2 100644 --- a/sgpt/cache.py +++ b/sgpt/cache.py @@ -38,7 +38,7 @@ class Cache: result += i yield i if "@FunctionCall" not in result: - file.write_text(result) + file.write_text(result, encoding="utf-8") self._delete_oldest_files(self.length) # type: ignore return wrapper