Commit 8b3ec242 authored by Wade's avatar Wade

idx document

parent e8b9115a
...@@ -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: {}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment