From a1c8e718f3c70761bd420760d2341ea98e94c8e0 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 28 Oct 2024 19:01:18 -0400 Subject: [PATCH] Refactor code structure and imports in README.md --- README.md | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 6aa8736..bf37745 100644 --- a/README.md +++ b/README.md @@ -61,16 +61,13 @@ title='Eternal Embrace' content='In the quiet hours of the night,\nWhen stars wh SimpleMind also allows for easy conversational flows: -```python -conversation = 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?") -``` - ```pycon ->>> reply = conversation.send() ->>> print(reply) +>>> conversation = 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?") + +>>> conversation.send() ```