mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
refac
This commit is contained in:
parent
6aebfd88e9
commit
f578d8d67e
1 changed files with 2 additions and 3 deletions
|
|
@ -30,7 +30,7 @@ from open_webui.socket.main import (
|
|||
sio,
|
||||
)
|
||||
from open_webui.utils.filter import (
|
||||
get_sorted_filter_ids,
|
||||
get_filter_functions,
|
||||
process_filter_functions,
|
||||
)
|
||||
from open_webui.utils.models import check_model_access, get_all_models
|
||||
|
|
@ -362,8 +362,7 @@ async def chat_completed(request: Request, form_data: dict, user: Any):
|
|||
}
|
||||
|
||||
try:
|
||||
filter_ids = await get_sorted_filter_ids(request, model, metadata.get('filter_ids', []))
|
||||
filter_functions = await Functions.get_functions_by_ids(filter_ids)
|
||||
filter_functions = await get_filter_functions(request, model, metadata.get('filter_ids', []))
|
||||
|
||||
result, _ = await process_filter_functions(
|
||||
request=request,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue