Refactor code to add support for generating custom temperature text

This commit is contained in:
2024-10-29 07:11:19 -04:00
parent 6ad5e21d0a
commit 58e3c6a3bd
6 changed files with 54 additions and 20 deletions
+11
View File
@@ -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)