mirror of
https://github.com/kennethreitz/simplemind.git
synced 2026-06-05 22:50:18 +00:00
Refactor user message in t.py to request a poem about working at dominoes
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
import simplemind as sm
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
conversation = sm.create_conversation(llm_model="grok-beta", llm_provider="xai")
|
||||
|
||||
conversation.add_message(
|
||||
role="user",
|
||||
text="Write a poem about love",
|
||||
text="Write a poem about working at dominoes",
|
||||
)
|
||||
r = conversation.send()
|
||||
|
||||
print(r)
|
||||
print(r.text)
|
||||
|
||||
Reference in New Issue
Block a user