Fix issue with loading advanced prompt configs metadata
This commit is contained in:
1 parent
97d8c05d75
commit
7eb1226a6d
1 file changed
-6
@@ -124,12 +124,6 @@ class AdvancedPromptEmbeds:
|
|||||||
else:
|
else:
|
||||||
raise ValueError("Must provide a path")
|
raise ValueError("Must provide a path")
|
||||||
|
|
||||||
metadata = loaded.metadata()
|
|
||||||
if metadata.get("class_name") != cls.__name__:
|
|
||||||
raise ValueError(
|
|
||||||
f"Metadata class_name {metadata.get('class_name')!r} does not match expected {cls.__name__!r}"
|
|
||||||
)
|
|
||||||
|
|
||||||
data = {}
|
data = {}
|
||||||
for key in loaded.keys():
|
for key in loaded.keys():
|
||||||
data[key] = loaded[key]
|
data[key] = loaded[key]
|
||||||
|
|||||||
Reference in new issue
Block a user