mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-22 03:24:59 +00:00
Dockerized Langchain / PY example (#175)
This commit is contained in:
parent
e59bad89e7
commit
07c3aa1869
10 changed files with 137 additions and 10 deletions
|
@ -0,0 +1,6 @@
|
|||
|
||||
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))
|
Loading…
Add table
Add a link
Reference in a new issue