Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
agentchat
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李伟@五瓣科技
agentchat
Commits
b3490554
Commit
b3490554
authored
Jun 06, 2025
by
Wade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add split swagger
parent
bd287386
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
2 deletions
+53
-2
swagger.yaml
docs/swagger.yaml
+53
-2
No files found.
docs/swagger.yaml
View file @
b3490554
openapi
:
3.0.4
info
:
title
:
Genkit Chat API
description
:
API for interacting with chat
and index
ing endpoints powered by Genkit.
description
:
API for interacting with chat
, indexing, and document splitt
ing endpoints powered by Genkit.
version
:
0.1.0
paths
:
/split/document
:
post
:
summary
:
Reconstruct document with Server-Sent Events
description
:
Reconstructs a document from a base64-encoded file for processing, supporting Server-Sent Events (SSE).
tags
:
-
Split
requestBody
:
required
:
true
content
:
application/json
:
schema
:
type
:
object
properties
:
FileType
:
type
:
string
description
:
The type of the file to be reconstructed
example
:
"
TXT"
FileBase64
:
type
:
string
description
:
The base64-encoded content of the file
example
:
"
data:application/octet-stream;base64,4oCc6L+Z5bCx6LGh6Iqx5LiA5qC344CC5aaC5p6c5L2g54ix5LiK5LqG5LiA5py155Sf6ZW/IArlnKjkuIDpopfmmJ/mmJ/kuIrnmoToirHvvIzpgqPkuYjlpJzpl7TvvIwgCuS9oOeci+edgOWkqeepuuWwseaEn+WIsOeUnOicnOaEiSAK5b+r44CC5omA5pyJ55qE5pif5pif5LiK6YO9CuWlveixoeW8gOedgOiKseOAguKAnQ=="
required
:
-
FileType
-
FileBase64
responses
:
'
200'
:
description
:
Successful reconstruction of the document with SSE
content
:
text/event-stream
:
schema
:
type
:
string
description
:
Server-Sent Events stream containing the reconstructed document data
examples
:
success
:
value
:
|
data: {"status": "success", "document": "reconstructed content"}
event: message
id: 1
data: {"status": "complete"}
'
400'
:
description
:
Invalid input or malformed request
content
:
application/json
:
schema
:
$ref
:
'
#/components/schemas/Response'
examples
:
error
:
value
:
data
:
"
"
code
:
400
msg
:
"
Invalid
file
type
or
base64
content"
/index/document
:
post
:
summary
:
Store Milvus index data
...
...
@@ -174,4 +225,4 @@ components:
required
:
-
data
-
code
-
msg
\ No newline at end of file
-
msg
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment