You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running into an issue: I installed pair with pip and there appeared to be no problem. I try to launch (exporting the necessary variables) and then get this error, whether I try to open a pair or with a file. Can you please advise?
(pair) antonio @ ~/Documents/endorse $ pair
Traceback (most recent call last):
File "/Users/antonio/anaconda3/envs/pair/bin/pair", line 5, in <module>
from pair_ai.pair import repl
File "/Users/antonio/anaconda3/envs/pair/lib/python3.9/site-packages/pair_ai/pair.py", line 4, in <module>
from chatstack import ChatContext, UserMessage
File "/Users/antonio/anaconda3/envs/pair/lib/python3.9/site-packages/chatstack/__init__.py", line 2, in <module>
from .chatstack import SystemMessage, ContextMessage, UserMessage, ChatRoleMessage, AssistantMessage, ChatContext
File "/Users/antonio/anaconda3/envs/pair/lib/python3.9/site-packages/chatstack/chatstack.py", line 14, in <module>
class ChatRoleMessage(BaseModel):
File "/Users/antonio/anaconda3/envs/pair/lib/python3.9/site-packages/chatstack/chatstack.py", line 23, in ChatRoleMessage
def compute_tokens(cls, values) -> int:
File "/Users/antonio/anaconda3/envs/pair/lib/python3.9/site-packages/pydantic/deprecated/class_validators.py", line 222, in root_validator
return root_validator()(*__args) # type: ignore
File "/Users/antonio/anaconda3/envs/pair/lib/python3.9/site-packages/pydantic/deprecated/class_validators.py", line 228, in root_validator
raise PydanticUserError(
pydantic.errors.PydanticUserError: If you use `@root_validator` with pre=False (the default) you MUST specify `skip_on_failure=True`. Note that `@root_validator` is deprecated and should be replaced with `@model_validator`.
For further information visit https://errors.pydantic.dev/2.0.3/u/root-validator-pre-skip
(pair) antonio @ ~/Documents/endorse $ pair test.py
Traceback (most recent call last):
File "/Users/antonio/anaconda3/envs/pair/bin/pair", line 5, in <module>
from pair_ai.pair import repl
File "/Users/antonio/anaconda3/envs/pair/lib/python3.9/site-packages/pair_ai/pair.py", line 4, in <module>
from chatstack import ChatContext, UserMessage
File "/Users/antonio/anaconda3/envs/pair/lib/python3.9/site-packages/chatstack/__init__.py", line 2, in <module>
from .chatstack import SystemMessage, ContextMessage, UserMessage, ChatRoleMessage, AssistantMessage, ChatContext
File "/Users/antonio/anaconda3/envs/pair/lib/python3.9/site-packages/chatstack/chatstack.py", line 14, in <module>
class ChatRoleMessage(BaseModel):
File "/Users/antonio/anaconda3/envs/pair/lib/python3.9/site-packages/chatstack/chatstack.py", line 23, in ChatRoleMessage
def compute_tokens(cls, values) -> int:
File "/Users/antonio/anaconda3/envs/pair/lib/python3.9/site-packages/pydantic/deprecated/class_validators.py", line 222, in root_validator
return root_validator()(*__args) # type: ignore
File "/Users/antonio/anaconda3/envs/pair/lib/python3.9/site-packages/pydantic/deprecated/class_validators.py", line 228, in root_validator
raise PydanticUserError(
pydantic.errors.PydanticUserError: If you use `@root_validator` with pre=False (the default) you MUST specify `skip_on_failure=True`. Note that `@root_validator` is deprecated and should be replaced with `@model_validator`.
For further information visit https://errors.pydantic.dev/2.0.3/u/root-validator-pre-skip
The text was updated successfully, but these errors were encountered:
I am running into an issue: I installed pair with pip and there appeared to be no problem. I try to launch (exporting the necessary variables) and then get this error, whether I try to open a pair or with a file. Can you please advise?
The text was updated successfully, but these errors were encountered: