mirror of
https://github.com/open-webui/open-webui
synced 2024-11-24 21:13:59 +00:00
undo frontend change
This commit is contained in:
parent
2e3146263c
commit
454f59d59a
@ -526,6 +526,8 @@ class ChatCompletionMiddleware(BaseHTTPMiddleware):
|
|||||||
"message_id": body.pop("id", None),
|
"message_id": body.pop("id", None),
|
||||||
"session_id": body.pop("session_id", None),
|
"session_id": body.pop("session_id", None),
|
||||||
"valves": body.pop("valves", None),
|
"valves": body.pop("valves", None),
|
||||||
|
"tool_ids": body.pop("tool_ids", None),
|
||||||
|
"files": body.pop("files", None),
|
||||||
}
|
}
|
||||||
|
|
||||||
__user__ = {
|
__user__ = {
|
||||||
|
@ -844,10 +844,8 @@
|
|||||||
},
|
},
|
||||||
format: $settings.requestFormat ?? undefined,
|
format: $settings.requestFormat ?? undefined,
|
||||||
keep_alive: $settings.keepAlive ?? undefined,
|
keep_alive: $settings.keepAlive ?? undefined,
|
||||||
metadata: {
|
tool_ids: selectedToolIds.length > 0 ? selectedToolIds : undefined,
|
||||||
tool_ids: selectedToolIds.length > 0 ? selectedToolIds : undefined,
|
files: files.length > 0 ? files : undefined,
|
||||||
files: files.length > 0 ? files : undefined
|
|
||||||
},
|
|
||||||
session_id: $socket?.id,
|
session_id: $socket?.id,
|
||||||
chat_id: $chatId,
|
chat_id: $chatId,
|
||||||
id: responseMessageId
|
id: responseMessageId
|
||||||
@ -1138,10 +1136,8 @@
|
|||||||
frequency_penalty:
|
frequency_penalty:
|
||||||
params?.frequency_penalty ?? $settings?.params?.frequency_penalty ?? undefined,
|
params?.frequency_penalty ?? $settings?.params?.frequency_penalty ?? undefined,
|
||||||
max_tokens: params?.max_tokens ?? $settings?.params?.max_tokens ?? undefined,
|
max_tokens: params?.max_tokens ?? $settings?.params?.max_tokens ?? undefined,
|
||||||
metadata: {
|
tool_ids: selectedToolIds.length > 0 ? selectedToolIds : undefined,
|
||||||
tool_ids: selectedToolIds.length > 0 ? selectedToolIds : undefined,
|
files: files.length > 0 ? files : undefined,
|
||||||
files: files.length > 0 ? files : undefined
|
|
||||||
},
|
|
||||||
session_id: $socket?.id,
|
session_id: $socket?.id,
|
||||||
chat_id: $chatId,
|
chat_id: $chatId,
|
||||||
id: responseMessageId
|
id: responseMessageId
|
||||||
|
Loading…
Reference in New Issue
Block a user