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
8b3ec242
Commit
8b3ec242
authored
Jun 04, 2025
by
Wade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
idx document
parent
e8b9115a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
55 deletions
+55
-55
swagger.yaml
docs/swagger.yaml
+55
-55
No files found.
docs/swagger.yaml
View file @
8b3ec242
...
@@ -4,61 +4,6 @@ info:
...
@@ -4,61 +4,6 @@ info:
description
:
API for interacting with a chat endpoint powered by Genkit.
description
:
API for interacting with a chat endpoint powered by Genkit.
version
:
0.1.0
version
:
0.1.0
paths
:
paths
:
/chat
:
post
:
summary
:
Send a chat message
description
:
Sends a chat message to the Genkit AI workflow and returns a response.
tags
:
-
Chat
requestBody
:
required
:
true
content
:
application/json
:
schema
:
type
:
object
properties
:
content
:
type
:
string
description
:
The chat message content
example
:
"
What
is
the
capital
of
UK?"
model
:
type
:
string
description
:
The model to use for the chat response
example
:
"
gpt-3.5-turbo"
apiKey
:
type
:
string
description
:
The API key for authentication
example
:
"
sk-1234567890abcdef"
from
:
type
:
string
description
:
The sender of the chat message
example
:
"
Alice"
from_id
:
type
:
string
description
:
The unique identifier for the sender
example
:
"
user123"
to
:
type
:
string
description
:
The recipient of the chat message
example
:
"
Bob"
to_id
:
type
:
string
description
:
The unique identifier for the recipient
example
:
"
user456"
required
:
-
content
responses
:
'
200'
:
description
:
Successful response with the chat answer
content
:
application/json
:
schema
:
type
:
object
properties
:
response
:
type
:
string
description
:
The response from the chat workflow
example
:
"
The
capital
of
the
UK
is
London."
/index/document
:
/index/document
:
post
:
post
:
summary
:
Store Milvus index data
summary
:
Store Milvus index data
...
@@ -151,5 +96,60 @@ paths:
...
@@ -151,5 +96,60 @@ paths:
type
:
integer
type
:
integer
description
:
The ID of the stored record
description
:
The ID of the stored record
example
:
1
example
:
1
/chat
:
post
:
summary
:
Send a chat message
description
:
Sends a chat message to the Genkit AI workflow and returns a response.
tags
:
-
Chat
requestBody
:
required
:
true
content
:
application/json
:
schema
:
type
:
object
properties
:
content
:
type
:
string
description
:
The chat message content
example
:
"
What
is
the
capital
of
UK?"
model
:
type
:
string
description
:
The model to use for the chat response
example
:
"
gpt-3.5-turbo"
apiKey
:
type
:
string
description
:
The API key for authentication
example
:
"
sk-1234567890abcdef"
from
:
type
:
string
description
:
The sender of the chat message
example
:
"
Alice"
from_id
:
type
:
string
description
:
The unique identifier for the sender
example
:
"
user123"
to
:
type
:
string
description
:
The recipient of the chat message
example
:
"
Bob"
to_id
:
type
:
string
description
:
The unique identifier for the recipient
example
:
"
user456"
required
:
-
content
responses
:
'
200'
:
description
:
Successful response with the chat answer
content
:
application/json
:
schema
:
type
:
object
properties
:
response
:
type
:
string
description
:
The response from the chat workflow
example
:
"
The
capital
of
the
UK
is
London."
components
:
components
:
schemas
:
{}
schemas
:
{}
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