rosemariafontana commited on
Commit
f503c5d
·
verified ·
1 Parent(s): 1bed5fa

Update process_data.py

Browse files
Files changed (1) hide show
  1. process_data.py +1 -1
process_data.py CHANGED
@@ -324,7 +324,7 @@ def pre_processing(input_data, parameters):
324
  print("Chaining")
325
  for text_label, text_body in input_data["input_text_pieces"].items():
326
  for parameter_name, parameter_value in parameters.items():
327
- if 'pre_prompt' in parameter_name and parameter_value is not None:
328
  response = client.chat.completions.create(
329
  model=parameters["model_version"],
330
  messages=[
 
324
  print("Chaining")
325
  for text_label, text_body in input_data["input_text_pieces"].items():
326
  for parameter_name, parameter_value in parameters.items():
327
+ if 'pre_prompt' in parameter_name and parameter_value is not None and not isinstance(parameter_value, bool):
328
  response = client.chat.completions.create(
329
  model=parameters["model_version"],
330
  messages=[