From 3fb633af90e0a2d99768fe3fcd7171ea5a5e5129 Mon Sep 17 00:00:00 2001 From: abccodes Date: Thu, 25 Jun 2026 22:23:01 -0700 Subject: [PATCH] [aidan] fix/openai-passthrough: mount the subapp so cp-openai gpt-5 routes resolve --- backend/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/main.py b/backend/main.py index 470c9ded..9d7edf98 100644 --- a/backend/main.py +++ b/backend/main.py @@ -46,11 +46,12 @@ from backend.apps.subscription.router import subscription from backend.apps.auth.router import auth from backend.apps.web.web import web from backend.apps.agents.proxy.anthropic_proxy import anthropic_proxy +from backend.apps.agents.core.openai_passthrough import openai_passthrough from fastapi.middleware.cors import CORSMiddleware from fastapi import WebSocket, WebSocketDisconnect import json -main_app = MainApp([health, agents, skills, tools_lib, modes, settings, mcp_registry, skill_registry, outputs, output_versions, dashboards, swarm, service, subscription, auth, web, anthropic_proxy]) +main_app = MainApp([health, agents, skills, tools_lib, modes, settings, mcp_registry, skill_registry, outputs, output_versions, dashboards, swarm, service, subscription, auth, web, anthropic_proxy, openai_passthrough]) app = main_app.app # Generate per-install auth token BEFORE we bind the HTTP port. By the