Skip to content

Commit 7adbb75

Browse files
fix
1 parent 93bd094 commit 7adbb75

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

apps/application/flow/step_node/image_understand_step_node/impl/base_image_understand_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def generate_history_human_message(self, chat_record):
256256
*[{'type': 'image_url',
257257
'image_url': {'url': f'data:image/{base64_image[1]};base64,{base64_image[0]}'}} for
258258
base64_image in image_base64_list],
259-
*[{'type': 'image_url', 'image_url': url} for url in url_list]
259+
*[{'type': 'image_url', 'image_url': {'url': url}} for url in url_list]
260260
])
261261
return HumanMessage(content=chat_record.problem_text)
262262

apps/application/flow/step_node/parameter_extraction_node/impl/base_parameter_extraction_node.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ def generate_content(input_variable, variable_list):
6262
return value
6363

6464

65-
def json_loads(response, expected_fields):
65+
def json_loads(response, variable_list):
6666
if not response or not isinstance(response, str):
67-
return {field: None for field in expected_fields}
67+
return generate_example(variable_list)
6868

6969
cleaned = response.strip()
7070

@@ -79,7 +79,7 @@ def json_loads(response, expected_fields):
7979
return result
8080
except:
8181
continue
82-
return generate_example(expected_fields)
82+
return generate_example(variable_list)
8383

8484

8585
class BaseParameterExtractionNode(IParameterExtractionNode):

0 commit comments

Comments
 (0)