pair icon indicating copy to clipboard operation
pair copied to clipboard

ChatContext got unexpected argument

Open daviddavini opened this issue 1 year ago • 3 comments

This looks really awesome! However, it's not working for me. After a fresh install with pip install pair_ai, I get this error:

$ pair                                    
Traceback (most recent call last):
  File "/Users/daviddavini/Code/patchgpt/venv/bin/pair", line 5, in <module>
    from pair_ai.pair import repl
  File "/Users/daviddavini/Code/patchgpt/venv/lib/python3.11/site-packages/pair_ai/pair.py", line 29, in <module>
    chat_ctx = ChatContext(min_response_tokens=800,  # leave room for at least this much
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ChatContext.__init__() got an unexpected keyword argument 'max_context_assistant_messages'

daviddavini avatar Apr 04 '23 16:04 daviddavini

sorry about that. there was some recent change to the chatstack dependency which didn't seem to propagate here. I need to track that down

wskish avatar Apr 05 '23 06:04 wskish

works with the latest commit. clone into a local directory and run

pip install .

mikethm avatar Apr 06 '23 05:04 mikethm

That's what I ended up doing, it works great! Thanks

daviddavini avatar Apr 08 '23 14:04 daviddavini