allow to set default input option

This commit is contained in:
Believethehype 2024-08-28 16:47:07 +02:00
parent e51e6506b3
commit 1e94ff6059
2 changed files with 3 additions and 2 deletions

View File

@ -46,7 +46,8 @@ class GenericDVM(DVMTaskInterface):
prompt = tag.as_vec()[1]
request_form = {"jobID": event.id().to_hex()}
self.options["input"] = prompt
if prompt != "":
self.options["input"] = prompt
request_form['options'] = json.dumps(self.options)
return request_form

View File

@ -1,6 +1,6 @@
from setuptools import setup, find_packages
VERSION = '0.8.8'
VERSION = '0.8.9'
DESCRIPTION = 'A framework to build and run Nostr NIP90 Data Vending Machines'
LONG_DESCRIPTION = ('A framework to build and run Nostr NIP90 Data Vending Machines. See the github repository for more information')