LocalAI/examples/langchain-python/test.py
2023-05-03 17:29:18 +02:00

7 lines
194 B
Python

from langchain.llms import OpenAI
llm = OpenAI(temperature=0.9,model_name="gpt-3.5-turbo")
text = "What would be a good company name for a company that makes colorful socks?"
print(llm(text))