pazukdev commited on
Commit
5c302c5
·
verified ·
1 Parent(s): 706e0ec

Import LangChainLLMs

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,6 +10,7 @@ from langchain.prompts import ChatPromptTemplate, MessagesPlaceholder
10
  from langchain_core.messages import AIMessage, HumanMessage
11
  from langchain.tools import StructuredTool
12
  from gptcache import cache
 
13
 
14
  OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
15
 
@@ -124,8 +125,7 @@ def predict(message, history):
124
  return gpt_output
125
 
126
  examples = [
127
- "Who are you?",
128
- "What is your purpose?",
129
  "List all employees",
130
  "I need 1 employee in given time slot: start time is March 11 2024 2 pm, duration 1 hour"
131
  ]
 
10
  from langchain_core.messages import AIMessage, HumanMessage
11
  from langchain.tools import StructuredTool
12
  from gptcache import cache
13
+ from gptcache.adapter.langchain_models import LangChainLLMs
14
 
15
  OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
16
 
 
125
  return gpt_output
126
 
127
  examples = [
128
+ "Tell me please about yourself: who are you, what is your purpose, what tools do you have?",
 
129
  "List all employees",
130
  "I need 1 employee in given time slot: start time is March 11 2024 2 pm, duration 1 hour"
131
  ]