srinuksv commited on
Commit
c735279
1 Parent(s): 30adbdc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -160,6 +160,8 @@ async def load_chat(request: Request, id: str):
160
  @app.post("/hist/")
161
  async def save_chat_history(history: dict):
162
  # Check if 'history' is a key in the incoming dictionary
 
 
163
  if 'history' in history and isinstance(history['history'], list):
164
  print("Received history:", history['history']) # Debugging line
165
  cleaned_summary = summarize_conversation(llm_client, history['history'])
 
160
  @app.post("/hist/")
161
  async def save_chat_history(history: dict):
162
  # Check if 'history' is a key in the incoming dictionary
163
+ user_id = history.get('userId')
164
+ print(user_id)
165
  if 'history' in history and isinstance(history['history'], list):
166
  print("Received history:", history['history']) # Debugging line
167
  cleaned_summary = summarize_conversation(llm_client, history['history'])