diff --git a/README.md b/README.md index 0f27f75..c5f1270 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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 diff --git a/parllama/__init__.py b/parllama/__init__.py index 02a330b..3007c51 100644 --- a/parllama/__init__.py +++ b/parllama/__init__.py @@ -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" diff --git a/parllama/utils.py b/parllama/utils.py index c514577..cb11546 100644 --- a/parllama/utils.py +++ b/parllama/utils.py @@ -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