updating JS sdk to 0.12.0, fixes summarization

This commit is contained in:
Believethehype
2024-03-28 11:48:52 +01:00
parent ea5b0cddce
commit 97857cd928
10 changed files with 27 additions and 28 deletions

View File

@@ -68,7 +68,7 @@ class SummarizationUnleashedChat(DVMTaskInterface):
print("Event not found")
raise Exception
if evt.kind() == EventDefinitions.KIND_NIP90_RESULT_CONTENT_DISCOVERY:
if evt.kind().as_u64() == EventDefinitions.KIND_NIP90_RESULT_CONTENT_DISCOVERY:
result_list = json.loads(evt.content())
prompt = ""
for tag in result_list: