AashitaK commited on
Commit
a4fe64d
·
verified ·
1 Parent(s): be2ce64

Update utils/response_manager.py

Browse files
Files changed (1) hide show
  1. utils/response_manager.py +1 -1
utils/response_manager.py CHANGED
@@ -88,7 +88,7 @@ class ResponseManager:
88
  list: A list of dictionaries representing the conversation, including the generated response.
89
  """
90
  # Prepare the input for the API call
91
- input_data = [{"role": "developer", "content": self.meta_prompt}] if self.previous_response_id is None else []
92
  input_data.append({"role": "user", "content": query})
93
 
94
  # Validate session_id
 
88
  list: A list of dictionaries representing the conversation, including the generated response.
89
  """
90
  # Prepare the input for the API call
91
+ input_data = [{"role": "developer", "content": self.meta_prompt}] if session['previous_response_id'] is None else []
92
  input_data.append({"role": "user", "content": query})
93
 
94
  # Validate session_id