pvanand commited on
Commit
865db2f
·
verified ·
1 Parent(s): cd5ac8a

Update actions/actions.py

Browse files
Files changed (1) hide show
  1. actions/actions.py +1 -1
actions/actions.py CHANGED
@@ -78,7 +78,7 @@ def generate_openai_response(user_queries, model_engine="gpt-3.5-turbo", max_tok
78
  context = "".join([f"#{str(i)}" for i in results])[:2014] # Trim the context to 2014 characters - Modify as necessory
79
 
80
  messages=f"You are a helpful assistant tasked to answer user query :{user_queries[-1]} using the following context: {context}"
81
- ]
82
  max_user_queries_to_include = min(1,len(user_queries))
83
  # The latest query is at the end of the list
84
 
 
78
  context = "".join([f"#{str(i)}" for i in results])[:2014] # Trim the context to 2014 characters - Modify as necessory
79
 
80
  messages=f"You are a helpful assistant tasked to answer user query :{user_queries[-1]} using the following context: {context}"
81
+
82
  max_user_queries_to_include = min(1,len(user_queries))
83
  # The latest query is at the end of the list
84