abdibrahem commited on
Commit
b011019
·
1 Parent(s): b8f3012

Add some updates

Browse files
Files changed (1) hide show
  1. main.py +4 -0
main.py CHANGED
@@ -559,6 +559,9 @@ class HealthcareChatbot:
559
  endpoint_url = data.get('endpoint')
560
  endpoint_method = data.get('method')
561
  endpoint_params = data.get('params', {}).copy()
 
 
 
562
 
563
  # Inject patient_id if needed
564
  if 'patient_id' in endpoint_params:
@@ -625,6 +628,7 @@ class HealthcareChatbot:
625
  else:
626
  raise ValueError("Could not parse routing response")
627
 
 
628
  # Make backend API call
629
  api_response = self.backend_call(parsed_route)
630
 
 
559
  endpoint_url = data.get('endpoint')
560
  endpoint_method = data.get('method')
561
  endpoint_params = data.get('params', {}).copy()
562
+
563
+ print('Sending the api request')
564
+ print(f"🔗 Making API call to {endpoint_method} {self.BASE_URL + endpoint_url} with params: {endpoint_params}")
565
 
566
  # Inject patient_id if needed
567
  if 'patient_id' in endpoint_params:
 
628
  else:
629
  raise ValueError("Could not parse routing response")
630
 
631
+ print(f"🔍 Parsed route: {parsed_route}")
632
  # Make backend API call
633
  api_response = self.backend_call(parsed_route)
634