Update process_data.py
Browse files- process_data.py +7 -0
process_data.py
CHANGED
|
@@ -176,6 +176,13 @@ def generate_json_pieces(input_data, parameters):
|
|
| 176 |
try:
|
| 177 |
# Call OpenAI API to generate structured output based on prompt
|
| 178 |
print("Getting all responses in pieces, starting with field response")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 179 |
field_response = client.beta.chat.completions.parse(
|
| 180 |
model=model_version, # Use GPT model that supports structured output
|
| 181 |
messages=[
|
|
|
|
| 176 |
try:
|
| 177 |
# Call OpenAI API to generate structured output based on prompt
|
| 178 |
print("Getting all responses in pieces, starting with field response")
|
| 179 |
+
|
| 180 |
+
print("Field prompt")
|
| 181 |
+
print(field_prompt)
|
| 182 |
+
|
| 183 |
+
print("Field data input")
|
| 184 |
+
print(field_data_input)
|
| 185 |
+
|
| 186 |
field_response = client.beta.chat.completions.parse(
|
| 187 |
model=model_version, # Use GPT model that supports structured output
|
| 188 |
messages=[
|