UPDATE: Chatbot module
All checks were successful
Build and Release / release (push) Successful in 2m13s

This commit is contained in:
2026-05-05 00:09:55 +07:00
parent 1998cf2ec0
commit a8f0597e59
33 changed files with 1042 additions and 65 deletions

View File

@@ -392,6 +392,69 @@
}
}
},
"/chatbot/chat": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "Ask a history question based on project context or global knowledge using RAG",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Chatbot"
],
"summary": "Ask the AI chatbot",
"parameters": [
{
"description": "Chatbot query",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/history-api_internal_dtos_request.ChatbotDto"
}
}
],
"responses": {
"200": {
"description": "Successful response with AI answer",
"schema": {
"allOf": [
{
"$ref": "#/definitions/history-api_internal_dtos_response.CommonResponse"
},
{
"type": "object",
"properties": {
"data": {
"type": "string"
}
}
}
]
}
},
"400": {
"description": "Invalid request",
"schema": {
"$ref": "#/definitions/history-api_internal_dtos_response.CommonResponse"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/history-api_internal_dtos_response.CommonResponse"
}
}
}
}
},
"/entities": {
"get": {
"description": "Search entities with cursor pagination",
@@ -3575,6 +3638,20 @@
}
}
},
"history-api_internal_dtos_request.ChatbotDto": {
"type": "object",
"required": [
"question"
],
"properties": {
"project_id": {
"type": "string"
},
"question": {
"type": "string"
}
}
},
"history-api_internal_dtos_request.CommitSnapshot": {
"type": "object",
"properties": {
@@ -3807,8 +3884,11 @@
1
]
},
"type_id": {
"type": "string"
"time_end": {
"type": "number"
},
"time_start": {
"type": "number"
}
}
},
@@ -3823,7 +3903,6 @@
"type": "string"
},
"is_deleted": {
"description": "Legacy / Compatibility",
"type": "integer",
"enum": [
0,
@@ -4260,10 +4339,7 @@
],
"properties": {
"doc": {
"type": "array",
"items": {
"type": "integer"
}
"type": "string"
},
"id": {
"type": "string"