Skip to content

Commit

Permalink
Merge pull request #30 from atomiechen/dev
Browse files Browse the repository at this point in the history
Bump version to 0.8.1
  • Loading branch information
atomiechen authored Jun 10, 2024
2 parents 0a30cd8 + 60aee1f commit ec79112
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
]
Expand Down
1 change: 0 additions & 1 deletion src/handyllm/hprompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/handyllm/run_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ec79112

Please sign in to comment.