LangChainGo / openai_simple.py
lizhen
LangChain openAI快速接入。
5bd6c7f
raw
history blame
179 Bytes
#!/usr/bin/python3
from langchain.llms import OpenAI
import os
llm = OpenAI(temperature=0.9)
text = "Hi, Could you help me choose a Chinese name? For example"
print(llm(text))