mirror of
https://github.com/open-webui/terminals.git
synced 2026-11-22 21:50:42 -05:00
refac
This commit is contained in:
1 parent
80c6cc8958
commit
71444bf216
1 file changed
+5
-1
@@ -658,7 +658,11 @@ async def _ws_proxy(
|
||||
|
||||
try:
|
||||
async with upstream:
|
||||
await upstream.send(json.dumps({"type": "auth", "token": instance.api_key}))
|
||||
await upstream.send(json.dumps({
|
||||
"type": "auth",
|
||||
"token": instance.api_key,
|
||||
"chat_id": ws.headers.get("x-session-id", ""),
|
||||
}))
|
||||
|
||||
async def _client_to_upstream():
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user