mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 12:55:19 +00:00
rename to chat_completions_inlet_handler for clarity
This commit is contained in:
parent
23f1bee7bd
commit
60003c976a
1 changed files with 3 additions and 4 deletions
|
|
@ -437,7 +437,7 @@ async def get_function_call_response(
|
|||
return None, None, False
|
||||
|
||||
|
||||
async def chat_completion_functions_handler(
|
||||
async def chat_completion_inlets_handler(
|
||||
body, model, user, __event_emitter__, __event_call__
|
||||
):
|
||||
skip_files = None
|
||||
|
|
@ -637,14 +637,13 @@ class ChatCompletionMiddleware(BaseHTTPMiddleware):
|
|||
__event_call__ = get_event_call(metadata)
|
||||
|
||||
# Initialize data_items to store additional data to be sent to the client
|
||||
# Initalize contexts and citation
|
||||
data_items = []
|
||||
|
||||
# Initialize context, and citations
|
||||
contexts = []
|
||||
citations = []
|
||||
|
||||
try:
|
||||
body, flags = await chat_completion_functions_handler(
|
||||
body, flags = await chat_completion_inlets_handler(
|
||||
body, model, user, __event_emitter__, __event_call__
|
||||
)
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Reference in a new issue