From 1fef96bd41e671a0289d6786b9c8394639e634be Mon Sep 17 00:00:00 2001 From: Twilight Date: Tue, 24 Sep 2024 16:19:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/swagger.yaml | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/api/swagger.yaml b/api/swagger.yaml index e19f701..526a97a 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -20,6 +20,8 @@ definitions: type: string prompt: type: string + public: + type: boolean temperature: type: number updated_at: @@ -382,7 +384,6 @@ definitions: assistant_id: type: integer message: - maxLength: 255 type: string role: enum: @@ -1124,6 +1125,33 @@ paths: summary: 绑定 Tool tags: - assistant + /api/v1/assistants/public: + get: + consumes: + - application/json + produces: + - application/json + responses: + "200": + description: OK + schema: + allOf: + - $ref: '#/definitions/schema.ResponseBody' + - properties: + data: + items: + $ref: '#/definitions/entity.Assistant' + type: array + type: object + "400": + description: Bad Request + schema: + $ref: '#/definitions/schema.ResponseBody' + security: + - ApiKeyAuth: [] + summary: 获取公开的助理列表 + tags: + - assistant /api/v1/chat_public: get: consumes: