add llm config

This commit is contained in:
Chuck1sn
2025-05-24 13:29:09 +08:00
parent 43728ee733
commit c2d5fddcc0
22 changed files with 675 additions and 38 deletions

View File

@@ -44,6 +44,29 @@
}
}
},
"/ai/llm": {
"put": {
"tags": [
"ai-controller"
],
"operationId": "updateLlm",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LlmVm"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/scheduler/trigger/resume": {
"post": {
"tags": [
@@ -1008,6 +1031,44 @@
}
}
}
},
"/ai/llm/page-query": {
"get": {
"tags": [
"ai-controller"
],
"operationId": "pageQueryLlm",
"parameters": [
{
"name": "pageRequestDto",
"in": "query",
"required": true,
"schema": {
"$ref": "#/components/schemas/PageRequestDto"
}
},
{
"name": "llmQueryDto",
"in": "query",
"required": true,
"schema": {
"$ref": "#/components/schemas/LlmQueryDto"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/PageResponseDtoListLlmVm"
}
}
}
}
}
}
}
},
"components": {
@@ -1027,6 +1088,43 @@
}
}
},
"LlmVm": {
"required": [
"apiKey",
"enable",
"id",
"modelName",
"name",
"priority",
"url"
],
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"name": {
"type": "string"
},
"modelName": {
"type": "string"
},
"apiKey": {
"type": "string"
},
"url": {
"type": "string"
},
"enable": {
"type": "boolean"
},
"priority": {
"type": "integer",
"format": "int32"
}
}
},
"JobKeyDto": {
"required": [
"group",
@@ -1684,6 +1782,29 @@
}
}
}
},
"LlmQueryDto": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
}
},
"PageResponseDtoListLlmVm": {
"type": "object",
"properties": {
"total": {
"type": "integer",
"format": "int64"
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/LlmVm"
}
}
}
}
}
}