diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ee1eb3..030a103 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to HandyLLM will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). +## [0.8.1] - 2024-06-10 + +### Fixed + +- fix the debug print issue when outputting to a file in stream mode + + ## [0.8.0] - 2024-06-09 ### Added diff --git a/pyproject.toml b/pyproject.toml index 2da6b72..69e5299 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "HandyLLM" -version = "0.8.0" +version = "0.8.1" authors = [ { name="Atomie CHEN", email="atomic_cwh@163.com" }, ] diff --git a/src/handyllm/hprompt.py b/src/handyllm/hprompt.py index a7694ce..ca42e35 100644 --- a/src/handyllm/hprompt.py +++ b/src/handyllm/hprompt.py @@ -432,7 +432,6 @@ def _parse_var_map(self, run_config: RunConfig): @staticmethod @contextmanager def open_output_path_fd(run_config: RunConfig): - print(f"#DEBUG {run_config.output_path_buffering=}") if run_config.output_path_buffering is None or run_config.output_path_buffering == -1: # default buffering with open(run_config.output_path, 'w', encoding='utf-8') as fout: diff --git a/src/handyllm/run_config.py b/src/handyllm/run_config.py index 7a0bdda..ba5ad24 100644 --- a/src/handyllm/run_config.py +++ b/src/handyllm/run_config.py @@ -55,7 +55,7 @@ class RunConfig: on_chunk: Optional[OnChunkType] = None # output the response to a file output_path: Optional[PathType] = None - # buffering for opening the output file: -1 for system default, + # buffering for opening the output file in stream mode: -1 for system default, # 0 for unbuffered, 1 for line buffered, any other positive value for buffer size output_path_buffering: Optional[int] = None # output the response to a file descriptor