From f659415170770cd79a82d90c11115ed6e848642b Mon Sep 17 00:00:00 2001 From: Dhaladom Date: Tue, 2 May 2023 05:43:40 +0200 Subject: [PATCH] fixed variable name "context" to "prompt" (#1716) --- api-example.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-example.py b/api-example.py index 4bf4f0d6..d6053fda 100644 --- a/api-example.py +++ b/api-example.py @@ -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,