Closed cpacker closed 7 months ago
For a temporary fix just add to the top of the /.../lib/python3.11/site-packages/memgpt/local_llm/utils.py
class DotDict(dict):
"""Allow dot access on properties similar to OpenAI response object"""
def __getattr__(self, attr):
return self.get(attr)
def __setattr__(self, key, value):
self[key] = value
# following methods necessary for pickling
def __getstate__(self):
return vars(self)
def __setstate__(self, state):
vars(self).update(state)
Describe the bug
On loads of old agents that used LocalLLMs,
DotDict
is present in the pickle file (even though we deprecatedDotDict
forBox
):Solution: add back
DotDict
toutils.py
for backcompat.