zhaohaipeng 1 deň pred
rodič
commit
6d5b3ba93c
1 zmenil súbory, kde vykonal 9 pridanie a 9 odobranie
  1. 9 9
      tools/api_server.py

+ 9 - 9
tools/api_server.py

@@ -56,18 +56,18 @@ class API(ExceptionHandler):
         )
 
         # OpenAPIの設定
-        self.openapi = OpenAPI(
-            Info(
-                {
-                    "title": "Fish Speech API",
-                    "version": "1.5.0",
-                }
-            ),
-        ).routes
+        # self.openapi = OpenAPI(
+        #     Info(
+        #         {
+        #             "title": "Fish Speech API",
+        #             "version": "1.5.0",
+        #         }
+        #     ),
+        # ).routes
 
         # Initialize the app
         self.app = Kui(
-            routes=self.routes + self.openapi[1:],  # Remove the default route
+            routes=self.routes,
             exception_handlers={
                 HTTPException: self.http_exception_handler,
                 Exception: self.other_exception_handler,