Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"AttributeError: can't set attribute..." #423

Closed
zy1260957619 opened this issue Aug 27, 2024 · 1 comment · Fixed by #422
Closed

"AttributeError: can't set attribute..." #423

zy1260957619 opened this issue Aug 27, 2024 · 1 comment · Fixed by #422

Comments

@zy1260957619
Copy link

response.text = response_copy.text

When dealing with TagNotFoundError, an error message "AttributeError: can't set attribute..." will be reported. Because response.text is' read-only '. 'response._text 'can be used instead when' response.text 'is assigned.

I found this issue while running 'werewolf. py' and LLMs can not provide the correct answer format. And it is just a suggestion for this code.

@DavdGao
Copy link
Collaborator

DavdGao commented Aug 27, 2024

Thanks for your suggestion. We will fix this error in #422 , where we add @text.setter function to support attribute setting in model response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants