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

error when editing #201

Closed
kokofixcomputers opened this issue Apr 24, 2024 · 2 comments · Fixed by #202
Closed

error when editing #201

kokofixcomputers opened this issue Apr 24, 2024 · 2 comments · Fixed by #202
Labels
bug bug!

Comments

@kokofixcomputers
Copy link
Contributor

Describe the bug
When i edit a message through the huggingface website and try to send a message it produces:
Traceback (most recent call last):
File "/Users/kokofixcomputers/Git/snakybot/main.py", line 78, in
chatbot.change_conversation(ai_instance)
File "/Users/kokofixcomputers/Library/Python/3.11/lib/python/site-packages/hugchat/hugchat.py", line 333, in change_conversation
self.get_conversation_info(local_conversation)
File "/Users/kokofixcomputers/Library/Python/3.11/lib/python/site-packages/hugchat/hugchat.py", line 608, in get_conversation_info
created_at=datetime.datetime.strptime(data[_node_meta["createdAt"]][1], "%Y-%m-%dT%H:%M:%S.%fZ").timestamp(),
~~~~~~~~~~^^^^^^^^^^^^^
KeyError: 'createdAt'

i used query_result = chatbot.chat(text) to send message. it also have the same problem when switching the conversation to a conversation that has messages edited and regenerated

To Reproduce
How can we reproduce this bug via code? If possible, please provide the portion of your code showcasing this bug.

Expected behavior

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
What Operating System are you using? MacOS
What Python version are you using? Python 3.11.3
What version of hugchat are you using? 0.4.2

@Soulter
Copy link
Owner

Soulter commented Apr 24, 2024

fixed, thanks for your feedback

@kokofixcomputers
Copy link
Contributor Author

fixed, thanks for your feedback

thanks!

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

Successfully merging a pull request may close this issue.

2 participants