mirror of
https://github.com/kennethreitz/simplemind.git
synced 2026-06-05 22:50:18 +00:00
Refactor code to add support for generating custom temperature text
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
from _context import sm
|
||||
|
||||
text = sm.generate_text(
|
||||
prompt="Write a short summary of 'Pride and Prejudice'.",
|
||||
llm_provider="openai",
|
||||
llm_model="gpt-4o",
|
||||
temperature=0.5,
|
||||
max_tokens=150,
|
||||
)
|
||||
|
||||
print(text)
|
||||
Reference in New Issue
Block a user