jdesiree commited on
Commit
dcb1c37
·
verified ·
1 Parent(s): ac56944

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -251,7 +251,7 @@ def generate_response_with_langchain(message, max_retries=3):
251
  else:
252
  return f"I apologize, but I encountered an error while processing your message: {str(e)}"
253
 
254
- def chat_response(message, history):
255
  """Process chat message and return response."""
256
  try:
257
  # Track metrics with timing context
@@ -272,7 +272,7 @@ def chat_response(message, history):
272
  logger.error(f"Error in chat_response: {e}")
273
  return f"I apologize, but I encountered an error while processing your message: {str(e)}"
274
 
275
- def respond_with_enhanced_streaming(message, history):
276
  """Enhanced streaming response function."""
277
  try:
278
  response = chat_response(message, history)
 
251
  else:
252
  return f"I apologize, but I encountered an error while processing your message: {str(e)}"
253
 
254
+ def chat_response(message, history=None):
255
  """Process chat message and return response."""
256
  try:
257
  # Track metrics with timing context
 
272
  logger.error(f"Error in chat_response: {e}")
273
  return f"I apologize, but I encountered an error while processing your message: {str(e)}"
274
 
275
+ def respond_with_enhanced_streaming(message, history=None):
276
  """Enhanced streaming response function."""
277
  try:
278
  response = chat_response(message, history)