LangChainGo / openai_simple.py
lizhen
fix
b192bce
raw
history blame
226 Bytes
#!/usr/bin/python3
from langchain.llms import OpenAI
import langchain
import os
print(langchain.__version__)
llm = OpenAI(temperature=0.9)
text = "Hi, Could you help me choose a Chinese name? For example"
print(llm(text))