This repository has been archived on 2024-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
local-llm-server/llm_server/routes/v1/__init__.py

20 lines
361 B
Python
Raw Normal View History

2023-09-17 18:55:36 -06:00
from flask import Blueprint
2023-08-21 21:28:52 -06:00
2023-09-17 18:55:36 -06:00
from ..request_handler import before_request
from ..server_error import handle_server_error
2023-08-21 21:28:52 -06:00
bp = Blueprint('v1', __name__)
@bp.before_request
2023-09-17 18:55:36 -06:00
def before_bp_request():
return before_request()
2023-08-21 21:28:52 -06:00
@bp.errorhandler(500)
def handle_error(e):
return handle_server_error(e)
2023-08-29 17:56:12 -06:00
from . import generate, info, proxy, generate_stream