fixed variable name "context" to "prompt" (#1716)

This commit is contained in:
Dhaladom 2023-05-02 05:43:40 +02:00 committed by GitHub
parent 280c2f285f
commit f659415170
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@ URI = f'http://{HOST}/api/v1/generate'
# For reverse-proxied streaming, the remote will likely host with ssl - https://
# URI = 'https://your-uri-here.trycloudflare.com/api/v1/generate'
def run(context):
def run(prompt):
request = {
'prompt': prompt,
'max_new_tokens': 250,