mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-03-16 06:33:43 +08:00
add llm config
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user