diff --git a/Easydict/Swift/Feature/HTTPServer/Vapor/routes.swift b/Easydict/Swift/Feature/HTTPServer/Vapor/routes.swift index 8cc8787c0..377761a03 100644 --- a/Easydict/Swift/Feature/HTTPServer/Vapor/routes.swift +++ b/Easydict/Swift/Feature/HTTPServer/Vapor/routes.swift @@ -61,8 +61,7 @@ func routes(_ app: Application) throws { return response } - #if DEBUG - // Currently, streamTranslate only supports base OpenAI services for test. + // Currently, streamTranslate only supports base OpenAI services. app.post("streamTranslate") { req async throws -> Response in let request = try req.content.decode(TranslationRequest.self) let serviceType = ServiceType(rawValue: request.serviceType) @@ -106,7 +105,6 @@ func routes(_ app: Application) throws { }) ) } - #endif /// OCR image data up to 10MB. https://docs.vapor.codes/basics/routing/ app.on(.POST, "ocr", body: .collect(maxSize: "10mb")) { req async throws -> OCRResponse in