Last active
March 10, 2023 16:14
-
-
Save HelloElisaRose/ff996b66034ab136f773223c89e44e01 to your computer and use it in GitHub Desktop.
langchain-article-1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from langchain.llms import OpenAI | |
from langchain_prefect.plugins import RecordLLMCalls | |
llm = OpenAI(temperature=0.9) | |
with RecordLLMCalls(): | |
answer: str = llm( | |
"What would be a good company name for " | |
"a company that makes colorful socks?" | |
) | |
print(answer) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment