API: Add clarification and cleanup autodocs

It's possible to override parts of the example JSON to give proper
examples of values.

Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
kingbri
2023-12-29 10:28:06 -05:00
parent 4136f19058
commit dce8c74edc
3 changed files with 17 additions and 4 deletions

View File

@@ -51,7 +51,14 @@ from logger import init_logger
logger = init_logger(__name__)
app = FastAPI()
app = FastAPI(
title="TabbyAPI",
summary="An OAI compatible exllamav2 API that's both lightweight and fast",
description=(
"This docs page is not meant to send requests! Please use a service "
"like Postman or a frontend UI."
),
)
# Globally scoped variables. Undefined until initalized in main
MODEL_CONTAINER: Optional[ModelContainer] = None