mirror of
https://github.com/open-webui/open-webui
synced 2024-11-24 21:13:59 +00:00
rename to chat_completions_inlet_handler for clarity
This commit is contained in:
parent
23f1bee7bd
commit
60003c976a
@ -437,7 +437,7 @@ async def get_function_call_response(
|
|||||||
return None, None, False
|
return None, None, False
|
||||||
|
|
||||||
|
|
||||||
async def chat_completion_functions_handler(
|
async def chat_completion_inlets_handler(
|
||||||
body, model, user, __event_emitter__, __event_call__
|
body, model, user, __event_emitter__, __event_call__
|
||||||
):
|
):
|
||||||
skip_files = None
|
skip_files = None
|
||||||
@ -637,14 +637,13 @@ class ChatCompletionMiddleware(BaseHTTPMiddleware):
|
|||||||
__event_call__ = get_event_call(metadata)
|
__event_call__ = get_event_call(metadata)
|
||||||
|
|
||||||
# Initialize data_items to store additional data to be sent to the client
|
# Initialize data_items to store additional data to be sent to the client
|
||||||
|
# Initalize contexts and citation
|
||||||
data_items = []
|
data_items = []
|
||||||
|
|
||||||
# Initialize context, and citations
|
|
||||||
contexts = []
|
contexts = []
|
||||||
citations = []
|
citations = []
|
||||||
|
|
||||||
try:
|
try:
|
||||||
body, flags = await chat_completion_functions_handler(
|
body, flags = await chat_completion_inlets_handler(
|
||||||
body, model, user, __event_emitter__, __event_call__
|
body, model, user, __event_emitter__, __event_call__
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user