mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 10:35:01 +00:00
Return usage in the API responses (#166)
This commit is contained in:
parent
4eae570ef5
commit
c974dad799
6 changed files with 69 additions and 5 deletions
6
examples/langchain-python/test.py
Normal file
6
examples/langchain-python/test.py
Normal file
|
@ -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