This commit is contained in:
2026-07-23 01:15:04 +02:00
parent 582e37d176
commit b534a496fd
79 changed files with 4086 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
# Gateway Service (stub)
+24
View File
@@ -0,0 +1,24 @@
import devplacepy_services.base.bootstrap
from devplacepy.routers import openai_gateway
from devplacepy.services.openai_gateway import GatewayService as OpenAIGatewayService
from devplacepy_services.base.service import BaseMicroservice, build_standard_app
class GatewayService(BaseMicroservice):
name = "gateway"
title = "Gateway"
default_port = 10620
workers = "auto"
stateful = False
depends_on = ["database"]
managed_services = [OpenAIGatewayService()]
use_background = True
run_supervisor = True
def build_app(self):
return build_standard_app(self, routers=[(openai_gateway.router, "/openai")])
_service = GatewayService()
app = _service.build_app()