mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-26 17:50:22 +01:00
fixed variable name "context" to "prompt" (#1716)
This commit is contained in:
parent
280c2f285f
commit
f659415170
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user