mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-09-28 09:57:15 +02:00
allow to set default input option
This commit is contained in:
@@ -46,6 +46,7 @@ class GenericDVM(DVMTaskInterface):
|
|||||||
prompt = tag.as_vec()[1]
|
prompt = tag.as_vec()[1]
|
||||||
|
|
||||||
request_form = {"jobID": event.id().to_hex()}
|
request_form = {"jobID": event.id().to_hex()}
|
||||||
|
if prompt != "":
|
||||||
self.options["input"] = prompt
|
self.options["input"] = prompt
|
||||||
request_form['options'] = json.dumps(self.options)
|
request_form['options'] = json.dumps(self.options)
|
||||||
return request_form
|
return request_form
|
||||||
|
2
setup.py
2
setup.py
@@ -1,6 +1,6 @@
|
|||||||
from setuptools import setup, find_packages
|
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'
|
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')
|
LONG_DESCRIPTION = ('A framework to build and run Nostr NIP90 Data Vending Machines. See the github repository for more information')
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user