mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-01 11:02:37 +00:00
Merge branch 'master' into bagatur/locals_in_config
This commit is contained in:
@@ -13,7 +13,7 @@ class FileCallbackHandler(BaseCallbackHandler):
|
||||
self, filename: str, mode: str = "a", color: Optional[str] = None
|
||||
) -> None:
|
||||
"""Initialize callback handler."""
|
||||
self.file = cast(TextIO, open(filename, mode))
|
||||
self.file = cast(TextIO, open(filename, mode, encoding="utf-8"))
|
||||
self.color = color
|
||||
|
||||
def __del__(self) -> None:
|
||||
|
Reference in New Issue
Block a user