fix(solver): bugfix SPO Retrieval LLM response parse (#378)

* bugfix official_name node has same prop object

* reformat by black

* adapter spo retrieval llm response
This commit is contained in:
royzhao 2025-02-27 11:28:01 +08:00 committed by GitHub
parent 6a16df3565
commit 5d12979694
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,6 +112,8 @@ class SpoRetrieval(PromptABC):
f"SpoRetrieval {response} mention:{self.template_variables_value.get('mention', '')} "
f"candis:{self.template_variables_value.get('candis', '')}"
)
if isinstance(response, list):
return response
if not isinstance(response, dict):
return []
if "output" in response: