mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 16:17:57 +01:00
Fix the API example with streaming #417
This commit is contained in:
parent
c753261338
commit
c79fc69e95
@ -44,14 +44,14 @@ async def run(context):
|
|||||||
case "send_hash":
|
case "send_hash":
|
||||||
await websocket.send(json.dumps({
|
await websocket.send(json.dumps({
|
||||||
"session_hash": session,
|
"session_hash": session,
|
||||||
"fn_index": 7
|
"fn_index": 9
|
||||||
}))
|
}))
|
||||||
case "estimation":
|
case "estimation":
|
||||||
pass
|
pass
|
||||||
case "send_data":
|
case "send_data":
|
||||||
await websocket.send(json.dumps({
|
await websocket.send(json.dumps({
|
||||||
"session_hash": session,
|
"session_hash": session,
|
||||||
"fn_index": 7,
|
"fn_index": 9,
|
||||||
"data": [
|
"data": [
|
||||||
context,
|
context,
|
||||||
params['max_new_tokens'],
|
params['max_new_tokens'],
|
||||||
|
Loading…
Reference in New Issue
Block a user