Update process_data.py
Browse files- process_data.py +1 -0
process_data.py
CHANGED
|
@@ -323,6 +323,7 @@ def pre_processing(input_data, parameters):
|
|
| 323 |
if parameters["chaining"]:
|
| 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(
|
|
|
|
| 323 |
if parameters["chaining"]:
|
| 324 |
print("Chaining")
|
| 325 |
for text_label, text_body in input_data["input_text_pieces"].items():
|
| 326 |
+
input_data["input_text_pieces"]["pre_processed_pieces"] = {}
|
| 327 |
for parameter_name, parameter_value in parameters.items():
|
| 328 |
if 'pre_prompt' in parameter_name and parameter_value is not None and not isinstance(parameter_value, bool):
|
| 329 |
response = client.chat.completions.create(
|