summary:Reconstruct document with Server-Sent Events
summary:Reconstruct document
description:Reconstructs a document from a base64-encoded file for processing, supporting Server-Sent Events (SSE).
description:Reconstructs a document from a base64-encoded file using the Tencent Cloud LKEAP API. Returns a JSON response containing the task result, including a URL to the reconstructed document when processing is complete.
tags:
tags:
-Split
-Split
requestBody:
requestBody:
...
@@ -15,46 +15,110 @@ paths:
...
@@ -15,46 +15,110 @@ paths:
content:
content:
application/json:
application/json:
schema:
schema:
type:object
properties:
FileType:
type:string
description:The type of the file to be reconstructed
example:"TXT"
FileBase64:
type:string
type:string
description:The base64-encoded content of the file
description:The type of the file to be reconstructed (e.g., "TXT"). Currently supports "TXT" only.
// ReconstructDocumentSSE performs document reconstruction using the Tencent Cloud LKEAP API.
// ReconstructDocumentSSE performs document reconstruction using the Tencent Cloud LKEAP API.
// It takes a text string, encodes it as Base64, and returns the response as a JSON string.
// It takes a text string, encodes it as Base64, and returns the reconstructed content as a slice of ReconstructDocumentSSEResponse structs for events with Progress "100".