API: Move OAI to APIRouter

This makes the API more modular for other API implementations in the
future.

Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
kingbri 2024-04-06 01:24:54 -04:00
parent 8bdc19124f
commit 5bb4995a7c
3 changed files with 74 additions and 64 deletions

View file

@ -15,7 +15,7 @@ from common.logger import setup_logger
from common.networking import is_port_in_use
from common.signals import signal_handler
from common.utils import unwrap
from endpoints.OAI.app import start_api
from endpoints.server import start_api
async def entrypoint(args: Optional[dict] = None):