adaptions to sdk 0.11.0

This commit is contained in:
Believethehype
2024-04-15 11:06:46 +02:00
parent 7f616a136c
commit cb7802c509
7 changed files with 16 additions and 16 deletions

View File

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