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

feat: protect chat attributes and improve error handling #262

Merged
merged 5 commits into from
Jan 16, 2025

Conversation

slobentanzer
Copy link
Contributor

  • Add property decorators to protect chat and ca_chat attributes in Conversation ABC
  • Make user parameter optional in all conversation classes
  • Add clear error messages when chat attributes accessed before initialization
  • Reset chat attributes on authentication failure
  • Add tests for new chat attribute behavior

- Add property decorators to protect chat and ca_chat attributes in Conversation ABC
- Make user parameter optional in all conversation classes
- Add clear error messages when chat attributes accessed before initialization
- Reset chat attributes on authentication failure
- Add tests for new chat attribute behavior
Copy link
Contributor

@mengerj mengerj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I didn't run any tests as I have some other Issues regarding installing the project with Poetry. I see that you changed the version, which was a problem for me before. But now poetry doesn't find my python executable and so far I couldn't fix it.

@slobentanzer
Copy link
Contributor Author

@mengerj I changed the Poetry version in the CI, as they apparently did a major bump and that's not compatible. The project still is based on Poetry >1 <2.

Have you tried poetry env use to tell Poetry where to look?

@slobentanzer slobentanzer merged commit 44a4f83 into main Jan 16, 2025
1 check passed
@slobentanzer slobentanzer deleted the make-user-optional branch January 16, 2025 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants