Common: Migrate request utils to networking

Helps organize the project better. Utils is meant to be for simple
functions like unwrap.

Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
kingbri
2024-03-21 23:21:57 -04:00
parent 2961c5f3f9
commit 6dfcbbd813
8 changed files with 111 additions and 115 deletions

View File

@@ -18,17 +18,13 @@ from common.concurrency import (
generate_with_semaphore,
)
from common.logger import UVICORN_LOG_CONFIG
from common.networking import handle_request_error, run_with_request_disconnect
from common.signals import uvicorn_signal_handler
from common.templating import (
get_all_templates,
get_template_from_file,
)
from common.utils import (
coalesce,
handle_request_error,
run_with_request_disconnect,
unwrap,
)
from common.utils import coalesce, unwrap
from endpoints.OAI.types.auth import AuthPermissionResponse
from endpoints.OAI.types.completion import CompletionRequest
from endpoints.OAI.types.chat_completion import ChatCompletionRequest