Spaces:
Sleeping
Sleeping
Update utils/response_manager.py
Browse files
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
|
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
|