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
No known key found for this signature in database
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:// # For reverse-proxied streaming, the remote will likely host with ssl - https://
# URI = 'https://your-uri-here.trycloudflare.com/api/v1/generate' # URI = 'https://your-uri-here.trycloudflare.com/api/v1/generate'
def run(context): def run(prompt):
request = { request = {
'prompt': prompt, 'prompt': prompt,
'max_new_tokens': 250, 'max_new_tokens': 250,