Skip to content

Instantly share code, notes, and snippets.

@HelloElisaRose
Last active March 10, 2023 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HelloElisaRose/ff996b66034ab136f773223c89e44e01 to your computer and use it in GitHub Desktop.
Save HelloElisaRose/ff996b66034ab136f773223c89e44e01 to your computer and use it in GitHub Desktop.
langchain-article-1
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