Skip to content

Commit

Permalink
fix crash on ps when multiple models are loaded at same time (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobello authored Aug 11, 2024
1 parent 4976332 commit 8f96569
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
* [Where we are](#where-we-are)
* [Where we're going](#where-were-going)
* [What's new](#whats-new)
* [v0.3.7](#v036)
* [v0.3.6](#v036)
* [v0.3.5](#v035)
* [v0.3.4](#v034)
* [v0.3.3](#v033)
Expand Down Expand Up @@ -324,6 +326,9 @@ if anything remains to be fixed before the commit is allowed.

## What's new

### v0.3.7
* Fix for possible crash when there is more than one model loaded into ollama

### v0.3.6
* Added option to save chat input history and set its length
* Fixed tab switch issue on startup
Expand Down
2 changes: 1 addition & 1 deletion parllama/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
__credits__ = ["Paul Robello"]
__maintainer__ = "Paul Robello"
__email__ = "probello@gmail.com"
__version__ = "0.3.6"
__version__ = "0.3.7"
__licence__ = "MIT"
__application_title__ = "PAR LLAMA"
__application_binary__ = "parllama"
Expand Down
2 changes: 2 additions & 0 deletions parllama/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,8 @@ def output_to_dicts(output: str) -> list[dict[str, Any]]:
for model in reader:
mod = {}
for key, value in model.items():
if not isinstance(key, str):
continue
mod[key.strip().lower()] = value.strip()
ret.append(mod)
return ret
Expand Down

0 comments on commit 8f96569

Please sign in to comment.