Update CHANGELOG.md to include version 0.2.2 and mention the default usage of system role in conv.prepend_system_message.

This commit is contained in:
2024-11-02 11:24:07 -04:00
parent e47ada4598
commit 931285f8ce
2 changed files with 8 additions and 7 deletions
+1
View File
@@ -4,6 +4,7 @@ Release History
## 0.2.2 (2024-11-02)
- `conv.prepend_system_message` now uses system role by default.
- General improvements.
## 0.2.1 (2024-11-01)
+6 -6
View File
@@ -156,20 +156,20 @@ Special thanks to [@jxnl](https://github.com/jxnl) for building [Instructor](htt
SimpleMind also allows for easy conversational flows:
```pycon
>>> conversation = sm.create_conversation(llm_model="gpt-4o-mini", llm_provider="openai")
>>> conv = sm.create_conversation(llm_model="gpt-4o-mini", llm_provider="openai")
>>> # Add a message to the conversation
>>> conversation.add_message("user", "Hi there, how are you?")
>>> conv.add_message("user", "Hi there, how are you?")
>>> conversation.send()
>>> conv.send()
<Message role=assistant text="Hello! I'm just a computer program, so I don't have feelings, but I'm here and ready to help you. How can I assist you today?">
```
To continue the conversation, you can call `conversation.send()` again, which returns the next message in the conversation:
To continue the conversation, you can call `conv.send()` again, which returns the next message in the conversation:
```pycon
>>> conversation.add_message("user", "What is the meaning of life?")
>>> conversation.send()
>>> conv.add_message("user", "What is the meaning of life?")
>>> conv.send()
<Message role=assistant text="The meaning of life is a profound philosophical question that has been explored by cultures, religions, and philosophers for centuries. Different people and belief systems offer varying interpretations:\n\n1. **Religious Perspectives:** Many religions propose that the meaning of life is to fulfill a divine purpose, serve God, or reach an afterlife. For example, Christianity often emphasizes love, faith, and service to God and others as central to lifes meaning.\n\n2. **Philosophical Views:** Philosophers offer diverse answers. Existentialists like Jean-Paul Sartre argue that life has no inherent meaning, and it is up to individuals to create their own purpose. Others, like Aristotle, suggest that achieving eudaimonia (flourishing or happiness) through virtuous living is the key to a meaningful life.\n\n3. **Scientific and Secular Approaches:** Some people find meaning through understanding the natural world, contributing to human knowledge, or through personal accomplishments and happiness. They may view lifes meaning as a product of connection, legacy, or the pursuit of knowledge and creativity.\n\n4. **Personal Perspective:** For many, the meaning of life is deeply personal, involving their relationships, passions, and goals. These individuals define lifes purpose through experiences, connections, and the impact they have on others and the world.\n\nUltimately, the meaning of life is a subjective question, with each person finding their own answers based on their beliefs, experiences, and reflections.">
```