diff --git a/README.md b/README.md index efe0d95..f976f59 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ Here are some examples of how to use Simplemind: Generate a response from an AI model based on a given prompt: ```pycon ->>> sm.generate_text(prompt="What is the meaning of life?", llm_provider="openai", llm_model="gpt-4o") +>>> sm.generate_text(prompt="What is the meaning of life?") "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 life’s 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 life's 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 life's 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." ``` @@ -122,12 +122,7 @@ class Poem(BaseModel): ``` ```pycon ->>> sm.generate_data( - "Write a poem about love", - llm_model="gpt-4o-mini", - llm_provider="openai", - response_model=Poem, - ) +>>> sm.generate_data("Write a poem about love", response_model=Poem) title='Eternal Embrace' content='In the quiet hours of the night,\nWhen stars whisper secrets bright,\nTwo hearts beat in a gentle rhyme,\nDancing through the sands of time.\n\nWith every glance, a spark ignites,\nA flame that warms the coldest nights,\nIn laughter shared and whispers sweet,\nLove paints the world, a masterpiece.\n\nThrough stormy skies and sunlit days,\nIn myriad forms, it finds its ways,\nA tender touch, a knowing sigh,\nIn love’s embrace, we learn to fly.\n\nAs seasons change and moments fade,\nIn the tapestry of dreams we’ve laid,\nLove’s threads endure, forever bind,\nA timeless bond, two souls aligned.\n\nSo here’s to love, both bright and true,\nA gift we give, anew, anew,\nIn every heartbeat, every prayer,\nA story written in the air.' ``` @@ -150,8 +145,6 @@ class Recipe(BaseModel): recipe = sm.generate_data( "Write a recipe for chocolate chip cookies", - llm_model="gpt-4o-mini", - llm_provider="openai", response_model=Recipe, ) ``` @@ -163,7 +156,7 @@ Special thanks to [@jxnl](https://github.com/jxnl) for building [Instructor](htt SimpleMind also allows for easy conversational flows: ```pycon ->>> conv = sm.create_conversation(llm_model="gpt-4o-mini", llm_provider="openai") +>>> conv = sm.create_conversation() >>> # Add a message to the conversation >>> conv.add_message("user", "Hi there, how are you?") @@ -222,7 +215,7 @@ class SimpleMemoryPlugin(sm.BasePlugin): conversation.add_message(role="system", text=m) -conversation = sm.create_conversation(llm_model="grok-beta", llm_provider="xai") +conversation = sm.create_conversation() conversation.add_plugin(SimpleMemoryPlugin())