Skip to content

v1.0.9

Choose a tag to compare

@stadiello stadiello released this 20 Jan 13:41
· 14 commits to master since this release
f2325d0

Release v1.0.9 - Dependencies Update

For transformers>=4.44,<5.0

Usage Example:

import torch
from transformers import pipeline
import logging
from shortterm_memory.ChatbotMemory import ChatbotMemory

# Initialize Chatbot Memory
chat_memory = ChatbotMemory()

# Example of updating the memory with user input and bot response
user_input = "Hello, how are you?"
bot_response = "I'm fine, thank you! How about you?"
chat_memory.update_memory(user_input, bot_response)

# Retrieve the updated conversation history
history = chat_memory.get_memory()
print(history)

How to Upgrade:

To upgrade to this latest version, run the following command:

pip install --upgrade shortterm-memory

We hope these improvements will enhance your experience with the shortterm-memory package. Please feel free to report any issues or provide feedback to help us continue improving.