Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ def generate_content(input_variable, variable_list):
return value


def json_loads(response, expected_fields):
def json_loads(response, variable_list):
if not response or not isinstance(response, str):
return {field: None for field in expected_fields}
return generate_example(variable_list)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个方法的第二个参数,实际入参是 variable_list 而不是 expected_fields


cleaned = response.strip()

Expand All @@ -79,7 +79,7 @@ def json_loads(response, expected_fields):
return result
except:
continue
return generate_example(expected_fields)
return generate_example(variable_list)


class BaseParameterExtractionNode(IParameterExtractionNode):
Expand Down
Loading