diff --git a/gpt4all-bindings/python/gpt4all/gpt4all.py b/gpt4all-bindings/python/gpt4all/gpt4all.py index 5410228e..91a1169c 100644 --- a/gpt4all-bindings/python/gpt4all/gpt4all.py +++ b/gpt4all-bindings/python/gpt4all/gpt4all.py @@ -237,13 +237,13 @@ class GPT4All: ''' # Code to acquire resource, e.g.: self._is_chat_session_activated = True - self._current_chat_session = [] + self.current_chat_session = [] try: yield self finally: # Code to release resource, e.g.: self._is_chat_session_activated = False - self._current_chat_session = [] + self.current_chat_session = [] def _format_chat_prompt_template( self, messages: List[Dict], default_prompt_header=True, default_prompt_footer=True diff --git a/gpt4all-bindings/python/setup.py b/gpt4all-bindings/python/setup.py index c3d59809..8a832607 100644 --- a/gpt4all-bindings/python/setup.py +++ b/gpt4all-bindings/python/setup.py @@ -61,7 +61,7 @@ copy_prebuilt_C_lib(SRC_CLIB_DIRECtORY, setup( name=package_name, - version="1.0.0", + version="1.0.1", description="Python bindings for GPT4All", author="Richard Guo", author_email="richard@nomic.ai",