From 862a30842c7beaef9b7a82cfff1862e91eef6bb2 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sat, 17 Aug 2024 16:00:18 +0200 Subject: [PATCH] refac: `chat_completion_inlets_handler` -> `chat_completion_filter_functions_handler` --- backend/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/main.py b/backend/main.py index 8ddaffcac..02b75ac71 100644 --- a/backend/main.py +++ b/backend/main.py @@ -318,7 +318,7 @@ def get_tool_call_payload(messages, task_model_id, content): } -async def chat_completion_inlets_handler(body, model, extra_params): +async def chat_completion_filter_functions_handler(body, model, extra_params): skip_files = None filter_ids = get_filter_function_ids(model) @@ -606,7 +606,7 @@ class ChatCompletionMiddleware(BaseHTTPMiddleware): citations = [] try: - body, flags = await chat_completion_inlets_handler( + body, flags = await chat_completion_filter_functions_handler( body, model, extra_params ) except Exception as e: