From 3c1f9c7265c4ce779c6326c393336603898b8fce Mon Sep 17 00:00:00 2001 From: Twilight Date: Sun, 1 Sep 2024 00:29:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/swagger.yaml | 456 +++++++++-------- src/api/api.ts | 863 +++++++++++++++++++------------- src/pages/chats/[id]/index.vue | 12 +- src/pages/public_chat/index.vue | 24 +- yarn.lock | 429 +++++++++++----- 5 files changed, 1079 insertions(+), 705 deletions(-) diff --git a/api/swagger.yaml b/api/swagger.yaml index b45d1ea..2a7bd01 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -1,5 +1,5 @@ definitions: - rag-new_internal_entity.Assistant: + entity.Assistant: properties: created_at: type: string @@ -8,7 +8,8 @@ definitions: disable_default_prompt: type: boolean id: - type: integer + example: "0" + type: string name: type: string prompt: @@ -18,50 +19,59 @@ definitions: user_id: type: integer type: object - rag-new_internal_entity.AssistantShare: + entity.AssistantShare: properties: + assistant: + $ref: '#/definitions/entity.Assistant' assistant_id: type: integer created_at: type: string id: - type: integer + example: "0" + type: string token: type: string updated_at: type: string type: object - rag-new_internal_entity.AssistantTool: - properties: - assistant_id: - type: integer - created_at: - type: string - id: - type: integer - tool_id: - type: integer - updated_at: - type: string - type: object - rag-new_internal_entity.AssistantToolType: + entity.AssistantTool: properties: assistant: - $ref: '#/definitions/rag-new_internal_entity.Assistant' + $ref: '#/definitions/entity.Assistant' assistant_id: type: integer created_at: type: string id: - type: integer + example: "0" + type: string tool: - $ref: '#/definitions/rag-new_internal_entity.Tool' + $ref: '#/definitions/entity.Tool' tool_id: type: integer updated_at: type: string type: object - rag-new_internal_entity.Chat: + entity.AssistantToolType: + properties: + assistant: + $ref: '#/definitions/entity.Assistant' + assistant_id: + type: integer + created_at: + type: string + id: + example: "0" + type: string + tool: + $ref: '#/definitions/entity.Tool' + tool_id: + type: integer + updated_at: + type: string + type: object + entity.Chat: properties: assistant_id: type: integer @@ -72,7 +82,8 @@ definitions: guest_id: type: string id: - type: integer + example: "0" + type: string name: type: string owner: @@ -80,9 +91,10 @@ definitions: updated_at: type: string user_id: + description: Assistant Assistant `json:"assistant"` type: integer type: object - rag-new_internal_entity.ChatMessage: + entity.ChatMessage: properties: assistant_id: type: integer @@ -92,10 +104,15 @@ definitions: type: string created_at: type: string + file: + $ref: '#/definitions/entity.File' + file_id: + type: integer hidden: type: boolean id: - type: integer + example: "0" + type: string prompt_tokens: type: integer role: @@ -105,20 +122,46 @@ definitions: updated_at: type: string type: object - rag-new_internal_entity.Tool: + entity.File: + properties: + created_at: + type: string + expired_at: + description: |- + TODO: 移除 file 的到期时间,如果当 file 没有任何引用的时候再删除 + 因为有外键,所以直接删除是删不掉的,必须删除消息 + type: string + file_hash: + type: string + id: + example: "0" + type: string + mime_type: + type: string + path: + type: string + updated_at: + type: string + url: + type: string + url_hash: + type: string + type: object + entity.Tool: properties: api_key: type: string created_at: type: string data: - $ref: '#/definitions/rag-new_internal_schema.ToolDiscoveryOutput' + $ref: '#/definitions/schema.ToolDiscoveryOutput' description: type: string discovery_url: type: string id: - type: integer + example: "0" + type: string name: type: string updated_at: @@ -126,7 +169,7 @@ definitions: user_id: type: integer type: object - rag-new_internal_schema.AddPublicChatMessageRequest: + schema.AddPublicChatMessageRequest: properties: assistant_token: type: string @@ -148,7 +191,7 @@ definitions: - message - role type: object - rag-new_internal_schema.AssistantCreateRequest: + schema.AssistantCreateRequest: properties: description: maxLength: 255 @@ -168,7 +211,7 @@ definitions: - description - name type: object - rag-new_internal_schema.AssistantUpdateRequest: + schema.AssistantUpdateRequest: properties: description: maxLength: 255 @@ -185,10 +228,12 @@ definitions: maxLength: 512 type: string type: object - rag-new_internal_schema.ChatCreateRequest: + schema.ChatCreateRequest: properties: assistant_id: type: integer + expired_at: + $ref: '#/definitions/schema.CustomTime' name: maxLength: 30 type: string @@ -196,7 +241,7 @@ definitions: - assistant_id - name type: object - rag-new_internal_schema.ChatMessageAddRequest: + schema.ChatMessageAddRequest: properties: message: maxLength: 255 @@ -214,21 +259,21 @@ definitions: - message - role type: object - rag-new_internal_schema.ChatMessageResponse: + schema.ChatMessageResponse: properties: stream: type: boolean stream_id: type: string type: object - rag-new_internal_schema.ChatPublicListRequest: + schema.ChatPublicListRequest: properties: guest_id: type: string required: - guest_id type: object - rag-new_internal_schema.ChatPublicRequest: + schema.ChatPublicRequest: properties: assistant_token: type: string @@ -242,7 +287,7 @@ definitions: - guest_id - name type: object - rag-new_internal_schema.CurrentUserResponse: + schema.CurrentUserResponse: properties: ip: type: string @@ -255,20 +300,25 @@ definitions: valid: type: boolean type: object - rag-new_internal_schema.FunctionsInput: + schema.CustomTime: + properties: + time.Time: + type: string + type: object + schema.FunctionsInput: properties: description: type: string name: type: string parameters: - $ref: '#/definitions/rag-new_internal_schema.ToolDiscoveryOutputFunctionParameters' + $ref: '#/definitions/schema.ToolDiscoveryOutputFunctionParameters' required: - description - name - parameters type: object - rag-new_internal_schema.GetPublicChatMessageRequest: + schema.GetPublicChatMessageRequest: properties: assistant_token: type: string @@ -278,7 +328,7 @@ definitions: - assistant_token - guest_id type: object - rag-new_internal_schema.OpenAIChatCompletionRequest: + schema.OpenAIChatCompletionRequest: properties: max_tokens: description: Optional @@ -286,7 +336,7 @@ definitions: messages: description: Required items: - $ref: '#/definitions/rag-new_internal_schema.OpenAIChatCompletionRequestMessage' + $ref: '#/definitions/schema.OpenAIChatCompletionRequestMessage' type: array model: description: Required @@ -304,20 +354,21 @@ definitions: description: Optional type: number type: object - rag-new_internal_schema.OpenAIChatCompletionRequestMessage: + schema.OpenAIChatCompletionRequestMessage: properties: content: description: Required - type: string + image_url: + $ref: '#/definitions/schema.OpenAIImageUrl' role: description: Required type: string type: object - rag-new_internal_schema.OpenAIChatCompletionResponse: + schema.OpenAIChatCompletionResponse: properties: choices: items: - $ref: '#/definitions/rag-new_internal_schema.OpenAIChatCompletionResponseChoice' + $ref: '#/definitions/schema.OpenAIChatCompletionResponseChoice' type: array created: type: integer @@ -328,16 +379,23 @@ definitions: object: type: string usage: - $ref: '#/definitions/rag-new_internal_schema.TokenUsage' + $ref: '#/definitions/schema.TokenUsage' type: object - rag-new_internal_schema.OpenAIChatCompletionResponseChoice: + schema.OpenAIChatCompletionResponseChoice: properties: index: type: integer message: - $ref: '#/definitions/rag-new_internal_schema.OpenAIChatCompletionRequestMessage' + $ref: '#/definitions/schema.OpenAIChatCompletionRequestMessage' type: object - rag-new_internal_schema.ResponseBody: + schema.OpenAIImageUrl: + properties: + detail: + type: string + url: + type: string + type: object + schema.ResponseBody: properties: data: {} error: @@ -347,7 +405,7 @@ definitions: success: type: boolean type: object - rag-new_internal_schema.TokenUsage: + schema.TokenUsage: properties: completion_tokens: type: integer @@ -356,7 +414,7 @@ definitions: total_tokens: type: integer type: object - rag-new_internal_schema.ToolCreateRequest: + schema.ToolCreateRequest: properties: api_key: maxLength: 255 @@ -375,7 +433,7 @@ definitions: - name - url type: object - rag-new_internal_schema.ToolDiscoveryInput: + schema.ToolDiscoveryInput: properties: callback_url: type: string @@ -383,7 +441,7 @@ definitions: type: string functions: items: - $ref: '#/definitions/rag-new_internal_schema.FunctionsInput' + $ref: '#/definitions/schema.FunctionsInput' type: array homepage_url: type: string @@ -393,7 +451,7 @@ definitions: - description - name type: object - rag-new_internal_schema.ToolDiscoveryOutput: + schema.ToolDiscoveryOutput: properties: callback_url: type: string @@ -401,23 +459,23 @@ definitions: type: string function: items: - $ref: '#/definitions/rag-new_internal_schema.ToolDiscoveryOutputFunctions' + $ref: '#/definitions/schema.ToolDiscoveryOutputFunctions' type: array homepage_url: type: string name: type: string type: object - rag-new_internal_schema.ToolDiscoveryOutputFunction: + schema.ToolDiscoveryOutputFunction: properties: description: type: string name: type: string parameters: - $ref: '#/definitions/rag-new_internal_schema.ToolDiscoveryOutputFunctionParameters' + $ref: '#/definitions/schema.ToolDiscoveryOutputFunctionParameters' type: object - rag-new_internal_schema.ToolDiscoveryOutputFunctionParameters: + schema.ToolDiscoveryOutputFunctionParameters: properties: properties: {} required: @@ -431,11 +489,11 @@ definitions: - required - type type: object - rag-new_internal_schema.ToolDiscoveryOutputFunctions: + schema.ToolDiscoveryOutputFunctions: properties: functions: items: - $ref: '#/definitions/rag-new_internal_schema.ToolDiscoveryOutputFunction' + $ref: '#/definitions/schema.ToolDiscoveryOutputFunction' type: array type: type: string @@ -461,22 +519,22 @@ paths: name: chat required: true schema: - $ref: '#/definitions/rag-new_internal_schema.OpenAIChatCompletionRequest' + $ref: '#/definitions/schema.OpenAIChatCompletionRequest' produces: - application/json responses: "200": description: OK schema: - $ref: '#/definitions/rag-new_internal_schema.OpenAIChatCompletionResponse' + $ref: '#/definitions/schema.OpenAIChatCompletionResponse' "400": description: Bad Request schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "500": description: Internal Server Error schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' security: - ApiKeyAuth: [] summary: OpenAI Chat Completion @@ -493,17 +551,17 @@ paths: description: OK schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: items: - $ref: '#/definitions/rag-new_internal_entity.Assistant' + $ref: '#/definitions/entity.Assistant' type: array type: object "400": description: Bad Request schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' security: - ApiKeyAuth: [] summary: 获取 Assistant 列表 @@ -518,7 +576,7 @@ paths: name: assistant required: true schema: - $ref: '#/definitions/rag-new_internal_schema.AssistantCreateRequest' + $ref: '#/definitions/schema.AssistantCreateRequest' produces: - application/json responses: @@ -526,15 +584,15 @@ paths: description: OK schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: - $ref: '#/definitions/rag-new_internal_entity.Assistant' + $ref: '#/definitions/entity.Assistant' type: object "400": description: Bad Request schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' security: - ApiKeyAuth: [] summary: 创建 Assistant @@ -558,11 +616,11 @@ paths: "404": description: Not Found schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "500": description: Internal Server Error schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' security: - ApiKeyAuth: [] summary: 删除 Assistant @@ -584,15 +642,15 @@ paths: description: OK schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: - $ref: '#/definitions/rag-new_internal_entity.Assistant' + $ref: '#/definitions/entity.Assistant' type: object "400": description: Bad Request schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' security: - ApiKeyAuth: [] summary: 获取指定的 Assistant @@ -612,7 +670,7 @@ paths: name: assistantUpdateRequest required: true schema: - $ref: '#/definitions/rag-new_internal_schema.AssistantUpdateRequest' + $ref: '#/definitions/schema.AssistantUpdateRequest' produces: - application/json responses: @@ -620,15 +678,15 @@ paths: description: OK schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: - $ref: '#/definitions/rag-new_internal_entity.Assistant' + $ref: '#/definitions/entity.Assistant' type: object "400": description: Bad Request schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' security: - ApiKeyAuth: [] summary: 更新 Assistant @@ -651,17 +709,17 @@ paths: description: OK schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: items: - $ref: '#/definitions/rag-new_internal_entity.AssistantShare' + $ref: '#/definitions/entity.AssistantShare' type: array type: object "500": description: Internal Server Error schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' security: - ApiKeyAuth: [] summary: 获取 Assistant 共享列表 @@ -683,15 +741,15 @@ paths: description: OK schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: - $ref: '#/definitions/rag-new_internal_entity.AssistantShare' + $ref: '#/definitions/entity.AssistantShare' type: object "500": description: Internal Server Error schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' security: - ApiKeyAuth: [] summary: 创建 Assistant 共享 @@ -717,11 +775,11 @@ paths: "200": description: OK schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "500": description: Internal Server Error schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' security: - ApiKeyAuth: [] summary: 删除 Assistant 共享 @@ -744,17 +802,17 @@ paths: description: OK schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: items: - $ref: '#/definitions/rag-new_internal_entity.AssistantToolType' + $ref: '#/definitions/entity.AssistantToolType' type: array type: object "500": description: Internal Server Error schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' security: - ApiKeyAuth: [] summary: 获取 Assistant 所绑定的 Tool @@ -782,15 +840,15 @@ paths: description: OK schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: - $ref: '#/definitions/rag-new_internal_entity.AssistantTool' + $ref: '#/definitions/entity.AssistantTool' type: object "500": description: Internal Server Error schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' security: - ApiKeyAuth: [] summary: 解绑 Tool @@ -817,15 +875,15 @@ paths: description: OK schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: - $ref: '#/definitions/rag-new_internal_entity.AssistantTool' + $ref: '#/definitions/entity.AssistantTool' type: object "500": description: Internal Server Error schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' security: - ApiKeyAuth: [] summary: 绑定 Tool @@ -841,7 +899,7 @@ paths: name: schema.ChatPublicListRequest required: true schema: - $ref: '#/definitions/rag-new_internal_schema.ChatPublicListRequest' + $ref: '#/definitions/schema.ChatPublicListRequest' produces: - application/json responses: @@ -849,17 +907,17 @@ paths: description: OK schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: items: - $ref: '#/definitions/rag-new_internal_entity.Chat' + $ref: '#/definitions/entity.Chat' type: array type: object "400": description: Bad Request schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' summary: 获取公开对话 tags: - chat_public @@ -872,7 +930,7 @@ paths: name: schema.ChatPublicRequest required: true schema: - $ref: '#/definitions/rag-new_internal_schema.ChatPublicRequest' + $ref: '#/definitions/schema.ChatPublicRequest' produces: - application/json responses: @@ -880,15 +938,15 @@ paths: description: OK schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: - $ref: '#/definitions/rag-new_internal_entity.Chat' + $ref: '#/definitions/entity.Chat' type: object "400": description: Bad Request schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' summary: 通过 API 创建一个公开的对话记录 tags: - chat_public @@ -906,7 +964,7 @@ paths: name: schema.GetPublicChatMessageRequest required: true schema: - $ref: '#/definitions/rag-new_internal_schema.GetPublicChatMessageRequest' + $ref: '#/definitions/schema.GetPublicChatMessageRequest' produces: - application/json responses: @@ -915,15 +973,15 @@ paths: "400": description: Bad Request schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "404": description: Not Found schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "500": description: Internal Server Error schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' summary: 清空公开对话的聊天记录 tags: - chat_public @@ -945,10 +1003,13 @@ paths: name: guest_id required: true type: string + - in: formData + name: url + required: true + type: string - description: 图片 in: formData name: image - required: true type: file produces: - application/json @@ -957,32 +1018,32 @@ paths: description: OK schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: - $ref: '#/definitions/rag-new_internal_schema.ChatMessageResponse' + $ref: '#/definitions/schema.ChatMessageResponse' type: object "400": description: Bad Request schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "404": description: Not Found schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "409": description: Conflict schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: - $ref: '#/definitions/rag-new_internal_schema.ChatMessageResponse' + $ref: '#/definitions/schema.ChatMessageResponse' type: object "500": description: Internal Server Error schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' summary: 添加图片 tags: - chat_public @@ -1010,17 +1071,17 @@ paths: description: OK schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: items: - $ref: '#/definitions/rag-new_internal_entity.ChatMessage' + $ref: '#/definitions/entity.ChatMessage' type: array type: object "400": description: Bad Request schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' summary: 获取公开对话的聊天记录 tags: - chat_public @@ -1037,7 +1098,7 @@ paths: name: schema.AddPublicChatMessageRequest required: true schema: - $ref: '#/definitions/rag-new_internal_schema.AddPublicChatMessageRequest' + $ref: '#/definitions/schema.AddPublicChatMessageRequest' produces: - application/json responses: @@ -1045,32 +1106,32 @@ paths: description: OK schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: - $ref: '#/definitions/rag-new_internal_schema.ChatMessageResponse' + $ref: '#/definitions/schema.ChatMessageResponse' type: object "400": description: Bad Request schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "404": description: Not Found schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "409": description: Conflict schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: - $ref: '#/definitions/rag-new_internal_schema.ChatMessageResponse' + $ref: '#/definitions/schema.ChatMessageResponse' type: object "500": description: Internal Server Error schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' summary: 增加公开对话的聊天记录 tags: - chat_public @@ -1091,17 +1152,17 @@ paths: description: OK schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: items: - $ref: '#/definitions/rag-new_internal_entity.Chat' + $ref: '#/definitions/entity.Chat' type: array type: object "400": description: Bad Request schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' security: - ApiKeyAuth: [] summary: 获取所有 Chat @@ -1117,7 +1178,7 @@ paths: name: chat required: true schema: - $ref: '#/definitions/rag-new_internal_schema.ChatCreateRequest' + $ref: '#/definitions/schema.ChatCreateRequest' produces: - application/json responses: @@ -1125,19 +1186,19 @@ paths: description: OK schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: - $ref: '#/definitions/rag-new_internal_entity.Chat' + $ref: '#/definitions/entity.Chat' type: object "400": description: Bad Request schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "500": description: Internal Server Error schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' security: - ApiKeyAuth: [] summary: Create Chat @@ -1160,19 +1221,19 @@ paths: "200": description: OK schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "400": description: Bad Request schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "404": description: Not Found schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "500": description: Internal Server Error schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' security: - ApiKeyAuth: [] summary: Delete Chat @@ -1196,19 +1257,19 @@ paths: "400": description: Bad Request schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "404": description: Not Found schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "409": description: Conflict schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "500": description: Internal Server Error schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' security: - ApiKeyAuth: [] summary: 清空聊天记录 @@ -1224,10 +1285,13 @@ paths: name: id required: true type: integer + - in: formData + name: url + required: true + type: string - description: 图片 in: formData name: image - required: true type: file produces: - application/json @@ -1236,32 +1300,32 @@ paths: description: OK schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: - $ref: '#/definitions/rag-new_internal_schema.ChatMessageResponse' + $ref: '#/definitions/schema.ChatMessageResponse' type: object "400": description: Bad Request schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "404": description: Not Found schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "409": description: Conflict schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: - $ref: '#/definitions/rag-new_internal_schema.ChatMessageResponse' + $ref: '#/definitions/schema.ChatMessageResponse' type: object "500": description: Internal Server Error schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' security: - ApiKeyAuth: [] summary: 添加图片 @@ -1284,25 +1348,25 @@ paths: description: OK schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: items: - $ref: '#/definitions/rag-new_internal_entity.ChatMessage' + $ref: '#/definitions/entity.ChatMessage' type: array type: object "400": description: Bad Request schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "404": description: Not Found schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "500": description: Internal Server Error schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' security: - ApiKeyAuth: [] summary: 查看聊天记录 @@ -1322,7 +1386,7 @@ paths: name: message required: true schema: - $ref: '#/definitions/rag-new_internal_schema.ChatMessageAddRequest' + $ref: '#/definitions/schema.ChatMessageAddRequest' produces: - application/json responses: @@ -1330,32 +1394,32 @@ paths: description: OK schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: - $ref: '#/definitions/rag-new_internal_schema.ChatMessageResponse' + $ref: '#/definitions/schema.ChatMessageResponse' type: object "400": description: Bad Request schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "404": description: Not Found schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "409": description: Conflict schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: - $ref: '#/definitions/rag-new_internal_schema.ChatMessageResponse' + $ref: '#/definitions/schema.ChatMessageResponse' type: object "500": description: Internal Server Error schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' security: - ApiKeyAuth: [] summary: 添加聊天记录 @@ -1393,15 +1457,15 @@ paths: description: OK schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: - $ref: '#/definitions/rag-new_internal_schema.CurrentUserResponse' + $ref: '#/definitions/schema.CurrentUserResponse' type: object "400": description: Bad Request schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' security: - ApiKeyAuth: [] summary: Greet @@ -1430,32 +1494,32 @@ paths: description: OK schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: - $ref: '#/definitions/rag-new_internal_schema.ChatMessageResponse' + $ref: '#/definitions/schema.ChatMessageResponse' type: object "400": description: Bad Request schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "404": description: Not Found schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "409": description: Conflict schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: - $ref: '#/definitions/rag-new_internal_schema.ChatMessageResponse' + $ref: '#/definitions/schema.ChatMessageResponse' type: object "500": description: Internal Server Error schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' security: - none: [] summary: 流式传输聊天内容 @@ -1473,17 +1537,17 @@ paths: description: OK schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: items: - $ref: '#/definitions/rag-new_internal_entity.Tool' + $ref: '#/definitions/entity.Tool' type: array type: object "400": description: Bad Request schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' security: - ApiKeyAuth: [] summary: List Tool @@ -1499,7 +1563,7 @@ paths: name: tool required: true schema: - $ref: '#/definitions/rag-new_internal_schema.ToolCreateRequest' + $ref: '#/definitions/schema.ToolCreateRequest' produces: - application/json responses: @@ -1507,15 +1571,15 @@ paths: description: OK schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: - $ref: '#/definitions/rag-new_internal_entity.Tool' + $ref: '#/definitions/entity.Tool' type: object "400": description: Bad Request schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' security: - ApiKeyAuth: [] summary: Create Tool @@ -1540,11 +1604,11 @@ paths: "400": description: Bad Request schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "404": description: Not Found schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' security: - ApiKeyAuth: [] summary: DeleteTool @@ -1567,19 +1631,19 @@ paths: description: OK schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: - $ref: '#/definitions/rag-new_internal_entity.Tool' + $ref: '#/definitions/entity.Tool' type: object "400": description: Bad Request schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "404": description: Not Found schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' security: - ApiKeyAuth: [] summary: Get Tool @@ -1603,19 +1667,19 @@ paths: description: OK schema: allOf: - - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + - $ref: '#/definitions/schema.ResponseBody' - properties: data: - $ref: '#/definitions/rag-new_internal_entity.Tool' + $ref: '#/definitions/entity.Tool' type: object "400": description: Bad Request schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "404": description: Not Found schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' security: - ApiKeyAuth: [] summary: 更新 Tool 的数据 @@ -1632,18 +1696,18 @@ paths: name: toolDiscoveryInput required: true schema: - $ref: '#/definitions/rag-new_internal_schema.ToolDiscoveryInput' + $ref: '#/definitions/schema.ToolDiscoveryInput' produces: - application/json responses: "200": description: OK schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' "400": description: Bad Request schema: - $ref: '#/definitions/rag-new_internal_schema.ResponseBody' + $ref: '#/definitions/schema.ResponseBody' security: - ApiKeyAuth: [] summary: 校验 Discovery 语法 diff --git a/src/api/api.ts b/src/api/api.ts index c1d322d..f28bd53 100644 --- a/src/api/api.ts +++ b/src/api/api.ts @@ -31,10 +31,10 @@ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerM export interface ApiV1AssistantsGet200Response { /** * - * @type {Array} + * @type {Array} * @memberof ApiV1AssistantsGet200Response */ - 'data'?: Array; + 'data'?: Array; /** * * @type {string} @@ -62,10 +62,10 @@ export interface ApiV1AssistantsGet200Response { export interface ApiV1AssistantsIdSharesGet200Response { /** * - * @type {Array} + * @type {Array} * @memberof ApiV1AssistantsIdSharesGet200Response */ - 'data'?: Array; + 'data'?: Array; /** * * @type {string} @@ -93,10 +93,10 @@ export interface ApiV1AssistantsIdSharesGet200Response { export interface ApiV1AssistantsIdSharesPost200Response { /** * - * @type {RagNewInternalEntityAssistantShare} + * @type {EntityAssistantShare} * @memberof ApiV1AssistantsIdSharesPost200Response */ - 'data'?: RagNewInternalEntityAssistantShare; + 'data'?: EntityAssistantShare; /** * * @type {string} @@ -124,10 +124,10 @@ export interface ApiV1AssistantsIdSharesPost200Response { export interface ApiV1AssistantsIdToolsGet200Response { /** * - * @type {Array} + * @type {Array} * @memberof ApiV1AssistantsIdToolsGet200Response */ - 'data'?: Array; + 'data'?: Array; /** * * @type {string} @@ -155,10 +155,10 @@ export interface ApiV1AssistantsIdToolsGet200Response { export interface ApiV1AssistantsIdToolsToolIdPost200Response { /** * - * @type {RagNewInternalEntityAssistantTool} + * @type {EntityAssistantTool} * @memberof ApiV1AssistantsIdToolsToolIdPost200Response */ - 'data'?: RagNewInternalEntityAssistantTool; + 'data'?: EntityAssistantTool; /** * * @type {string} @@ -186,10 +186,10 @@ export interface ApiV1AssistantsIdToolsToolIdPost200Response { export interface ApiV1AssistantsPost200Response { /** * - * @type {RagNewInternalEntityAssistant} + * @type {EntityAssistant} * @memberof ApiV1AssistantsPost200Response */ - 'data'?: RagNewInternalEntityAssistant; + 'data'?: EntityAssistant; /** * * @type {string} @@ -217,10 +217,10 @@ export interface ApiV1AssistantsPost200Response { export interface ApiV1ChatPublicChatIdImagesPost200Response { /** * - * @type {RagNewInternalSchemaChatMessageResponse} + * @type {SchemaChatMessageResponse} * @memberof ApiV1ChatPublicChatIdImagesPost200Response */ - 'data'?: RagNewInternalSchemaChatMessageResponse; + 'data'?: SchemaChatMessageResponse; /** * * @type {string} @@ -258,12 +258,18 @@ export interface ApiV1ChatPublicChatIdImagesPostRequest { * @memberof ApiV1ChatPublicChatIdImagesPostRequest */ 'guest_id': string; + /** + * + * @type {string} + * @memberof ApiV1ChatPublicChatIdImagesPostRequest + */ + 'url': string; /** * 图片 * @type {File} * @memberof ApiV1ChatPublicChatIdImagesPostRequest */ - 'image': File; + 'image'?: File; } /** * @@ -273,10 +279,10 @@ export interface ApiV1ChatPublicChatIdImagesPostRequest { export interface ApiV1ChatPublicChatIdMessagesGet200Response { /** * - * @type {Array} + * @type {Array} * @memberof ApiV1ChatPublicChatIdMessagesGet200Response */ - 'data'?: Array; + 'data'?: Array; /** * * @type {string} @@ -304,10 +310,10 @@ export interface ApiV1ChatPublicChatIdMessagesGet200Response { export interface ApiV1ChatPublicGet200Response { /** * - * @type {Array} + * @type {Array} * @memberof ApiV1ChatPublicGet200Response */ - 'data'?: Array; + 'data'?: Array; /** * * @type {string} @@ -335,10 +341,10 @@ export interface ApiV1ChatPublicGet200Response { export interface ApiV1ChatPublicPost200Response { /** * - * @type {RagNewInternalEntityChat} + * @type {EntityChat} * @memberof ApiV1ChatPublicPost200Response */ - 'data'?: RagNewInternalEntityChat; + 'data'?: EntityChat; /** * * @type {string} @@ -364,12 +370,18 @@ export interface ApiV1ChatPublicPost200Response { * @interface ApiV1ChatsIdImagesPostRequest */ export interface ApiV1ChatsIdImagesPostRequest { + /** + * + * @type {string} + * @memberof ApiV1ChatsIdImagesPostRequest + */ + 'url': string; /** * 图片 * @type {File} * @memberof ApiV1ChatsIdImagesPostRequest */ - 'image': File; + 'image'?: File; } /** * @@ -379,10 +391,10 @@ export interface ApiV1ChatsIdImagesPostRequest { export interface ApiV1PingGet200Response { /** * - * @type {RagNewInternalSchemaCurrentUserResponse} + * @type {SchemaCurrentUserResponse} * @memberof ApiV1PingGet200Response */ - 'data'?: RagNewInternalSchemaCurrentUserResponse; + 'data'?: SchemaCurrentUserResponse; /** * * @type {string} @@ -410,10 +422,10 @@ export interface ApiV1PingGet200Response { export interface ApiV1ToolsGet200Response { /** * - * @type {Array} + * @type {Array} * @memberof ApiV1ToolsGet200Response */ - 'data'?: Array; + 'data'?: Array; /** * * @type {string} @@ -441,10 +453,10 @@ export interface ApiV1ToolsGet200Response { export interface ApiV1ToolsPost200Response { /** * - * @type {RagNewInternalEntityTool} + * @type {EntityTool} * @memberof ApiV1ToolsPost200Response */ - 'data'?: RagNewInternalEntityTool; + 'data'?: EntityTool; /** * * @type {string} @@ -467,403 +479,494 @@ export interface ApiV1ToolsPost200Response { /** * * @export - * @interface RagNewInternalEntityAssistant + * @interface EntityAssistant */ -export interface RagNewInternalEntityAssistant { +export interface EntityAssistant { /** * * @type {string} - * @memberof RagNewInternalEntityAssistant + * @memberof EntityAssistant */ 'created_at'?: string; /** * * @type {string} - * @memberof RagNewInternalEntityAssistant + * @memberof EntityAssistant */ 'description'?: string; /** * * @type {boolean} - * @memberof RagNewInternalEntityAssistant + * @memberof EntityAssistant */ 'disable_default_prompt'?: boolean; /** * - * @type {number} - * @memberof RagNewInternalEntityAssistant + * @type {string} + * @memberof EntityAssistant */ - 'id'?: number; + 'id'?: string; /** * * @type {string} - * @memberof RagNewInternalEntityAssistant + * @memberof EntityAssistant */ 'name'?: string; /** * * @type {string} - * @memberof RagNewInternalEntityAssistant + * @memberof EntityAssistant */ 'prompt'?: string; /** * * @type {string} - * @memberof RagNewInternalEntityAssistant + * @memberof EntityAssistant */ 'updated_at'?: string; /** * * @type {number} - * @memberof RagNewInternalEntityAssistant + * @memberof EntityAssistant */ 'user_id'?: number; } /** * * @export - * @interface RagNewInternalEntityAssistantShare + * @interface EntityAssistantShare */ -export interface RagNewInternalEntityAssistantShare { +export interface EntityAssistantShare { + /** + * + * @type {EntityAssistant} + * @memberof EntityAssistantShare + */ + 'assistant'?: EntityAssistant; /** * * @type {number} - * @memberof RagNewInternalEntityAssistantShare + * @memberof EntityAssistantShare */ 'assistant_id'?: number; /** * * @type {string} - * @memberof RagNewInternalEntityAssistantShare + * @memberof EntityAssistantShare */ 'created_at'?: string; /** * - * @type {number} - * @memberof RagNewInternalEntityAssistantShare + * @type {string} + * @memberof EntityAssistantShare */ - 'id'?: number; + 'id'?: string; /** * * @type {string} - * @memberof RagNewInternalEntityAssistantShare + * @memberof EntityAssistantShare */ 'token'?: string; /** * * @type {string} - * @memberof RagNewInternalEntityAssistantShare + * @memberof EntityAssistantShare */ 'updated_at'?: string; } /** * * @export - * @interface RagNewInternalEntityAssistantTool + * @interface EntityAssistantTool */ -export interface RagNewInternalEntityAssistantTool { +export interface EntityAssistantTool { + /** + * + * @type {EntityAssistant} + * @memberof EntityAssistantTool + */ + 'assistant'?: EntityAssistant; /** * * @type {number} - * @memberof RagNewInternalEntityAssistantTool + * @memberof EntityAssistantTool */ 'assistant_id'?: number; /** * * @type {string} - * @memberof RagNewInternalEntityAssistantTool + * @memberof EntityAssistantTool */ 'created_at'?: string; /** * - * @type {number} - * @memberof RagNewInternalEntityAssistantTool + * @type {string} + * @memberof EntityAssistantTool */ - 'id'?: number; + 'id'?: string; + /** + * + * @type {EntityTool} + * @memberof EntityAssistantTool + */ + 'tool'?: EntityTool; /** * * @type {number} - * @memberof RagNewInternalEntityAssistantTool + * @memberof EntityAssistantTool */ 'tool_id'?: number; /** * * @type {string} - * @memberof RagNewInternalEntityAssistantTool + * @memberof EntityAssistantTool */ 'updated_at'?: string; } /** * * @export - * @interface RagNewInternalEntityAssistantToolType + * @interface EntityAssistantToolType */ -export interface RagNewInternalEntityAssistantToolType { +export interface EntityAssistantToolType { /** * - * @type {RagNewInternalEntityAssistant} - * @memberof RagNewInternalEntityAssistantToolType + * @type {EntityAssistant} + * @memberof EntityAssistantToolType */ - 'assistant'?: RagNewInternalEntityAssistant; + 'assistant'?: EntityAssistant; /** * * @type {number} - * @memberof RagNewInternalEntityAssistantToolType + * @memberof EntityAssistantToolType */ 'assistant_id'?: number; /** * * @type {string} - * @memberof RagNewInternalEntityAssistantToolType + * @memberof EntityAssistantToolType */ 'created_at'?: string; /** * - * @type {number} - * @memberof RagNewInternalEntityAssistantToolType + * @type {string} + * @memberof EntityAssistantToolType */ - 'id'?: number; + 'id'?: string; /** * - * @type {RagNewInternalEntityTool} - * @memberof RagNewInternalEntityAssistantToolType + * @type {EntityTool} + * @memberof EntityAssistantToolType */ - 'tool'?: RagNewInternalEntityTool; + 'tool'?: EntityTool; /** * * @type {number} - * @memberof RagNewInternalEntityAssistantToolType + * @memberof EntityAssistantToolType */ 'tool_id'?: number; /** * * @type {string} - * @memberof RagNewInternalEntityAssistantToolType + * @memberof EntityAssistantToolType */ 'updated_at'?: string; } /** * * @export - * @interface RagNewInternalEntityChat + * @interface EntityChat */ -export interface RagNewInternalEntityChat { +export interface EntityChat { /** * * @type {number} - * @memberof RagNewInternalEntityChat + * @memberof EntityChat */ 'assistant_id'?: number; /** * * @type {string} - * @memberof RagNewInternalEntityChat + * @memberof EntityChat */ 'created_at'?: string; /** * * @type {string} - * @memberof RagNewInternalEntityChat + * @memberof EntityChat */ 'expired_at'?: string; /** * * @type {string} - * @memberof RagNewInternalEntityChat + * @memberof EntityChat */ 'guest_id'?: string; /** * - * @type {number} - * @memberof RagNewInternalEntityChat + * @type {string} + * @memberof EntityChat */ - 'id'?: number; + 'id'?: string; /** * * @type {string} - * @memberof RagNewInternalEntityChat + * @memberof EntityChat */ 'name'?: string; /** * * @type {string} - * @memberof RagNewInternalEntityChat + * @memberof EntityChat */ 'owner'?: string; /** * * @type {string} - * @memberof RagNewInternalEntityChat + * @memberof EntityChat */ 'updated_at'?: string; /** - * + * Assistant Assistant `json:\"assistant\"` * @type {number} - * @memberof RagNewInternalEntityChat + * @memberof EntityChat */ 'user_id'?: number; } /** * * @export - * @interface RagNewInternalEntityChatMessage + * @interface EntityChatMessage */ -export interface RagNewInternalEntityChatMessage { +export interface EntityChatMessage { /** * * @type {number} - * @memberof RagNewInternalEntityChatMessage + * @memberof EntityChatMessage */ 'assistant_id'?: number; /** * * @type {number} - * @memberof RagNewInternalEntityChatMessage + * @memberof EntityChatMessage */ 'completion_tokens'?: number; /** * * @type {string} - * @memberof RagNewInternalEntityChatMessage + * @memberof EntityChatMessage */ 'content'?: string; /** * * @type {string} - * @memberof RagNewInternalEntityChatMessage + * @memberof EntityChatMessage */ 'created_at'?: string; + /** + * + * @type {EntityFile} + * @memberof EntityChatMessage + */ + 'file'?: EntityFile; + /** + * + * @type {number} + * @memberof EntityChatMessage + */ + 'file_id'?: number; /** * * @type {boolean} - * @memberof RagNewInternalEntityChatMessage + * @memberof EntityChatMessage */ 'hidden'?: boolean; /** * - * @type {number} - * @memberof RagNewInternalEntityChatMessage + * @type {string} + * @memberof EntityChatMessage */ - 'id'?: number; + 'id'?: string; /** * * @type {number} - * @memberof RagNewInternalEntityChatMessage + * @memberof EntityChatMessage */ 'prompt_tokens'?: number; /** * * @type {string} - * @memberof RagNewInternalEntityChatMessage + * @memberof EntityChatMessage */ 'role'?: string; /** * * @type {number} - * @memberof RagNewInternalEntityChatMessage + * @memberof EntityChatMessage */ 'total_tokens'?: number; /** * * @type {string} - * @memberof RagNewInternalEntityChatMessage + * @memberof EntityChatMessage */ 'updated_at'?: string; } /** * * @export - * @interface RagNewInternalEntityTool + * @interface EntityFile */ -export interface RagNewInternalEntityTool { +export interface EntityFile { /** * * @type {string} - * @memberof RagNewInternalEntityTool + * @memberof EntityFile + */ + 'created_at'?: string; + /** + * TODO: 移除 file 的到期时间,如果当 file 没有任何引用的时候再删除 因为有外键,所以直接删除是删不掉的,必须删除消息 + * @type {string} + * @memberof EntityFile + */ + 'expired_at'?: string; + /** + * + * @type {string} + * @memberof EntityFile + */ + 'file_hash'?: string; + /** + * + * @type {string} + * @memberof EntityFile + */ + 'id'?: string; + /** + * + * @type {string} + * @memberof EntityFile + */ + 'mime_type'?: string; + /** + * + * @type {string} + * @memberof EntityFile + */ + 'path'?: string; + /** + * + * @type {string} + * @memberof EntityFile + */ + 'updated_at'?: string; + /** + * + * @type {string} + * @memberof EntityFile + */ + 'url'?: string; + /** + * + * @type {string} + * @memberof EntityFile + */ + 'url_hash'?: string; +} +/** + * + * @export + * @interface EntityTool + */ +export interface EntityTool { + /** + * + * @type {string} + * @memberof EntityTool */ 'api_key'?: string; /** * * @type {string} - * @memberof RagNewInternalEntityTool + * @memberof EntityTool */ 'created_at'?: string; /** * - * @type {RagNewInternalSchemaToolDiscoveryOutput} - * @memberof RagNewInternalEntityTool + * @type {SchemaToolDiscoveryOutput} + * @memberof EntityTool */ - 'data'?: RagNewInternalSchemaToolDiscoveryOutput; + 'data'?: SchemaToolDiscoveryOutput; /** * * @type {string} - * @memberof RagNewInternalEntityTool + * @memberof EntityTool */ 'description'?: string; /** * * @type {string} - * @memberof RagNewInternalEntityTool + * @memberof EntityTool */ 'discovery_url'?: string; /** * - * @type {number} - * @memberof RagNewInternalEntityTool + * @type {string} + * @memberof EntityTool */ - 'id'?: number; + 'id'?: string; /** * * @type {string} - * @memberof RagNewInternalEntityTool + * @memberof EntityTool */ 'name'?: string; /** * * @type {string} - * @memberof RagNewInternalEntityTool + * @memberof EntityTool */ 'updated_at'?: string; /** * * @type {number} - * @memberof RagNewInternalEntityTool + * @memberof EntityTool */ 'user_id'?: number; } /** * * @export - * @interface RagNewInternalSchemaAddPublicChatMessageRequest + * @interface SchemaAddPublicChatMessageRequest */ -export interface RagNewInternalSchemaAddPublicChatMessageRequest { +export interface SchemaAddPublicChatMessageRequest { /** * * @type {string} - * @memberof RagNewInternalSchemaAddPublicChatMessageRequest + * @memberof SchemaAddPublicChatMessageRequest */ 'assistant_token': string; /** * * @type {string} - * @memberof RagNewInternalSchemaAddPublicChatMessageRequest + * @memberof SchemaAddPublicChatMessageRequest */ 'guest_id': string; /** * * @type {string} - * @memberof RagNewInternalSchemaAddPublicChatMessageRequest + * @memberof SchemaAddPublicChatMessageRequest */ 'message': string; /** * * @type {string} - * @memberof RagNewInternalSchemaAddPublicChatMessageRequest + * @memberof SchemaAddPublicChatMessageRequest */ - 'role': RagNewInternalSchemaAddPublicChatMessageRequestRoleEnum; + 'role': SchemaAddPublicChatMessageRequestRoleEnum; } -export const RagNewInternalSchemaAddPublicChatMessageRequestRoleEnum = { +export const SchemaAddPublicChatMessageRequestRoleEnum = { User: 'user', UserHide: 'user_hide', System: 'system', @@ -871,110 +974,116 @@ export const RagNewInternalSchemaAddPublicChatMessageRequestRoleEnum = { Assistant: 'assistant' } as const; -export type RagNewInternalSchemaAddPublicChatMessageRequestRoleEnum = typeof RagNewInternalSchemaAddPublicChatMessageRequestRoleEnum[keyof typeof RagNewInternalSchemaAddPublicChatMessageRequestRoleEnum]; +export type SchemaAddPublicChatMessageRequestRoleEnum = typeof SchemaAddPublicChatMessageRequestRoleEnum[keyof typeof SchemaAddPublicChatMessageRequestRoleEnum]; /** * * @export - * @interface RagNewInternalSchemaAssistantCreateRequest + * @interface SchemaAssistantCreateRequest */ -export interface RagNewInternalSchemaAssistantCreateRequest { +export interface SchemaAssistantCreateRequest { /** * * @type {string} - * @memberof RagNewInternalSchemaAssistantCreateRequest + * @memberof SchemaAssistantCreateRequest */ 'description': string; /** * * @type {boolean} - * @memberof RagNewInternalSchemaAssistantCreateRequest + * @memberof SchemaAssistantCreateRequest */ 'disable_default_prompt'?: boolean; /** * * @type {string} - * @memberof RagNewInternalSchemaAssistantCreateRequest + * @memberof SchemaAssistantCreateRequest */ 'name': string; /** * * @type {string} - * @memberof RagNewInternalSchemaAssistantCreateRequest + * @memberof SchemaAssistantCreateRequest */ 'prompt'?: string; } /** * * @export - * @interface RagNewInternalSchemaAssistantUpdateRequest + * @interface SchemaAssistantUpdateRequest */ -export interface RagNewInternalSchemaAssistantUpdateRequest { +export interface SchemaAssistantUpdateRequest { /** * * @type {string} - * @memberof RagNewInternalSchemaAssistantUpdateRequest + * @memberof SchemaAssistantUpdateRequest */ 'description'?: string; /** * * @type {boolean} - * @memberof RagNewInternalSchemaAssistantUpdateRequest + * @memberof SchemaAssistantUpdateRequest */ 'disable_default_prompt'?: boolean; /** * * @type {string} - * @memberof RagNewInternalSchemaAssistantUpdateRequest + * @memberof SchemaAssistantUpdateRequest */ 'name'?: string; /** * * @type {string} - * @memberof RagNewInternalSchemaAssistantUpdateRequest + * @memberof SchemaAssistantUpdateRequest */ 'prompt'?: string; } /** * * @export - * @interface RagNewInternalSchemaChatCreateRequest + * @interface SchemaChatCreateRequest */ -export interface RagNewInternalSchemaChatCreateRequest { +export interface SchemaChatCreateRequest { /** * * @type {number} - * @memberof RagNewInternalSchemaChatCreateRequest + * @memberof SchemaChatCreateRequest */ 'assistant_id': number; + /** + * + * @type {SchemaCustomTime} + * @memberof SchemaChatCreateRequest + */ + 'expired_at'?: SchemaCustomTime; /** * * @type {string} - * @memberof RagNewInternalSchemaChatCreateRequest + * @memberof SchemaChatCreateRequest */ 'name': string; } /** * * @export - * @interface RagNewInternalSchemaChatMessageAddRequest + * @interface SchemaChatMessageAddRequest */ -export interface RagNewInternalSchemaChatMessageAddRequest { +export interface SchemaChatMessageAddRequest { /** * * @type {string} - * @memberof RagNewInternalSchemaChatMessageAddRequest + * @memberof SchemaChatMessageAddRequest */ 'message': string; /** * * @type {string} - * @memberof RagNewInternalSchemaChatMessageAddRequest + * @memberof SchemaChatMessageAddRequest */ - 'role': RagNewInternalSchemaChatMessageAddRequestRoleEnum; + 'role': SchemaChatMessageAddRequestRoleEnum; } -export const RagNewInternalSchemaChatMessageAddRequestRoleEnum = { +export const SchemaChatMessageAddRequestRoleEnum = { User: 'user', UserHide: 'user_hide', System: 'system', @@ -983,503 +1092,541 @@ export const RagNewInternalSchemaChatMessageAddRequestRoleEnum = { Image: 'image' } as const; -export type RagNewInternalSchemaChatMessageAddRequestRoleEnum = typeof RagNewInternalSchemaChatMessageAddRequestRoleEnum[keyof typeof RagNewInternalSchemaChatMessageAddRequestRoleEnum]; +export type SchemaChatMessageAddRequestRoleEnum = typeof SchemaChatMessageAddRequestRoleEnum[keyof typeof SchemaChatMessageAddRequestRoleEnum]; /** * * @export - * @interface RagNewInternalSchemaChatMessageResponse + * @interface SchemaChatMessageResponse */ -export interface RagNewInternalSchemaChatMessageResponse { +export interface SchemaChatMessageResponse { /** * * @type {boolean} - * @memberof RagNewInternalSchemaChatMessageResponse + * @memberof SchemaChatMessageResponse */ 'stream'?: boolean; /** * * @type {string} - * @memberof RagNewInternalSchemaChatMessageResponse + * @memberof SchemaChatMessageResponse */ 'stream_id'?: string; } /** * * @export - * @interface RagNewInternalSchemaChatPublicListRequest + * @interface SchemaChatPublicListRequest */ -export interface RagNewInternalSchemaChatPublicListRequest { +export interface SchemaChatPublicListRequest { /** * * @type {string} - * @memberof RagNewInternalSchemaChatPublicListRequest + * @memberof SchemaChatPublicListRequest */ 'guest_id': string; } /** * * @export - * @interface RagNewInternalSchemaChatPublicRequest + * @interface SchemaChatPublicRequest */ -export interface RagNewInternalSchemaChatPublicRequest { +export interface SchemaChatPublicRequest { /** * * @type {string} - * @memberof RagNewInternalSchemaChatPublicRequest + * @memberof SchemaChatPublicRequest */ 'assistant_token': string; /** * * @type {string} - * @memberof RagNewInternalSchemaChatPublicRequest + * @memberof SchemaChatPublicRequest */ 'guest_id': string; /** * * @type {string} - * @memberof RagNewInternalSchemaChatPublicRequest + * @memberof SchemaChatPublicRequest */ 'name': string; } /** * * @export - * @interface RagNewInternalSchemaCurrentUserResponse + * @interface SchemaCurrentUserResponse */ -export interface RagNewInternalSchemaCurrentUserResponse { +export interface SchemaCurrentUserResponse { /** * * @type {string} - * @memberof RagNewInternalSchemaCurrentUserResponse + * @memberof SchemaCurrentUserResponse */ 'ip'?: string; /** * * @type {string} - * @memberof RagNewInternalSchemaCurrentUserResponse + * @memberof SchemaCurrentUserResponse */ 'userEmail'?: string; /** * * @type {number} - * @memberof RagNewInternalSchemaCurrentUserResponse + * @memberof SchemaCurrentUserResponse */ 'userId'?: number; /** * * @type {string} - * @memberof RagNewInternalSchemaCurrentUserResponse + * @memberof SchemaCurrentUserResponse */ 'userName'?: string; /** * * @type {boolean} - * @memberof RagNewInternalSchemaCurrentUserResponse + * @memberof SchemaCurrentUserResponse */ 'valid'?: boolean; } /** * * @export - * @interface RagNewInternalSchemaFunctionsInput + * @interface SchemaCustomTime */ -export interface RagNewInternalSchemaFunctionsInput { +export interface SchemaCustomTime { /** * * @type {string} - * @memberof RagNewInternalSchemaFunctionsInput + * @memberof SchemaCustomTime + */ + 'time.Time'?: string; +} +/** + * + * @export + * @interface SchemaFunctionsInput + */ +export interface SchemaFunctionsInput { + /** + * + * @type {string} + * @memberof SchemaFunctionsInput */ 'description': string; /** * * @type {string} - * @memberof RagNewInternalSchemaFunctionsInput + * @memberof SchemaFunctionsInput */ 'name': string; /** * - * @type {RagNewInternalSchemaToolDiscoveryOutputFunctionParameters} - * @memberof RagNewInternalSchemaFunctionsInput + * @type {SchemaToolDiscoveryOutputFunctionParameters} + * @memberof SchemaFunctionsInput */ - 'parameters': RagNewInternalSchemaToolDiscoveryOutputFunctionParameters; + 'parameters': SchemaToolDiscoveryOutputFunctionParameters; } /** * * @export - * @interface RagNewInternalSchemaGetPublicChatMessageRequest + * @interface SchemaGetPublicChatMessageRequest */ -export interface RagNewInternalSchemaGetPublicChatMessageRequest { +export interface SchemaGetPublicChatMessageRequest { /** * * @type {string} - * @memberof RagNewInternalSchemaGetPublicChatMessageRequest + * @memberof SchemaGetPublicChatMessageRequest */ 'assistant_token': string; /** * * @type {string} - * @memberof RagNewInternalSchemaGetPublicChatMessageRequest + * @memberof SchemaGetPublicChatMessageRequest */ 'guest_id': string; } /** * * @export - * @interface RagNewInternalSchemaOpenAIChatCompletionRequest + * @interface SchemaOpenAIChatCompletionRequest */ -export interface RagNewInternalSchemaOpenAIChatCompletionRequest { +export interface SchemaOpenAIChatCompletionRequest { /** * Optional * @type {number} - * @memberof RagNewInternalSchemaOpenAIChatCompletionRequest + * @memberof SchemaOpenAIChatCompletionRequest */ 'max_tokens'?: number; /** * Required - * @type {Array} - * @memberof RagNewInternalSchemaOpenAIChatCompletionRequest + * @type {Array} + * @memberof SchemaOpenAIChatCompletionRequest */ - 'messages'?: Array; + 'messages'?: Array; /** * Required * @type {string} - * @memberof RagNewInternalSchemaOpenAIChatCompletionRequest + * @memberof SchemaOpenAIChatCompletionRequest */ 'model'?: string; /** * Optional * @type {number} - * @memberof RagNewInternalSchemaOpenAIChatCompletionRequest + * @memberof SchemaOpenAIChatCompletionRequest */ 'n'?: number; /** * Optional * @type {boolean} - * @memberof RagNewInternalSchemaOpenAIChatCompletionRequest + * @memberof SchemaOpenAIChatCompletionRequest */ 'stream'?: boolean; /** * Optional * @type {number} - * @memberof RagNewInternalSchemaOpenAIChatCompletionRequest + * @memberof SchemaOpenAIChatCompletionRequest */ 'temperature'?: number; /** * Optional * @type {number} - * @memberof RagNewInternalSchemaOpenAIChatCompletionRequest + * @memberof SchemaOpenAIChatCompletionRequest */ 'top_p'?: number; } /** * * @export - * @interface RagNewInternalSchemaOpenAIChatCompletionRequestMessage + * @interface SchemaOpenAIChatCompletionRequestMessage */ -export interface RagNewInternalSchemaOpenAIChatCompletionRequestMessage { +export interface SchemaOpenAIChatCompletionRequestMessage { /** * Required - * @type {string} - * @memberof RagNewInternalSchemaOpenAIChatCompletionRequestMessage + * @type {object} + * @memberof SchemaOpenAIChatCompletionRequestMessage */ - 'content'?: string; + 'content'?: object; + /** + * + * @type {SchemaOpenAIImageUrl} + * @memberof SchemaOpenAIChatCompletionRequestMessage + */ + 'image_url'?: SchemaOpenAIImageUrl; /** * Required * @type {string} - * @memberof RagNewInternalSchemaOpenAIChatCompletionRequestMessage + * @memberof SchemaOpenAIChatCompletionRequestMessage */ 'role'?: string; } /** * * @export - * @interface RagNewInternalSchemaOpenAIChatCompletionResponse + * @interface SchemaOpenAIChatCompletionResponse */ -export interface RagNewInternalSchemaOpenAIChatCompletionResponse { +export interface SchemaOpenAIChatCompletionResponse { /** * - * @type {Array} - * @memberof RagNewInternalSchemaOpenAIChatCompletionResponse + * @type {Array} + * @memberof SchemaOpenAIChatCompletionResponse */ - 'choices'?: Array; + 'choices'?: Array; /** * * @type {number} - * @memberof RagNewInternalSchemaOpenAIChatCompletionResponse + * @memberof SchemaOpenAIChatCompletionResponse */ 'created'?: number; /** * * @type {string} - * @memberof RagNewInternalSchemaOpenAIChatCompletionResponse + * @memberof SchemaOpenAIChatCompletionResponse */ 'id'?: string; /** * * @type {string} - * @memberof RagNewInternalSchemaOpenAIChatCompletionResponse + * @memberof SchemaOpenAIChatCompletionResponse */ 'model'?: string; /** * * @type {string} - * @memberof RagNewInternalSchemaOpenAIChatCompletionResponse + * @memberof SchemaOpenAIChatCompletionResponse */ 'object'?: string; /** * - * @type {RagNewInternalSchemaTokenUsage} - * @memberof RagNewInternalSchemaOpenAIChatCompletionResponse + * @type {SchemaTokenUsage} + * @memberof SchemaOpenAIChatCompletionResponse */ - 'usage'?: RagNewInternalSchemaTokenUsage; + 'usage'?: SchemaTokenUsage; } /** * * @export - * @interface RagNewInternalSchemaOpenAIChatCompletionResponseChoice + * @interface SchemaOpenAIChatCompletionResponseChoice */ -export interface RagNewInternalSchemaOpenAIChatCompletionResponseChoice { +export interface SchemaOpenAIChatCompletionResponseChoice { /** * * @type {number} - * @memberof RagNewInternalSchemaOpenAIChatCompletionResponseChoice + * @memberof SchemaOpenAIChatCompletionResponseChoice */ 'index'?: number; /** * - * @type {RagNewInternalSchemaOpenAIChatCompletionRequestMessage} - * @memberof RagNewInternalSchemaOpenAIChatCompletionResponseChoice + * @type {SchemaOpenAIChatCompletionRequestMessage} + * @memberof SchemaOpenAIChatCompletionResponseChoice */ - 'message'?: RagNewInternalSchemaOpenAIChatCompletionRequestMessage; + 'message'?: SchemaOpenAIChatCompletionRequestMessage; } /** * * @export - * @interface RagNewInternalSchemaResponseBody + * @interface SchemaOpenAIImageUrl */ -export interface RagNewInternalSchemaResponseBody { +export interface SchemaOpenAIImageUrl { + /** + * + * @type {string} + * @memberof SchemaOpenAIImageUrl + */ + 'detail'?: string; + /** + * + * @type {string} + * @memberof SchemaOpenAIImageUrl + */ + 'url'?: string; +} +/** + * + * @export + * @interface SchemaResponseBody + */ +export interface SchemaResponseBody { /** * * @type {object} - * @memberof RagNewInternalSchemaResponseBody + * @memberof SchemaResponseBody */ 'data'?: object; /** * * @type {string} - * @memberof RagNewInternalSchemaResponseBody + * @memberof SchemaResponseBody */ 'error'?: string; /** * * @type {string} - * @memberof RagNewInternalSchemaResponseBody + * @memberof SchemaResponseBody */ 'message'?: string; /** * * @type {boolean} - * @memberof RagNewInternalSchemaResponseBody + * @memberof SchemaResponseBody */ 'success'?: boolean; } /** * * @export - * @interface RagNewInternalSchemaTokenUsage + * @interface SchemaTokenUsage */ -export interface RagNewInternalSchemaTokenUsage { +export interface SchemaTokenUsage { /** * * @type {number} - * @memberof RagNewInternalSchemaTokenUsage + * @memberof SchemaTokenUsage */ 'completion_tokens'?: number; /** * * @type {number} - * @memberof RagNewInternalSchemaTokenUsage + * @memberof SchemaTokenUsage */ 'prompt_tokens'?: number; /** * * @type {number} - * @memberof RagNewInternalSchemaTokenUsage + * @memberof SchemaTokenUsage */ 'total_tokens'?: number; } /** * * @export - * @interface RagNewInternalSchemaToolCreateRequest + * @interface SchemaToolCreateRequest */ -export interface RagNewInternalSchemaToolCreateRequest { +export interface SchemaToolCreateRequest { /** * * @type {string} - * @memberof RagNewInternalSchemaToolCreateRequest + * @memberof SchemaToolCreateRequest */ 'api_key'?: string; /** * * @type {string} - * @memberof RagNewInternalSchemaToolCreateRequest + * @memberof SchemaToolCreateRequest */ 'description': string; /** * * @type {string} - * @memberof RagNewInternalSchemaToolCreateRequest + * @memberof SchemaToolCreateRequest */ 'name': string; /** * * @type {string} - * @memberof RagNewInternalSchemaToolCreateRequest + * @memberof SchemaToolCreateRequest */ 'url': string; } /** * * @export - * @interface RagNewInternalSchemaToolDiscoveryInput + * @interface SchemaToolDiscoveryInput */ -export interface RagNewInternalSchemaToolDiscoveryInput { +export interface SchemaToolDiscoveryInput { /** * * @type {string} - * @memberof RagNewInternalSchemaToolDiscoveryInput + * @memberof SchemaToolDiscoveryInput */ 'callback_url'?: string; /** * * @type {string} - * @memberof RagNewInternalSchemaToolDiscoveryInput + * @memberof SchemaToolDiscoveryInput */ 'description': string; /** * - * @type {Array} - * @memberof RagNewInternalSchemaToolDiscoveryInput + * @type {Array} + * @memberof SchemaToolDiscoveryInput */ - 'functions'?: Array; + 'functions'?: Array; /** * * @type {string} - * @memberof RagNewInternalSchemaToolDiscoveryInput + * @memberof SchemaToolDiscoveryInput */ 'homepage_url'?: string; /** * * @type {string} - * @memberof RagNewInternalSchemaToolDiscoveryInput + * @memberof SchemaToolDiscoveryInput */ 'name': string; } /** * * @export - * @interface RagNewInternalSchemaToolDiscoveryOutput + * @interface SchemaToolDiscoveryOutput */ -export interface RagNewInternalSchemaToolDiscoveryOutput { +export interface SchemaToolDiscoveryOutput { /** * * @type {string} - * @memberof RagNewInternalSchemaToolDiscoveryOutput + * @memberof SchemaToolDiscoveryOutput */ 'callback_url'?: string; /** * * @type {string} - * @memberof RagNewInternalSchemaToolDiscoveryOutput + * @memberof SchemaToolDiscoveryOutput */ 'description'?: string; /** * - * @type {Array} - * @memberof RagNewInternalSchemaToolDiscoveryOutput + * @type {Array} + * @memberof SchemaToolDiscoveryOutput */ - 'function'?: Array; + 'function'?: Array; /** * * @type {string} - * @memberof RagNewInternalSchemaToolDiscoveryOutput + * @memberof SchemaToolDiscoveryOutput */ 'homepage_url'?: string; /** * * @type {string} - * @memberof RagNewInternalSchemaToolDiscoveryOutput + * @memberof SchemaToolDiscoveryOutput */ 'name'?: string; } /** * * @export - * @interface RagNewInternalSchemaToolDiscoveryOutputFunction + * @interface SchemaToolDiscoveryOutputFunction */ -export interface RagNewInternalSchemaToolDiscoveryOutputFunction { +export interface SchemaToolDiscoveryOutputFunction { /** * * @type {string} - * @memberof RagNewInternalSchemaToolDiscoveryOutputFunction + * @memberof SchemaToolDiscoveryOutputFunction */ 'description'?: string; /** * * @type {string} - * @memberof RagNewInternalSchemaToolDiscoveryOutputFunction + * @memberof SchemaToolDiscoveryOutputFunction */ 'name'?: string; /** * - * @type {RagNewInternalSchemaToolDiscoveryOutputFunctionParameters} - * @memberof RagNewInternalSchemaToolDiscoveryOutputFunction + * @type {SchemaToolDiscoveryOutputFunctionParameters} + * @memberof SchemaToolDiscoveryOutputFunction */ - 'parameters'?: RagNewInternalSchemaToolDiscoveryOutputFunctionParameters; + 'parameters'?: SchemaToolDiscoveryOutputFunctionParameters; } /** * * @export - * @interface RagNewInternalSchemaToolDiscoveryOutputFunctionParameters + * @interface SchemaToolDiscoveryOutputFunctionParameters */ -export interface RagNewInternalSchemaToolDiscoveryOutputFunctionParameters { +export interface SchemaToolDiscoveryOutputFunctionParameters { /** * * @type {object} - * @memberof RagNewInternalSchemaToolDiscoveryOutputFunctionParameters + * @memberof SchemaToolDiscoveryOutputFunctionParameters */ 'properties': object; /** * * @type {Array} - * @memberof RagNewInternalSchemaToolDiscoveryOutputFunctionParameters + * @memberof SchemaToolDiscoveryOutputFunctionParameters */ 'required': Array; /** * * @type {string} - * @memberof RagNewInternalSchemaToolDiscoveryOutputFunctionParameters + * @memberof SchemaToolDiscoveryOutputFunctionParameters */ 'type': string; } /** * * @export - * @interface RagNewInternalSchemaToolDiscoveryOutputFunctions + * @interface SchemaToolDiscoveryOutputFunctions */ -export interface RagNewInternalSchemaToolDiscoveryOutputFunctions { +export interface SchemaToolDiscoveryOutputFunctions { /** * - * @type {Array} - * @memberof RagNewInternalSchemaToolDiscoveryOutputFunctions + * @type {Array} + * @memberof SchemaToolDiscoveryOutputFunctions */ - 'functions'?: Array; + 'functions'?: Array; /** * * @type {string} - * @memberof RagNewInternalSchemaToolDiscoveryOutputFunctions + * @memberof SchemaToolDiscoveryOutputFunctions */ 'type'?: string; } @@ -1601,11 +1748,11 @@ export const AssistantApiAxiosParamCreator = function (configuration?: Configura * * @summary 更新 Assistant * @param {number} id Assistant ID - * @param {RagNewInternalSchemaAssistantUpdateRequest} assistantUpdateRequest Assistant Update + * @param {SchemaAssistantUpdateRequest} assistantUpdateRequest Assistant Update * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV1AssistantsIdPatch: async (id: number, assistantUpdateRequest: RagNewInternalSchemaAssistantUpdateRequest, options: RawAxiosRequestConfig = {}): Promise => { + apiV1AssistantsIdPatch: async (id: number, assistantUpdateRequest: SchemaAssistantUpdateRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiV1AssistantsIdPatch', 'id', id) // verify required parameter 'assistantUpdateRequest' is not null or undefined @@ -1877,11 +2024,11 @@ export const AssistantApiAxiosParamCreator = function (configuration?: Configura /** * * @summary 创建 Assistant - * @param {RagNewInternalSchemaAssistantCreateRequest} assistant Assistant + * @param {SchemaAssistantCreateRequest} assistant Assistant * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV1AssistantsPost: async (assistant: RagNewInternalSchemaAssistantCreateRequest, options: RawAxiosRequestConfig = {}): Promise => { + apiV1AssistantsPost: async (assistant: SchemaAssistantCreateRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'assistant' is not null or undefined assertParamExists('apiV1AssistantsPost', 'assistant', assistant) const localVarPath = `/api/v1/assistants`; @@ -1965,11 +2112,11 @@ export const AssistantApiFp = function(configuration?: Configuration) { * * @summary 更新 Assistant * @param {number} id Assistant ID - * @param {RagNewInternalSchemaAssistantUpdateRequest} assistantUpdateRequest Assistant Update + * @param {SchemaAssistantUpdateRequest} assistantUpdateRequest Assistant Update * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiV1AssistantsIdPatch(id: number, assistantUpdateRequest: RagNewInternalSchemaAssistantUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async apiV1AssistantsIdPatch(id: number, assistantUpdateRequest: SchemaAssistantUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1AssistantsIdPatch(id, assistantUpdateRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AssistantApi.apiV1AssistantsIdPatch']?.[localVarOperationServerIndex]?.url; @@ -2009,7 +2156,7 @@ export const AssistantApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiV1AssistantsIdSharesShareIdDelete(id: number, shareId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async apiV1AssistantsIdSharesShareIdDelete(id: number, shareId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1AssistantsIdSharesShareIdDelete(id, shareId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AssistantApi.apiV1AssistantsIdSharesShareIdDelete']?.[localVarOperationServerIndex]?.url; @@ -2059,11 +2206,11 @@ export const AssistantApiFp = function(configuration?: Configuration) { /** * * @summary 创建 Assistant - * @param {RagNewInternalSchemaAssistantCreateRequest} assistant Assistant + * @param {SchemaAssistantCreateRequest} assistant Assistant * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiV1AssistantsPost(assistant: RagNewInternalSchemaAssistantCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async apiV1AssistantsPost(assistant: SchemaAssistantCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1AssistantsPost(assistant, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AssistantApi.apiV1AssistantsPost']?.[localVarOperationServerIndex]?.url; @@ -2112,11 +2259,11 @@ export const AssistantApiFactory = function (configuration?: Configuration, base * * @summary 更新 Assistant * @param {number} id Assistant ID - * @param {RagNewInternalSchemaAssistantUpdateRequest} assistantUpdateRequest Assistant Update + * @param {SchemaAssistantUpdateRequest} assistantUpdateRequest Assistant Update * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV1AssistantsIdPatch(id: number, assistantUpdateRequest: RagNewInternalSchemaAssistantUpdateRequest, options?: any): AxiosPromise { + apiV1AssistantsIdPatch(id: number, assistantUpdateRequest: SchemaAssistantUpdateRequest, options?: any): AxiosPromise { return localVarFp.apiV1AssistantsIdPatch(id, assistantUpdateRequest, options).then((request) => request(axios, basePath)); }, /** @@ -2147,7 +2294,7 @@ export const AssistantApiFactory = function (configuration?: Configuration, base * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV1AssistantsIdSharesShareIdDelete(id: number, shareId: number, options?: any): AxiosPromise { + apiV1AssistantsIdSharesShareIdDelete(id: number, shareId: number, options?: any): AxiosPromise { return localVarFp.apiV1AssistantsIdSharesShareIdDelete(id, shareId, options).then((request) => request(axios, basePath)); }, /** @@ -2185,11 +2332,11 @@ export const AssistantApiFactory = function (configuration?: Configuration, base /** * * @summary 创建 Assistant - * @param {RagNewInternalSchemaAssistantCreateRequest} assistant Assistant + * @param {SchemaAssistantCreateRequest} assistant Assistant * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV1AssistantsPost(assistant: RagNewInternalSchemaAssistantCreateRequest, options?: any): AxiosPromise { + apiV1AssistantsPost(assistant: SchemaAssistantCreateRequest, options?: any): AxiosPromise { return localVarFp.apiV1AssistantsPost(assistant, options).then((request) => request(axios, basePath)); }, }; @@ -2241,12 +2388,12 @@ export class AssistantApi extends BaseAPI { * * @summary 更新 Assistant * @param {number} id Assistant ID - * @param {RagNewInternalSchemaAssistantUpdateRequest} assistantUpdateRequest Assistant Update + * @param {SchemaAssistantUpdateRequest} assistantUpdateRequest Assistant Update * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AssistantApi */ - public apiV1AssistantsIdPatch(id: number, assistantUpdateRequest: RagNewInternalSchemaAssistantUpdateRequest, options?: RawAxiosRequestConfig) { + public apiV1AssistantsIdPatch(id: number, assistantUpdateRequest: SchemaAssistantUpdateRequest, options?: RawAxiosRequestConfig) { return AssistantApiFp(this.configuration).apiV1AssistantsIdPatch(id, assistantUpdateRequest, options).then((request) => request(this.axios, this.basePath)); } @@ -2328,12 +2475,12 @@ export class AssistantApi extends BaseAPI { /** * * @summary 创建 Assistant - * @param {RagNewInternalSchemaAssistantCreateRequest} assistant Assistant + * @param {SchemaAssistantCreateRequest} assistant Assistant * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AssistantApi */ - public apiV1AssistantsPost(assistant: RagNewInternalSchemaAssistantCreateRequest, options?: RawAxiosRequestConfig) { + public apiV1AssistantsPost(assistant: SchemaAssistantCreateRequest, options?: RawAxiosRequestConfig) { return AssistantApiFp(this.configuration).apiV1AssistantsPost(assistant, options).then((request) => request(this.axios, this.basePath)); } } @@ -2349,12 +2496,12 @@ export const ChatApiAxiosParamCreator = function (configuration?: Configuration) /** * 兼容 OpenAI Chat Completion 接口,认证需要使用 Assistant Share Token * @summary OpenAI Chat Completion - * @param {RagNewInternalSchemaOpenAIChatCompletionRequest} chat Chat + * @param {SchemaOpenAIChatCompletionRequest} chat Chat * @param {string} [xUserIP] 指定聊天中的用户 IP 地址,不指定则自动获取。此 IP 地址只会增加至 Prompt 中,如果不希望增加,请关闭系统自带 Prompt 选项 * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiOpenaiCompatibleV1ChatCompletionsPost: async (chat: RagNewInternalSchemaOpenAIChatCompletionRequest, xUserIP?: string, options: RawAxiosRequestConfig = {}): Promise => { + apiOpenaiCompatibleV1ChatCompletionsPost: async (chat: SchemaOpenAIChatCompletionRequest, xUserIP?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'chat' is not null or undefined assertParamExists('apiOpenaiCompatibleV1ChatCompletionsPost', 'chat', chat) const localVarPath = `/api/openai-compatible/v1/chat/completions`; @@ -2468,11 +2615,11 @@ export const ChatApiAxiosParamCreator = function (configuration?: Configuration) /** * get string by ID * @summary Create Chat - * @param {RagNewInternalSchemaChatCreateRequest} chat Chat + * @param {SchemaChatCreateRequest} chat Chat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV1ChatsPost: async (chat: RagNewInternalSchemaChatCreateRequest, options: RawAxiosRequestConfig = {}): Promise => { + apiV1ChatsPost: async (chat: SchemaChatCreateRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'chat' is not null or undefined assertParamExists('apiV1ChatsPost', 'chat', chat) const localVarPath = `/api/v1/chats`; @@ -2517,12 +2664,12 @@ export const ChatApiFp = function(configuration?: Configuration) { /** * 兼容 OpenAI Chat Completion 接口,认证需要使用 Assistant Share Token * @summary OpenAI Chat Completion - * @param {RagNewInternalSchemaOpenAIChatCompletionRequest} chat Chat + * @param {SchemaOpenAIChatCompletionRequest} chat Chat * @param {string} [xUserIP] 指定聊天中的用户 IP 地址,不指定则自动获取。此 IP 地址只会增加至 Prompt 中,如果不希望增加,请关闭系统自带 Prompt 选项 * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiOpenaiCompatibleV1ChatCompletionsPost(chat: RagNewInternalSchemaOpenAIChatCompletionRequest, xUserIP?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async apiOpenaiCompatibleV1ChatCompletionsPost(chat: SchemaOpenAIChatCompletionRequest, xUserIP?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.apiOpenaiCompatibleV1ChatCompletionsPost(chat, xUserIP, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ChatApi.apiOpenaiCompatibleV1ChatCompletionsPost']?.[localVarOperationServerIndex]?.url; @@ -2548,7 +2695,7 @@ export const ChatApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiV1ChatsIdDelete(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async apiV1ChatsIdDelete(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatsIdDelete(id, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ChatApi.apiV1ChatsIdDelete']?.[localVarOperationServerIndex]?.url; @@ -2557,11 +2704,11 @@ export const ChatApiFp = function(configuration?: Configuration) { /** * get string by ID * @summary Create Chat - * @param {RagNewInternalSchemaChatCreateRequest} chat Chat + * @param {SchemaChatCreateRequest} chat Chat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiV1ChatsPost(chat: RagNewInternalSchemaChatCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async apiV1ChatsPost(chat: SchemaChatCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatsPost(chat, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ChatApi.apiV1ChatsPost']?.[localVarOperationServerIndex]?.url; @@ -2580,12 +2727,12 @@ export const ChatApiFactory = function (configuration?: Configuration, basePath? /** * 兼容 OpenAI Chat Completion 接口,认证需要使用 Assistant Share Token * @summary OpenAI Chat Completion - * @param {RagNewInternalSchemaOpenAIChatCompletionRequest} chat Chat + * @param {SchemaOpenAIChatCompletionRequest} chat Chat * @param {string} [xUserIP] 指定聊天中的用户 IP 地址,不指定则自动获取。此 IP 地址只会增加至 Prompt 中,如果不希望增加,请关闭系统自带 Prompt 选项 * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiOpenaiCompatibleV1ChatCompletionsPost(chat: RagNewInternalSchemaOpenAIChatCompletionRequest, xUserIP?: string, options?: any): AxiosPromise { + apiOpenaiCompatibleV1ChatCompletionsPost(chat: SchemaOpenAIChatCompletionRequest, xUserIP?: string, options?: any): AxiosPromise { return localVarFp.apiOpenaiCompatibleV1ChatCompletionsPost(chat, xUserIP, options).then((request) => request(axios, basePath)); }, /** @@ -2605,17 +2752,17 @@ export const ChatApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV1ChatsIdDelete(id: number, options?: any): AxiosPromise { + apiV1ChatsIdDelete(id: number, options?: any): AxiosPromise { return localVarFp.apiV1ChatsIdDelete(id, options).then((request) => request(axios, basePath)); }, /** * get string by ID * @summary Create Chat - * @param {RagNewInternalSchemaChatCreateRequest} chat Chat + * @param {SchemaChatCreateRequest} chat Chat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV1ChatsPost(chat: RagNewInternalSchemaChatCreateRequest, options?: any): AxiosPromise { + apiV1ChatsPost(chat: SchemaChatCreateRequest, options?: any): AxiosPromise { return localVarFp.apiV1ChatsPost(chat, options).then((request) => request(axios, basePath)); }, }; @@ -2631,13 +2778,13 @@ export class ChatApi extends BaseAPI { /** * 兼容 OpenAI Chat Completion 接口,认证需要使用 Assistant Share Token * @summary OpenAI Chat Completion - * @param {RagNewInternalSchemaOpenAIChatCompletionRequest} chat Chat + * @param {SchemaOpenAIChatCompletionRequest} chat Chat * @param {string} [xUserIP] 指定聊天中的用户 IP 地址,不指定则自动获取。此 IP 地址只会增加至 Prompt 中,如果不希望增加,请关闭系统自带 Prompt 选项 * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ChatApi */ - public apiOpenaiCompatibleV1ChatCompletionsPost(chat: RagNewInternalSchemaOpenAIChatCompletionRequest, xUserIP?: string, options?: RawAxiosRequestConfig) { + public apiOpenaiCompatibleV1ChatCompletionsPost(chat: SchemaOpenAIChatCompletionRequest, xUserIP?: string, options?: RawAxiosRequestConfig) { return ChatApiFp(this.configuration).apiOpenaiCompatibleV1ChatCompletionsPost(chat, xUserIP, options).then((request) => request(this.axios, this.basePath)); } @@ -2668,12 +2815,12 @@ export class ChatApi extends BaseAPI { /** * get string by ID * @summary Create Chat - * @param {RagNewInternalSchemaChatCreateRequest} chat Chat + * @param {SchemaChatCreateRequest} chat Chat * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ChatApi */ - public apiV1ChatsPost(chat: RagNewInternalSchemaChatCreateRequest, options?: RawAxiosRequestConfig) { + public apiV1ChatsPost(chat: SchemaChatCreateRequest, options?: RawAxiosRequestConfig) { return ChatApiFp(this.configuration).apiV1ChatsPost(chat, options).then((request) => request(this.axios, this.basePath)); } } @@ -2807,11 +2954,11 @@ export const ChatMessageApiAxiosParamCreator = function (configuration?: Configu * get string by ID * @summary 添加聊天记录 * @param {number} id - * @param {RagNewInternalSchemaChatMessageAddRequest} message Message + * @param {SchemaChatMessageAddRequest} message Message * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV1ChatsIdMessagesPost: async (id: number, message: RagNewInternalSchemaChatMessageAddRequest, options: RawAxiosRequestConfig = {}): Promise => { + apiV1ChatsIdMessagesPost: async (id: number, message: SchemaChatMessageAddRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiV1ChatsIdMessagesPost', 'id', id) // verify required parameter 'message' is not null or undefined @@ -2939,11 +3086,11 @@ export const ChatMessageApiFp = function(configuration?: Configuration) { * get string by ID * @summary 添加聊天记录 * @param {number} id - * @param {RagNewInternalSchemaChatMessageAddRequest} message Message + * @param {SchemaChatMessageAddRequest} message Message * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiV1ChatsIdMessagesPost(id: number, message: RagNewInternalSchemaChatMessageAddRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async apiV1ChatsIdMessagesPost(id: number, message: SchemaChatMessageAddRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatsIdMessagesPost(id, message, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ChatMessageApi.apiV1ChatsIdMessagesPost']?.[localVarOperationServerIndex]?.url; @@ -3008,11 +3155,11 @@ export const ChatMessageApiFactory = function (configuration?: Configuration, ba * get string by ID * @summary 添加聊天记录 * @param {number} id - * @param {RagNewInternalSchemaChatMessageAddRequest} message Message + * @param {SchemaChatMessageAddRequest} message Message * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV1ChatsIdMessagesPost(id: number, message: RagNewInternalSchemaChatMessageAddRequest, options?: any): AxiosPromise { + apiV1ChatsIdMessagesPost(id: number, message: SchemaChatMessageAddRequest, options?: any): AxiosPromise { return localVarFp.apiV1ChatsIdMessagesPost(id, message, options).then((request) => request(axios, basePath)); }, /** @@ -3077,12 +3224,12 @@ export class ChatMessageApi extends BaseAPI { * get string by ID * @summary 添加聊天记录 * @param {number} id - * @param {RagNewInternalSchemaChatMessageAddRequest} message Message + * @param {SchemaChatMessageAddRequest} message Message * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ChatMessageApi */ - public apiV1ChatsIdMessagesPost(id: number, message: RagNewInternalSchemaChatMessageAddRequest, options?: RawAxiosRequestConfig) { + public apiV1ChatsIdMessagesPost(id: number, message: SchemaChatMessageAddRequest, options?: RawAxiosRequestConfig) { return ChatMessageApiFp(this.configuration).apiV1ChatsIdMessagesPost(id, message, options).then((request) => request(this.axios, this.basePath)); } @@ -3112,11 +3259,11 @@ export const ChatPublicApiAxiosParamCreator = function (configuration?: Configur * * @summary 清空公开对话的聊天记录 * @param {number} chatId - * @param {RagNewInternalSchemaGetPublicChatMessageRequest} schemaGetPublicChatMessageRequest GetPublicChatMessageRequest + * @param {SchemaGetPublicChatMessageRequest} schemaGetPublicChatMessageRequest GetPublicChatMessageRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV1ChatPublicChatIdClearPost: async (chatId: number, schemaGetPublicChatMessageRequest: RagNewInternalSchemaGetPublicChatMessageRequest, options: RawAxiosRequestConfig = {}): Promise => { + apiV1ChatPublicChatIdClearPost: async (chatId: number, schemaGetPublicChatMessageRequest: SchemaGetPublicChatMessageRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'chatId' is not null or undefined assertParamExists('apiV1ChatPublicChatIdClearPost', 'chatId', chatId) // verify required parameter 'schemaGetPublicChatMessageRequest' is not null or undefined @@ -3240,11 +3387,11 @@ export const ChatPublicApiAxiosParamCreator = function (configuration?: Configur * * @summary 增加公开对话的聊天记录 * @param {number} chatId - * @param {RagNewInternalSchemaAddPublicChatMessageRequest} schemaAddPublicChatMessageRequest AddPublicChatMessageRequest + * @param {SchemaAddPublicChatMessageRequest} schemaAddPublicChatMessageRequest AddPublicChatMessageRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV1ChatPublicChatIdMessagesPost: async (chatId: number, schemaAddPublicChatMessageRequest: RagNewInternalSchemaAddPublicChatMessageRequest, options: RawAxiosRequestConfig = {}): Promise => { + apiV1ChatPublicChatIdMessagesPost: async (chatId: number, schemaAddPublicChatMessageRequest: SchemaAddPublicChatMessageRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'chatId' is not null or undefined assertParamExists('apiV1ChatPublicChatIdMessagesPost', 'chatId', chatId) // verify required parameter 'schemaAddPublicChatMessageRequest' is not null or undefined @@ -3279,11 +3426,11 @@ export const ChatPublicApiAxiosParamCreator = function (configuration?: Configur /** * * @summary 获取公开对话 - * @param {RagNewInternalSchemaChatPublicListRequest} schemaChatPublicListRequest ChatPublicListRequest + * @param {SchemaChatPublicListRequest} schemaChatPublicListRequest ChatPublicListRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV1ChatPublicGet: async (schemaChatPublicListRequest: RagNewInternalSchemaChatPublicListRequest, options: RawAxiosRequestConfig = {}): Promise => { + apiV1ChatPublicGet: async (schemaChatPublicListRequest: SchemaChatPublicListRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'schemaChatPublicListRequest' is not null or undefined assertParamExists('apiV1ChatPublicGet', 'schemaChatPublicListRequest', schemaChatPublicListRequest) const localVarPath = `/api/v1/chat_public`; @@ -3315,11 +3462,11 @@ export const ChatPublicApiAxiosParamCreator = function (configuration?: Configur /** * * @summary 通过 API 创建一个公开的对话记录 - * @param {RagNewInternalSchemaChatPublicRequest} schemaChatPublicRequest ChatPublicRequest + * @param {SchemaChatPublicRequest} schemaChatPublicRequest ChatPublicRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV1ChatPublicPost: async (schemaChatPublicRequest: RagNewInternalSchemaChatPublicRequest, options: RawAxiosRequestConfig = {}): Promise => { + apiV1ChatPublicPost: async (schemaChatPublicRequest: SchemaChatPublicRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'schemaChatPublicRequest' is not null or undefined assertParamExists('apiV1ChatPublicPost', 'schemaChatPublicRequest', schemaChatPublicRequest) const localVarPath = `/api/v1/chat_public`; @@ -3362,11 +3509,11 @@ export const ChatPublicApiFp = function(configuration?: Configuration) { * * @summary 清空公开对话的聊天记录 * @param {number} chatId - * @param {RagNewInternalSchemaGetPublicChatMessageRequest} schemaGetPublicChatMessageRequest GetPublicChatMessageRequest + * @param {SchemaGetPublicChatMessageRequest} schemaGetPublicChatMessageRequest GetPublicChatMessageRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiV1ChatPublicChatIdClearPost(chatId: number, schemaGetPublicChatMessageRequest: RagNewInternalSchemaGetPublicChatMessageRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async apiV1ChatPublicChatIdClearPost(chatId: number, schemaGetPublicChatMessageRequest: SchemaGetPublicChatMessageRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatPublicChatIdClearPost(chatId, schemaGetPublicChatMessageRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ChatPublicApi.apiV1ChatPublicChatIdClearPost']?.[localVarOperationServerIndex]?.url; @@ -3405,11 +3552,11 @@ export const ChatPublicApiFp = function(configuration?: Configuration) { * * @summary 增加公开对话的聊天记录 * @param {number} chatId - * @param {RagNewInternalSchemaAddPublicChatMessageRequest} schemaAddPublicChatMessageRequest AddPublicChatMessageRequest + * @param {SchemaAddPublicChatMessageRequest} schemaAddPublicChatMessageRequest AddPublicChatMessageRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiV1ChatPublicChatIdMessagesPost(chatId: number, schemaAddPublicChatMessageRequest: RagNewInternalSchemaAddPublicChatMessageRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async apiV1ChatPublicChatIdMessagesPost(chatId: number, schemaAddPublicChatMessageRequest: SchemaAddPublicChatMessageRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatPublicChatIdMessagesPost(chatId, schemaAddPublicChatMessageRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ChatPublicApi.apiV1ChatPublicChatIdMessagesPost']?.[localVarOperationServerIndex]?.url; @@ -3418,11 +3565,11 @@ export const ChatPublicApiFp = function(configuration?: Configuration) { /** * * @summary 获取公开对话 - * @param {RagNewInternalSchemaChatPublicListRequest} schemaChatPublicListRequest ChatPublicListRequest + * @param {SchemaChatPublicListRequest} schemaChatPublicListRequest ChatPublicListRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiV1ChatPublicGet(schemaChatPublicListRequest: RagNewInternalSchemaChatPublicListRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async apiV1ChatPublicGet(schemaChatPublicListRequest: SchemaChatPublicListRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatPublicGet(schemaChatPublicListRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ChatPublicApi.apiV1ChatPublicGet']?.[localVarOperationServerIndex]?.url; @@ -3431,11 +3578,11 @@ export const ChatPublicApiFp = function(configuration?: Configuration) { /** * * @summary 通过 API 创建一个公开的对话记录 - * @param {RagNewInternalSchemaChatPublicRequest} schemaChatPublicRequest ChatPublicRequest + * @param {SchemaChatPublicRequest} schemaChatPublicRequest ChatPublicRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiV1ChatPublicPost(schemaChatPublicRequest: RagNewInternalSchemaChatPublicRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async apiV1ChatPublicPost(schemaChatPublicRequest: SchemaChatPublicRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatPublicPost(schemaChatPublicRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ChatPublicApi.apiV1ChatPublicPost']?.[localVarOperationServerIndex]?.url; @@ -3455,11 +3602,11 @@ export const ChatPublicApiFactory = function (configuration?: Configuration, bas * * @summary 清空公开对话的聊天记录 * @param {number} chatId - * @param {RagNewInternalSchemaGetPublicChatMessageRequest} schemaGetPublicChatMessageRequest GetPublicChatMessageRequest + * @param {SchemaGetPublicChatMessageRequest} schemaGetPublicChatMessageRequest GetPublicChatMessageRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV1ChatPublicChatIdClearPost(chatId: number, schemaGetPublicChatMessageRequest: RagNewInternalSchemaGetPublicChatMessageRequest, options?: any): AxiosPromise { + apiV1ChatPublicChatIdClearPost(chatId: number, schemaGetPublicChatMessageRequest: SchemaGetPublicChatMessageRequest, options?: any): AxiosPromise { return localVarFp.apiV1ChatPublicChatIdClearPost(chatId, schemaGetPublicChatMessageRequest, options).then((request) => request(axios, basePath)); }, /** @@ -3489,31 +3636,31 @@ export const ChatPublicApiFactory = function (configuration?: Configuration, bas * * @summary 增加公开对话的聊天记录 * @param {number} chatId - * @param {RagNewInternalSchemaAddPublicChatMessageRequest} schemaAddPublicChatMessageRequest AddPublicChatMessageRequest + * @param {SchemaAddPublicChatMessageRequest} schemaAddPublicChatMessageRequest AddPublicChatMessageRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV1ChatPublicChatIdMessagesPost(chatId: number, schemaAddPublicChatMessageRequest: RagNewInternalSchemaAddPublicChatMessageRequest, options?: any): AxiosPromise { + apiV1ChatPublicChatIdMessagesPost(chatId: number, schemaAddPublicChatMessageRequest: SchemaAddPublicChatMessageRequest, options?: any): AxiosPromise { return localVarFp.apiV1ChatPublicChatIdMessagesPost(chatId, schemaAddPublicChatMessageRequest, options).then((request) => request(axios, basePath)); }, /** * * @summary 获取公开对话 - * @param {RagNewInternalSchemaChatPublicListRequest} schemaChatPublicListRequest ChatPublicListRequest + * @param {SchemaChatPublicListRequest} schemaChatPublicListRequest ChatPublicListRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV1ChatPublicGet(schemaChatPublicListRequest: RagNewInternalSchemaChatPublicListRequest, options?: any): AxiosPromise { + apiV1ChatPublicGet(schemaChatPublicListRequest: SchemaChatPublicListRequest, options?: any): AxiosPromise { return localVarFp.apiV1ChatPublicGet(schemaChatPublicListRequest, options).then((request) => request(axios, basePath)); }, /** * * @summary 通过 API 创建一个公开的对话记录 - * @param {RagNewInternalSchemaChatPublicRequest} schemaChatPublicRequest ChatPublicRequest + * @param {SchemaChatPublicRequest} schemaChatPublicRequest ChatPublicRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV1ChatPublicPost(schemaChatPublicRequest: RagNewInternalSchemaChatPublicRequest, options?: any): AxiosPromise { + apiV1ChatPublicPost(schemaChatPublicRequest: SchemaChatPublicRequest, options?: any): AxiosPromise { return localVarFp.apiV1ChatPublicPost(schemaChatPublicRequest, options).then((request) => request(axios, basePath)); }, }; @@ -3530,12 +3677,12 @@ export class ChatPublicApi extends BaseAPI { * * @summary 清空公开对话的聊天记录 * @param {number} chatId - * @param {RagNewInternalSchemaGetPublicChatMessageRequest} schemaGetPublicChatMessageRequest GetPublicChatMessageRequest + * @param {SchemaGetPublicChatMessageRequest} schemaGetPublicChatMessageRequest GetPublicChatMessageRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ChatPublicApi */ - public apiV1ChatPublicChatIdClearPost(chatId: number, schemaGetPublicChatMessageRequest: RagNewInternalSchemaGetPublicChatMessageRequest, options?: RawAxiosRequestConfig) { + public apiV1ChatPublicChatIdClearPost(chatId: number, schemaGetPublicChatMessageRequest: SchemaGetPublicChatMessageRequest, options?: RawAxiosRequestConfig) { return ChatPublicApiFp(this.configuration).apiV1ChatPublicChatIdClearPost(chatId, schemaGetPublicChatMessageRequest, options).then((request) => request(this.axios, this.basePath)); } @@ -3570,36 +3717,36 @@ export class ChatPublicApi extends BaseAPI { * * @summary 增加公开对话的聊天记录 * @param {number} chatId - * @param {RagNewInternalSchemaAddPublicChatMessageRequest} schemaAddPublicChatMessageRequest AddPublicChatMessageRequest + * @param {SchemaAddPublicChatMessageRequest} schemaAddPublicChatMessageRequest AddPublicChatMessageRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ChatPublicApi */ - public apiV1ChatPublicChatIdMessagesPost(chatId: number, schemaAddPublicChatMessageRequest: RagNewInternalSchemaAddPublicChatMessageRequest, options?: RawAxiosRequestConfig) { + public apiV1ChatPublicChatIdMessagesPost(chatId: number, schemaAddPublicChatMessageRequest: SchemaAddPublicChatMessageRequest, options?: RawAxiosRequestConfig) { return ChatPublicApiFp(this.configuration).apiV1ChatPublicChatIdMessagesPost(chatId, schemaAddPublicChatMessageRequest, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary 获取公开对话 - * @param {RagNewInternalSchemaChatPublicListRequest} schemaChatPublicListRequest ChatPublicListRequest + * @param {SchemaChatPublicListRequest} schemaChatPublicListRequest ChatPublicListRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ChatPublicApi */ - public apiV1ChatPublicGet(schemaChatPublicListRequest: RagNewInternalSchemaChatPublicListRequest, options?: RawAxiosRequestConfig) { + public apiV1ChatPublicGet(schemaChatPublicListRequest: SchemaChatPublicListRequest, options?: RawAxiosRequestConfig) { return ChatPublicApiFp(this.configuration).apiV1ChatPublicGet(schemaChatPublicListRequest, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary 通过 API 创建一个公开的对话记录 - * @param {RagNewInternalSchemaChatPublicRequest} schemaChatPublicRequest ChatPublicRequest + * @param {SchemaChatPublicRequest} schemaChatPublicRequest ChatPublicRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ChatPublicApi */ - public apiV1ChatPublicPost(schemaChatPublicRequest: RagNewInternalSchemaChatPublicRequest, options?: RawAxiosRequestConfig) { + public apiV1ChatPublicPost(schemaChatPublicRequest: SchemaChatPublicRequest, options?: RawAxiosRequestConfig) { return ChatPublicApiFp(this.configuration).apiV1ChatPublicPost(schemaChatPublicRequest, options).then((request) => request(this.axios, this.basePath)); } } @@ -3971,11 +4118,11 @@ export const ToolApiAxiosParamCreator = function (configuration?: Configuration) /** * Create tool * @summary Create Tool - * @param {RagNewInternalSchemaToolCreateRequest} tool Tool + * @param {SchemaToolCreateRequest} tool Tool * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV1ToolsPost: async (tool: RagNewInternalSchemaToolCreateRequest, options: RawAxiosRequestConfig = {}): Promise => { + apiV1ToolsPost: async (tool: SchemaToolCreateRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'tool' is not null or undefined assertParamExists('apiV1ToolsPost', 'tool', tool) const localVarPath = `/api/v1/tools`; @@ -4010,11 +4157,11 @@ export const ToolApiAxiosParamCreator = function (configuration?: Configuration) /** * 如果你的 Tool Discovery 内容改变了,你需要调用此接口更新数据 * @summary 校验 Discovery 语法 - * @param {RagNewInternalSchemaToolDiscoveryInput} toolDiscoveryInput ToolDiscoveryInput + * @param {SchemaToolDiscoveryInput} toolDiscoveryInput ToolDiscoveryInput * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV1ToolsSyntaxPost: async (toolDiscoveryInput: RagNewInternalSchemaToolDiscoveryInput, options: RawAxiosRequestConfig = {}): Promise => { + apiV1ToolsSyntaxPost: async (toolDiscoveryInput: SchemaToolDiscoveryInput, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'toolDiscoveryInput' is not null or undefined assertParamExists('apiV1ToolsSyntaxPost', 'toolDiscoveryInput', toolDiscoveryInput) const localVarPath = `/api/v1/tools/syntax`; @@ -4110,11 +4257,11 @@ export const ToolApiFp = function(configuration?: Configuration) { /** * Create tool * @summary Create Tool - * @param {RagNewInternalSchemaToolCreateRequest} tool Tool + * @param {SchemaToolCreateRequest} tool Tool * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiV1ToolsPost(tool: RagNewInternalSchemaToolCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async apiV1ToolsPost(tool: SchemaToolCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ToolsPost(tool, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ToolApi.apiV1ToolsPost']?.[localVarOperationServerIndex]?.url; @@ -4123,11 +4270,11 @@ export const ToolApiFp = function(configuration?: Configuration) { /** * 如果你的 Tool Discovery 内容改变了,你需要调用此接口更新数据 * @summary 校验 Discovery 语法 - * @param {RagNewInternalSchemaToolDiscoveryInput} toolDiscoveryInput ToolDiscoveryInput + * @param {SchemaToolDiscoveryInput} toolDiscoveryInput ToolDiscoveryInput * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiV1ToolsSyntaxPost(toolDiscoveryInput: RagNewInternalSchemaToolDiscoveryInput, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async apiV1ToolsSyntaxPost(toolDiscoveryInput: SchemaToolDiscoveryInput, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ToolsSyntaxPost(toolDiscoveryInput, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ToolApi.apiV1ToolsSyntaxPost']?.[localVarOperationServerIndex]?.url; @@ -4185,21 +4332,21 @@ export const ToolApiFactory = function (configuration?: Configuration, basePath? /** * Create tool * @summary Create Tool - * @param {RagNewInternalSchemaToolCreateRequest} tool Tool + * @param {SchemaToolCreateRequest} tool Tool * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV1ToolsPost(tool: RagNewInternalSchemaToolCreateRequest, options?: any): AxiosPromise { + apiV1ToolsPost(tool: SchemaToolCreateRequest, options?: any): AxiosPromise { return localVarFp.apiV1ToolsPost(tool, options).then((request) => request(axios, basePath)); }, /** * 如果你的 Tool Discovery 内容改变了,你需要调用此接口更新数据 * @summary 校验 Discovery 语法 - * @param {RagNewInternalSchemaToolDiscoveryInput} toolDiscoveryInput ToolDiscoveryInput + * @param {SchemaToolDiscoveryInput} toolDiscoveryInput ToolDiscoveryInput * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV1ToolsSyntaxPost(toolDiscoveryInput: RagNewInternalSchemaToolDiscoveryInput, options?: any): AxiosPromise { + apiV1ToolsSyntaxPost(toolDiscoveryInput: SchemaToolDiscoveryInput, options?: any): AxiosPromise { return localVarFp.apiV1ToolsSyntaxPost(toolDiscoveryInput, options).then((request) => request(axios, basePath)); }, }; @@ -4262,24 +4409,24 @@ export class ToolApi extends BaseAPI { /** * Create tool * @summary Create Tool - * @param {RagNewInternalSchemaToolCreateRequest} tool Tool + * @param {SchemaToolCreateRequest} tool Tool * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ToolApi */ - public apiV1ToolsPost(tool: RagNewInternalSchemaToolCreateRequest, options?: RawAxiosRequestConfig) { + public apiV1ToolsPost(tool: SchemaToolCreateRequest, options?: RawAxiosRequestConfig) { return ToolApiFp(this.configuration).apiV1ToolsPost(tool, options).then((request) => request(this.axios, this.basePath)); } /** * 如果你的 Tool Discovery 内容改变了,你需要调用此接口更新数据 * @summary 校验 Discovery 语法 - * @param {RagNewInternalSchemaToolDiscoveryInput} toolDiscoveryInput ToolDiscoveryInput + * @param {SchemaToolDiscoveryInput} toolDiscoveryInput ToolDiscoveryInput * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ToolApi */ - public apiV1ToolsSyntaxPost(toolDiscoveryInput: RagNewInternalSchemaToolDiscoveryInput, options?: RawAxiosRequestConfig) { + public apiV1ToolsSyntaxPost(toolDiscoveryInput: SchemaToolDiscoveryInput, options?: RawAxiosRequestConfig) { return ToolApiFp(this.configuration).apiV1ToolsSyntaxPost(toolDiscoveryInput, options).then((request) => request(this.axios, this.basePath)); } } diff --git a/src/pages/chats/[id]/index.vue b/src/pages/chats/[id]/index.vue index 210d022..92bbc18 100644 --- a/src/pages/chats/[id]/index.vue +++ b/src/pages/chats/[id]/index.vue @@ -13,7 +13,7 @@
AI
系统
-
图片
+
文件
用户
@@ -91,7 +91,6 @@ import { api, conf } from "@/plugins/api"; import VueMarkdown from "vue-markdown-render"; import router from "@/router"; import { useChatStore } from "@/stores/chat"; -import { ApiV1ChatPublicChatIdMessagesGet200Response } from "@/api"; import config from "@/config/config"; const chatStore = useChatStore(); @@ -99,7 +98,7 @@ const chatStore = useChatStore(); // @ts-ignore const chatId = useRoute().params.id as number; -const messages: Ref = ref({ +const messages: Ref = ref({ data: [], }); const input = ref(""); @@ -242,7 +241,11 @@ function streamChat(streamId: String) { const getMessages = () => { api.ChatMessage.apiV1ChatsIdMessagesGet(chatId).then((res) => { - messages.value = res.data; + res.data.data?.forEach((message: any) => { + if (message.role === "assistant" || message.role === "user") { + messages.value.data?.push(message); + } + }); }); }; @@ -269,6 +272,7 @@ const uploadImage = () => { chatId, { image: fileUpload.value, + url: "", }, { headers: { diff --git a/src/pages/public_chat/index.vue b/src/pages/public_chat/index.vue index 16f7a07..a027d90 100644 --- a/src/pages/public_chat/index.vue +++ b/src/pages/public_chat/index.vue @@ -88,11 +88,7 @@ import { ref } from "vue"; import { api, conf } from "@/plugins/api"; import VueMarkdown from "vue-markdown-render"; import router from "@/router"; -import { - ApiV1ChatPublicChatIdMessagesGet200Response, - RagNewInternalSchemaChatPublicRequest, - RagNewInternalSchemaGetPublicChatMessageRequest, -} from "@/api"; +import { ApiV1ChatPublicChatIdMessagesGet200Response } from "@/api"; import { usePublicChatStore } from "@/stores/public_chat"; import config from "@/config/config"; @@ -121,15 +117,14 @@ const messages: Ref = ref({ data: [], }); -const publicChatInfo: Ref = - ref({ - assistant_token: queries.get("assistant_token") as string, - guest_id: publicChatStore.guest_id, - }); +const publicChatInfo = ref({ + assistant_token: queries.get("assistant_token") as string, + guest_id: publicChatStore.guest_id, +}); const currentDate = new Date(); -const publicNewChat: Ref = ref({ +const publicNewChat = ref({ assistant_token: publicChatInfo.value.assistant_token, name: currentDate.toLocaleDateString() + " 时的对话", guest_id: publicChatStore.guest_id, @@ -275,7 +270,11 @@ const getMessages = () => { publicChatInfo.value.assistant_token, publicChatInfo.value.guest_id, ).then((res) => { - messages.value = res.data; + res.data.data?.forEach((message: any) => { + if (message.role === "assistant" || message.role === "user") { + messages.value.data?.push(message); + } + }); }); }; @@ -307,6 +306,7 @@ const uploadImage = () => { chatId.value, { image: fileUpload.value, + url: "", assistant_token: publicChatInfo.value.assistant_token, guest_id: publicChatInfo.value.guest_id, }, diff --git a/yarn.lock b/yarn.lock index 1b16575..a46ae7b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -79,7 +79,7 @@ js-tokens "^4.0.0" picocolors "^1.0.0" -"@babel/parser@^7.15.8", "@babel/parser@^7.24.0", "@babel/parser@^7.24.6", "@babel/parser@^7.24.7", "@babel/parser@^7.24.8", "@babel/parser@^7.7.0": +"@babel/parser@^7.24.0", "@babel/parser@^7.24.6", "@babel/parser@^7.24.7", "@babel/parser@^7.24.8", "@babel/parser@^7.7.0": version "7.24.8" resolved "https://mirrors.cloud.tencent.com/npm/@babel/parser/-/parser-7.24.8.tgz" integrity sha512-WzfbgXOkGzZiXXCqk43kKwZjzwx4oulxZi3nq2TYL9mOjQv6kYwul9mz6ID36njuL7Xkp6nJEfok848Zj10j/w== @@ -125,6 +125,121 @@ "@babel/helper-validator-identifier" "^7.24.7" to-fast-properties "^2.0.0" +"@esbuild/aix-ppc64@0.21.5": + version "0.21.5" + resolved "https://registry.yarnpkg.com/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz#c7184a326533fcdf1b8ee0733e21c713b975575f" + integrity sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ== + +"@esbuild/android-arm64@0.21.5": + version "0.21.5" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz#09d9b4357780da9ea3a7dfb833a1f1ff439b4052" + integrity sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A== + +"@esbuild/android-arm@0.21.5": + version "0.21.5" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.21.5.tgz#9b04384fb771926dfa6d7ad04324ecb2ab9b2e28" + integrity sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg== + +"@esbuild/android-x64@0.21.5": + version "0.21.5" + resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.21.5.tgz#29918ec2db754cedcb6c1b04de8cd6547af6461e" + integrity sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA== + +"@esbuild/darwin-arm64@0.21.5": + version "0.21.5" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz#e495b539660e51690f3928af50a76fb0a6ccff2a" + integrity sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ== + +"@esbuild/darwin-x64@0.21.5": + version "0.21.5" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz#c13838fa57372839abdddc91d71542ceea2e1e22" + integrity sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw== + +"@esbuild/freebsd-arm64@0.21.5": + version "0.21.5" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz#646b989aa20bf89fd071dd5dbfad69a3542e550e" + integrity sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g== + +"@esbuild/freebsd-x64@0.21.5": + version "0.21.5" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz#aa615cfc80af954d3458906e38ca22c18cf5c261" + integrity sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ== + +"@esbuild/linux-arm64@0.21.5": + version "0.21.5" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz#70ac6fa14f5cb7e1f7f887bcffb680ad09922b5b" + integrity sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q== + +"@esbuild/linux-arm@0.21.5": + version "0.21.5" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz#fc6fd11a8aca56c1f6f3894f2bea0479f8f626b9" + integrity sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA== + +"@esbuild/linux-ia32@0.21.5": + version "0.21.5" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz#3271f53b3f93e3d093d518d1649d6d68d346ede2" + integrity sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg== + +"@esbuild/linux-loong64@0.21.5": + version "0.21.5" + resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz#ed62e04238c57026aea831c5a130b73c0f9f26df" + integrity sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg== + +"@esbuild/linux-mips64el@0.21.5": + version "0.21.5" + resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz#e79b8eb48bf3b106fadec1ac8240fb97b4e64cbe" + integrity sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg== + +"@esbuild/linux-ppc64@0.21.5": + version "0.21.5" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz#5f2203860a143b9919d383ef7573521fb154c3e4" + integrity sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w== + +"@esbuild/linux-riscv64@0.21.5": + version "0.21.5" + resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz#07bcafd99322d5af62f618cb9e6a9b7f4bb825dc" + integrity sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA== + +"@esbuild/linux-s390x@0.21.5": + version "0.21.5" + resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz#b7ccf686751d6a3e44b8627ababc8be3ef62d8de" + integrity sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A== + +"@esbuild/linux-x64@0.21.5": + version "0.21.5" + resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz#6d8f0c768e070e64309af8004bb94e68ab2bb3b0" + integrity sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ== + +"@esbuild/netbsd-x64@0.21.5": + version "0.21.5" + resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz#bbe430f60d378ecb88decb219c602667387a6047" + integrity sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg== + +"@esbuild/openbsd-x64@0.21.5": + version "0.21.5" + resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz#99d1cf2937279560d2104821f5ccce220cb2af70" + integrity sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow== + +"@esbuild/sunos-x64@0.21.5": + version "0.21.5" + resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz#08741512c10d529566baba837b4fe052c8f3487b" + integrity sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg== + +"@esbuild/win32-arm64@0.21.5": + version "0.21.5" + resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz#675b7385398411240735016144ab2e99a60fc75d" + integrity sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A== + +"@esbuild/win32-ia32@0.21.5": + version "0.21.5" + resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz#1bfc3ce98aa6ca9a0969e4d2af72144c59c1193b" + integrity sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA== + +"@esbuild/win32-x64@0.21.5": + version "0.21.5" + resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz#acad351d582d157bb145535db2a6ff53dd514b5c" + integrity sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw== + "@eslint-community/eslint-utils@^4.1.2", "@eslint-community/eslint-utils@^4.2.0", "@eslint-community/eslint-utils@^4.4.0": version "4.4.0" resolved "https://mirrors.cloud.tencent.com/npm/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz" @@ -235,26 +350,26 @@ resolved "https://mirrors.cloud.tencent.com/npm/@nestjs/axios/-/axios-3.0.2.tgz" integrity sha512-Z6GuOUdNQjP7FX+OuV2Ybyamse+/e0BFdTWBX5JxpBDKA+YkdLynDgG6HTF04zy6e9zPa19UX0WA2VDoehwhXQ== -"@nestjs/common@^10.0.0", "@nestjs/common@^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0", "@nestjs/common@10.3.0": +"@nestjs/common@10.3.0": version "10.3.0" resolved "https://mirrors.cloud.tencent.com/npm/@nestjs/common/-/common-10.3.0.tgz" integrity sha512-DGv34UHsZBxCM3H5QGE2XE/+oLJzz5+714JQjBhjD9VccFlQs3LRxo/epso4l7nJIiNlZkPyIUC8WzfU/5RTsQ== dependencies: + uid "2.0.2" iterare "1.2.1" tslib "2.6.2" - uid "2.0.2" "@nestjs/core@10.3.0": version "10.3.0" resolved "https://mirrors.cloud.tencent.com/npm/@nestjs/core/-/core-10.3.0.tgz" integrity sha512-N06P5ncknW/Pm8bj964WvLIZn2gNhHliCBoAO1LeBvNImYkecqKcrmLbY49Fa1rmMfEM3MuBHeDys3edeuYAOA== dependencies: + uid "2.0.2" "@nuxtjs/opencollective" "0.3.2" fast-safe-stringify "2.1.1" iterare "1.2.1" path-to-regexp "3.2.0" tslib "2.6.2" - uid "2.0.2" "@nodelib/fs.scandir@2.1.5": version "2.1.5" @@ -264,7 +379,7 @@ "@nodelib/fs.stat" "2.0.5" run-parallel "^1.1.9" -"@nodelib/fs.stat@^2.0.2", "@nodelib/fs.stat@2.0.5": +"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": version "2.0.5" resolved "https://mirrors.cloud.tencent.com/npm/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz" integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== @@ -329,22 +444,97 @@ estree-walker "^2.0.2" picomatch "^2.3.1" -"@rollup/rollup-win32-x64-msvc@^4.20.0": - version "4.20.0" - resolved "https://mirrors.cloud.tencent.com/npm/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.20.0.tgz" - integrity sha512-aJ1EJSuTdGnM6qbVC4B5DSmozPTqIag9fSzXRNNo+humQLG89XpPgdt16Ia56ORD7s+H8Pmyx44uczDQ0yDzpg== +"@rollup/rollup-android-arm-eabi@4.19.0": + version "4.19.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.19.0.tgz#3d9fd50164b94964f5de68c3c4ce61933b3a338d" + integrity sha512-JlPfZ/C7yn5S5p0yKk7uhHTTnFlvTgLetl2VxqE518QgyM7C9bSfFTYvB/Q/ftkq0RIPY4ySxTz+/wKJ/dXC0w== + +"@rollup/rollup-android-arm64@4.19.0": + version "4.19.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.19.0.tgz#e1a6d4bca2eb08c84fd996a4bf896ce4b6f4014c" + integrity sha512-RDxUSY8D1tWYfn00DDi5myxKgOk6RvWPxhmWexcICt/MEC6yEMr4HNCu1sXXYLw8iAsg0D44NuU+qNq7zVWCrw== + +"@rollup/rollup-darwin-arm64@4.19.0": + version "4.19.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.19.0.tgz#0a3fffea69489a24a96079af414b0be78df8abbc" + integrity sha512-emvKHL4B15x6nlNTBMtIaC9tLPRpeA5jMvRLXVbl/W9Ie7HhkrE7KQjvgS9uxgatL1HmHWDXk5TTS4IaNJxbAA== + +"@rollup/rollup-darwin-x64@4.19.0": + version "4.19.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.19.0.tgz#13fbdb15f58f090871b0ffff047ece06ad6ad74c" + integrity sha512-fO28cWA1dC57qCd+D0rfLC4VPbh6EOJXrreBmFLWPGI9dpMlER2YwSPZzSGfq11XgcEpPukPTfEVFtw2q2nYJg== + +"@rollup/rollup-linux-arm-gnueabihf@4.19.0": + version "4.19.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.19.0.tgz#e9d9219ddf6f6e946e2ee322198af12466d2c868" + integrity sha512-2Rn36Ubxdv32NUcfm0wB1tgKqkQuft00PtM23VqLuCUR4N5jcNWDoV5iBC9jeGdgS38WK66ElncprqgMUOyomw== + +"@rollup/rollup-linux-arm-musleabihf@4.19.0": + version "4.19.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.19.0.tgz#4ba804a00b5e793196a622f6977e05f23e01f59a" + integrity sha512-gJuzIVdq/X1ZA2bHeCGCISe0VWqCoNT8BvkQ+BfsixXwTOndhtLUpOg0A1Fcx/+eA6ei6rMBzlOz4JzmiDw7JQ== + +"@rollup/rollup-linux-arm64-gnu@4.19.0": + version "4.19.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.19.0.tgz#d871e3f41de759a6db27fc99235b782ba47c15cc" + integrity sha512-0EkX2HYPkSADo9cfeGFoQ7R0/wTKb7q6DdwI4Yn/ULFE1wuRRCHybxpl2goQrx4c/yzK3I8OlgtBu4xvted0ug== + +"@rollup/rollup-linux-arm64-musl@4.19.0": + version "4.19.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.19.0.tgz#6e63f7ad4cc51bd2c693a2826fd279de9eaa05b5" + integrity sha512-GlIQRj9px52ISomIOEUq/IojLZqzkvRpdP3cLgIE1wUWaiU5Takwlzpz002q0Nxxr1y2ZgxC2obWxjr13lvxNQ== + +"@rollup/rollup-linux-powerpc64le-gnu@4.19.0": + version "4.19.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.19.0.tgz#1540b284d91c440bc9fa7a1714cfb71a5597e94d" + integrity sha512-N6cFJzssruDLUOKfEKeovCKiHcdwVYOT1Hs6dovDQ61+Y9n3Ek4zXvtghPPelt6U0AH4aDGnDLb83uiJMkWYzQ== + +"@rollup/rollup-linux-riscv64-gnu@4.19.0": + version "4.19.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.19.0.tgz#70ae58103b5bc7ba2e2235738b51d97022c8ef92" + integrity sha512-2DnD3mkS2uuam/alF+I7M84koGwvn3ZVD7uG+LEWpyzo/bq8+kKnus2EVCkcvh6PlNB8QPNFOz6fWd5N8o1CYg== + +"@rollup/rollup-linux-s390x-gnu@4.19.0": + version "4.19.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.19.0.tgz#579ca5f271421a961d3c73d221202c79e02ff03a" + integrity sha512-D6pkaF7OpE7lzlTOFCB2m3Ngzu2ykw40Nka9WmKGUOTS3xcIieHe82slQlNq69sVB04ch73thKYIWz/Ian8DUA== + +"@rollup/rollup-linux-x64-gnu@4.19.0": + version "4.19.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.19.0.tgz#f0282d761b8b4e7b92b236813475248e37231849" + integrity sha512-HBndjQLP8OsdJNSxpNIN0einbDmRFg9+UQeZV1eiYupIRuZsDEoeGU43NQsS34Pp166DtwQOnpcbV/zQxM+rWA== + +"@rollup/rollup-linux-x64-musl@4.19.0": + version "4.19.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.19.0.tgz#65da807ac66c505ad14b76f1e5976006cb67dd5f" + integrity sha512-HxfbvfCKJe/RMYJJn0a12eiOI9OOtAUF4G6ozrFUK95BNyoJaSiBjIOHjZskTUffUrB84IPKkFG9H9nEvJGW6A== + +"@rollup/rollup-win32-arm64-msvc@4.19.0": + version "4.19.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.19.0.tgz#1eed24b91f421c2eea8bb7ca8889ba0c867e1780" + integrity sha512-HxDMKIhmcguGTiP5TsLNolwBUK3nGGUEoV/BO9ldUBoMLBssvh4J0X8pf11i1fTV7WShWItB1bKAKjX4RQeYmg== + +"@rollup/rollup-win32-ia32-msvc@4.19.0": + version "4.19.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.19.0.tgz#1ed93c9cdc84e185359797a686f4d1576afcea58" + integrity sha512-xItlIAZZaiG/u0wooGzRsx11rokP4qyc/79LkAOdznGRAbOFc+SfEdfUOszG1odsHNgwippUJavag/+W/Etc6Q== "@rollup/rollup-win32-x64-msvc@4.19.0": version "4.19.0" resolved "https://mirrors.cloud.tencent.com/npm/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.19.0.tgz" integrity sha512-xNo5fV5ycvCCKqiZcpB65VMR11NJB+StnxHz20jdqRAktfdfzhgjTiJ2doTDQE/7dqGaV5I7ZGqKpgph6lCIag== +"@rollup/rollup-win32-x64-msvc@^4.20.0": + version "4.20.0" + resolved "https://mirrors.cloud.tencent.com/npm/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.20.0.tgz" + integrity sha512-aJ1EJSuTdGnM6qbVC4B5DSmozPTqIag9fSzXRNNo+humQLG89XpPgdt16Ia56ORD7s+H8Pmyx44uczDQ0yDzpg== + "@types/big.js@^6.2.2": version "6.2.2" resolved "https://mirrors.cloud.tencent.com/npm/@types/big.js/-/big.js-6.2.2.tgz" integrity sha512-e2cOW9YlVzFY2iScnGBBkplKsrn2CsObHQ2Hiw4V1sSyiGbgWL8IyqE3zFi1Pt5o1pdAtYkDAIsF3KKUPjdzaA== -"@types/estree@^1.0.0", "@types/estree@1.0.5": +"@types/estree@1.0.5", "@types/estree@^1.0.0": version "1.0.5" resolved "https://mirrors.cloud.tencent.com/npm/@types/estree/-/estree-1.0.5.tgz" integrity sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw== @@ -372,7 +562,7 @@ resolved "https://mirrors.cloud.tencent.com/npm/@types/mdurl/-/mdurl-2.0.0.tgz" integrity sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg== -"@types/node@^18.0.0 || >=20.0.0", "@types/node@^20.14.14": +"@types/node@^20.14.14": version "20.14.14" resolved "https://mirrors.cloud.tencent.com/npm/@types/node/-/node-20.14.14.tgz" integrity sha512-d64f00982fS9YoOgJkAMolK7MN8Iq3TDdVjchbYHdEmjth/DHowx82GnoA+tVUAN+7vxfYUgAzi+JXbKNd2SDQ== @@ -394,7 +584,7 @@ natural-compare "^1.4.0" ts-api-utils "^1.3.0" -"@typescript-eslint/parser@^7.0.0", "@typescript-eslint/parser@^7.1.1": +"@typescript-eslint/parser@^7.1.1": version "7.17.0" resolved "https://mirrors.cloud.tencent.com/npm/@typescript-eslint/parser/-/parser-7.17.0.tgz" integrity sha512-puiYfGeg5Ydop8eusb/Hy1k7QmOU6X3nvsqCgzrB2K4qMavK//21+PzNE8qeECgNOIoertJPUC1SpegHDI515A== @@ -470,7 +660,7 @@ resolved "https://mirrors.cloud.tencent.com/npm/@vitejs/plugin-vue/-/plugin-vue-5.1.0.tgz" integrity sha512-QMRxARyrdiwi1mj3AW4fLByoHTavreXq0itdEW696EihXglf1MB3D4C2gBvE0jMPH29ZjC3iK8aIaUMLf4EOGA== -"@volar/language-core@~2.4.0-alpha.18", "@volar/language-core@2.4.0-alpha.18": +"@volar/language-core@2.4.0-alpha.18", "@volar/language-core@~2.4.0-alpha.18": version "2.4.0-alpha.18" resolved "https://mirrors.cloud.tencent.com/npm/@volar/language-core/-/language-core-2.4.0-alpha.18.tgz" integrity sha512-JAYeJvYQQROmVRtSBIczaPjP3DX4QW1fOqW1Ebs0d3Y3EwSNRglz03dSv0Dm61dzd0Yx3WgTW3hndDnTQqgmyg== @@ -514,7 +704,7 @@ estree-walker "^2.0.2" source-map-js "^1.2.0" -"@vue/compiler-dom@^3.4.0", "@vue/compiler-dom@3.4.34": +"@vue/compiler-dom@3.4.34", "@vue/compiler-dom@^3.4.0": version "3.4.34" resolved "https://mirrors.cloud.tencent.com/npm/@vue/compiler-dom/-/compiler-dom-3.4.34.tgz" integrity sha512-3PUOTS1h5cskdOJMExCu2TInXuM0j60DRPpSCJDqOCupCfUZCJoyQmKtRmA8EgDNZ5kcEE7vketamRZfrEuVDw== @@ -522,7 +712,7 @@ "@vue/compiler-core" "3.4.34" "@vue/shared" "3.4.34" -"@vue/compiler-sfc@^3.4.33", "@vue/compiler-sfc@3.4.34": +"@vue/compiler-sfc@3.4.34", "@vue/compiler-sfc@^3.4.33": version "3.4.34" resolved "https://mirrors.cloud.tencent.com/npm/@vue/compiler-sfc/-/compiler-sfc-3.4.34.tgz" integrity sha512-x6lm0UrM03jjDXTPZgD9Ad8bIVD1ifWNit2EaWQIZB5CULr46+FbLQ5RpK7AXtDHGjx9rmvC7QRCTjsiGkAwRw== @@ -614,7 +804,7 @@ "@vue/compiler-ssr" "3.4.34" "@vue/shared" "3.4.34" -"@vue/shared@^3.4.0", "@vue/shared@3.4.34": +"@vue/shared@3.4.34", "@vue/shared@^3.4.0": version "3.4.34" resolved "https://mirrors.cloud.tencent.com/npm/@vue/shared/-/shared-3.4.34.tgz" integrity sha512-x5LmiRLpRsd9KTjAB8MPKf0CDPMcuItjP0gbNqFCIgL1I8iYp4zglhj9w9FPCdIbHG2M91RVeIbArFfFTz9I3A== @@ -631,7 +821,7 @@ acorn-jsx@^5.3.2: resolved "https://mirrors.cloud.tencent.com/npm/acorn-jsx/-/acorn-jsx-5.3.2.tgz" integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== -"acorn@^6.0.0 || ^7.0.0 || ^8.0.0", acorn@^8.11.3, acorn@^8.12.1, acorn@^8.9.0: +acorn@^8.11.3, acorn@^8.12.1, acorn@^8.9.0: version "8.12.1" resolved "https://mirrors.cloud.tencent.com/npm/acorn/-/acorn-8.12.1.tgz" integrity sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg== @@ -819,7 +1009,7 @@ available-typed-arrays@^1.0.7: dependencies: possible-typed-array-names "^1.0.0" -axios@^1.3.1, axios@1.6.8: +axios@1.6.8, axios@^1.3.1: version "1.6.8" resolved "https://mirrors.cloud.tencent.com/npm/axios/-/axios-1.6.8.tgz" integrity sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ== @@ -937,6 +1127,14 @@ camelcase-css@^2.0.1: resolved "https://mirrors.cloud.tencent.com/npm/camelcase-css/-/camelcase-css-2.0.1.tgz" integrity sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA== +chalk@4.1.2, chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.1: + version "4.1.2" + resolved "https://mirrors.cloud.tencent.com/npm/chalk/-/chalk-4.1.2.tgz" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + chalk@^2.4.2: version "2.4.2" resolved "https://mirrors.cloud.tencent.com/npm/chalk/-/chalk-2.4.2.tgz" @@ -946,20 +1144,12 @@ chalk@^2.4.2: escape-string-regexp "^1.0.5" supports-color "^5.3.0" -chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.1, chalk@4.1.2: - version "4.1.2" - resolved "https://mirrors.cloud.tencent.com/npm/chalk/-/chalk-4.1.2.tgz" - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - chardet@^0.7.0: version "0.7.0" resolved "https://mirrors.cloud.tencent.com/npm/chardet/-/chardet-0.7.0.tgz" integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== -chokidar@^3.5.3, chokidar@^3.6.0, "chokidar@>=3.0.0 <4.0.0": +"chokidar@>=3.0.0 <4.0.0", chokidar@^3.5.3, chokidar@^3.6.0: version "3.6.0" resolved "https://mirrors.cloud.tencent.com/npm/chokidar/-/chokidar-3.6.0.tgz" integrity sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw== @@ -1019,16 +1209,16 @@ color-convert@^2.0.1: dependencies: color-name "~1.1.4" -color-name@~1.1.4: - version "1.1.4" - resolved "https://mirrors.cloud.tencent.com/npm/color-name/-/color-name-1.1.4.tgz" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - color-name@1.1.3: version "1.1.3" resolved "https://mirrors.cloud.tencent.com/npm/color-name/-/color-name-1.1.3.tgz" integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== +color-name@~1.1.4: + version "1.1.4" + resolved "https://mirrors.cloud.tencent.com/npm/color-name/-/color-name-1.1.4.tgz" + integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== + combined-stream@^1.0.8: version "1.0.8" resolved "https://mirrors.cloud.tencent.com/npm/combined-stream/-/combined-stream-1.0.8.tgz" @@ -1036,16 +1226,16 @@ combined-stream@^1.0.8: dependencies: delayed-stream "~1.0.0" -commander@^4.0.0: - version "4.1.1" - resolved "https://mirrors.cloud.tencent.com/npm/commander/-/commander-4.1.1.tgz" - integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA== - commander@8.3.0: version "8.3.0" resolved "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz" integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww== +commander@^4.0.0: + version "4.1.1" + resolved "https://mirrors.cloud.tencent.com/npm/commander/-/commander-4.1.1.tgz" + integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA== + compare-versions@4.1.4: version "4.1.4" resolved "https://registry.npmjs.org/compare-versions/-/compare-versions-4.1.4.tgz" @@ -1155,6 +1345,13 @@ de-indent@^1.0.2: resolved "https://mirrors.cloud.tencent.com/npm/de-indent/-/de-indent-1.0.2.tgz" integrity sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg== +debug@4, debug@^4.3.1, debug@^4.3.2, debug@^4.3.3, debug@^4.3.4, debug@^4.3.5: + version "4.3.5" + resolved "https://mirrors.cloud.tencent.com/npm/debug/-/debug-4.3.5.tgz" + integrity sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg== + dependencies: + ms "2.1.2" + debug@^3.2.7: version "3.2.7" resolved "https://mirrors.cloud.tencent.com/npm/debug/-/debug-3.2.7.tgz" @@ -1162,13 +1359,6 @@ debug@^3.2.7: dependencies: ms "^2.1.1" -debug@^4.3.1, debug@^4.3.2, debug@^4.3.3, debug@^4.3.4, debug@^4.3.5, debug@4: - version "4.3.5" - resolved "https://mirrors.cloud.tencent.com/npm/debug/-/debug-4.3.5.tgz" - integrity sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg== - dependencies: - ms "2.1.2" - deep-is@^0.1.3: version "0.1.4" resolved "https://mirrors.cloud.tencent.com/npm/deep-is/-/deep-is-0.1.4.tgz" @@ -1419,7 +1609,7 @@ eslint-compat-utils@^0.5.1: dependencies: semver "^7.5.4" -eslint-config-prettier@*, eslint-config-prettier@^9.1.0: +eslint-config-prettier@^9.1.0: version "9.1.0" resolved "https://mirrors.cloud.tencent.com/npm/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz" integrity sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw== @@ -1479,7 +1669,7 @@ eslint-plugin-es@^3.0.0: eslint-utils "^2.0.0" regexpp "^3.0.0" -eslint-plugin-import@^2.25.2, eslint-plugin-import@^2.29.1: +eslint-plugin-import@^2.29.1: version "2.29.1" resolved "https://mirrors.cloud.tencent.com/npm/eslint-plugin-import/-/eslint-plugin-import-2.29.1.tgz" integrity sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw== @@ -1502,7 +1692,7 @@ eslint-plugin-import@^2.25.2, eslint-plugin-import@^2.29.1: semver "^6.3.1" tsconfig-paths "^3.15.0" -"eslint-plugin-n@^15.0.0 || ^16.0.0 ", eslint-plugin-n@^16.0.0, eslint-plugin-n@^16.6.2: +eslint-plugin-n@^16.6.2: version "16.6.2" resolved "https://mirrors.cloud.tencent.com/npm/eslint-plugin-n/-/eslint-plugin-n-16.6.2.tgz" integrity sha512-6TyDmZ1HXoFQXnhCTUjVFULReoBPOAjpuiKELMkeP40yffI/1ZRO+d9ug/VC6fqISo2WkuIBk3cvuRPALaWlOQ== @@ -1539,7 +1729,7 @@ eslint-plugin-prettier@^5.2.1: prettier-linter-helpers "^1.0.0" synckit "^0.9.1" -eslint-plugin-promise@^6.0.0, eslint-plugin-promise@^6.1.1, eslint-plugin-promise@^6.4.0: +eslint-plugin-promise@^6.1.1, eslint-plugin-promise@^6.4.0: version "6.6.0" resolved "https://mirrors.cloud.tencent.com/npm/eslint-plugin-promise/-/eslint-plugin-promise-6.6.0.tgz" integrity sha512-57Zzfw8G6+Gq7axm2Pdo3gW/Rx3h9Yywgn61uE/3elTCOePEHVrn2i5CdfBwA1BLK0Q0WqctICIUSqXZW/VprQ== @@ -1549,7 +1739,7 @@ eslint-plugin-standard@^4.1.0: resolved "https://mirrors.cloud.tencent.com/npm/eslint-plugin-standard/-/eslint-plugin-standard-4.1.0.tgz" integrity sha512-ZL7+QRixjTR6/528YNGyDotyffm5OQst/sGxKDwGb9Uqs4In5Egi4+jbobhqJoyoCM6/7v/1A5fhQ7ScMtDjaQ== -eslint-plugin-vue@^9.0.0, eslint-plugin-vue@^9.23.0, eslint-plugin-vue@^9.27.0, eslint-plugin-vue@^9.6.0: +eslint-plugin-vue@^9.23.0, eslint-plugin-vue@^9.27.0, eslint-plugin-vue@^9.6.0: version "9.27.0" resolved "https://mirrors.cloud.tencent.com/npm/eslint-plugin-vue/-/eslint-plugin-vue-9.27.0.tgz" integrity sha512-5Dw3yxEyuBSXTzT5/Ge1X5kIkRTQ3nvBn/VwPwInNiZBSJOO/timWMUaflONnFBzU6NhB68lxnCda7ULV5N7LA== @@ -1586,12 +1776,7 @@ eslint-utils@^2.0.0: dependencies: eslint-visitor-keys "^1.1.0" -eslint-visitor-keys@^1.0.0: - version "1.3.0" - resolved "https://mirrors.cloud.tencent.com/npm/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz" - integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== - -eslint-visitor-keys@^1.1.0: +eslint-visitor-keys@^1.0.0, eslint-visitor-keys@^1.1.0: version "1.3.0" resolved "https://mirrors.cloud.tencent.com/npm/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz" integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== @@ -1601,7 +1786,7 @@ eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4 resolved "https://mirrors.cloud.tencent.com/npm/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz" integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== -"eslint@^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8", "eslint@^6.0.0 || ^7.0.0 || >=8.0.0", "eslint@^6.2.0 || ^7.0.0 || ^8.0.0 || ^9.0.0", "eslint@^7.0.0 || ^8.0.0 || ^9.0.0", eslint@^8.0.0, eslint@^8.0.1, eslint@^8.56.0, eslint@^8.57.0, "eslint@>= 4.12.1", eslint@>=4.19.1, eslint@>=5.0.0, eslint@>=5.16.0, eslint@>=6.0.0, eslint@>=7.0.0, eslint@>=8, eslint@>=8.0.0: +eslint@^8.57.0: version "8.57.0" resolved "https://mirrors.cloud.tencent.com/npm/eslint/-/eslint-8.57.0.tgz" integrity sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ== @@ -1828,6 +2013,11 @@ fs.realpath@^1.0.0: resolved "https://mirrors.cloud.tencent.com/npm/fs.realpath/-/fs.realpath-1.0.0.tgz" integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== +fsevents@~2.3.2, fsevents@~2.3.3: + version "2.3.3" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" + integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== + function-bind@^1.1.2: version "1.1.2" resolved "https://mirrors.cloud.tencent.com/npm/function-bind/-/function-bind-1.1.2.tgz" @@ -1894,6 +2084,18 @@ glob-parent@^6.0.2: dependencies: is-glob "^4.0.3" +glob@7.2.3, glob@^7.1.3: + version "7.2.3" + resolved "https://mirrors.cloud.tencent.com/npm/glob/-/glob-7.2.3.tgz" + integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.1.1" + once "^1.3.0" + path-is-absolute "^1.0.0" + glob@^10.3.10: version "10.4.5" resolved "https://mirrors.cloud.tencent.com/npm/glob/-/glob-10.4.5.tgz" @@ -1906,30 +2108,6 @@ glob@^10.3.10: package-json-from-dist "^1.0.0" path-scurry "^1.11.1" -glob@^7.1.3: - version "7.2.3" - resolved "https://mirrors.cloud.tencent.com/npm/glob/-/glob-7.2.3.tgz" - integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.1.1" - once "^1.3.0" - path-is-absolute "^1.0.0" - -glob@7.2.3: - version "7.2.3" - resolved "https://mirrors.cloud.tencent.com/npm/glob/-/glob-7.2.3.tgz" - integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.1.1" - once "^1.3.0" - path-is-absolute "^1.0.0" - globals@^11.1.0: version "11.12.0" resolved "https://mirrors.cloud.tencent.com/npm/globals/-/globals-11.12.0.tgz" @@ -2081,7 +2259,7 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@^2.0.3, inherits@^2.0.4, inherits@2: +inherits@2, inherits@^2.0.3, inherits@^2.0.4: version "2.0.4" resolved "https://mirrors.cloud.tencent.com/npm/inherits/-/inherits-2.0.4.tgz" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== @@ -2420,7 +2598,7 @@ lodash.merge@^4.6.2: resolved "https://mirrors.cloud.tencent.com/npm/lodash.merge/-/lodash.merge-4.6.2.tgz" integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== -lodash@^4.17.21, lodash@4.17.21: +lodash@4.17.21, lodash@^4.17.21: version "4.17.21" resolved "https://mirrors.cloud.tencent.com/npm/lodash/-/lodash-4.17.21.tgz" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== @@ -2505,21 +2683,7 @@ minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: dependencies: brace-expansion "^1.1.7" -minimatch@^9.0.3: - version "9.0.5" - resolved "https://mirrors.cloud.tencent.com/npm/minimatch/-/minimatch-9.0.5.tgz" - integrity sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow== - dependencies: - brace-expansion "^2.0.1" - -minimatch@^9.0.4: - version "9.0.5" - resolved "https://mirrors.cloud.tencent.com/npm/minimatch/-/minimatch-9.0.5.tgz" - integrity sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow== - dependencies: - brace-expansion "^2.0.1" - -minimatch@^9.0.5: +minimatch@^9.0.3, minimatch@^9.0.4, minimatch@^9.0.5: version "9.0.5" resolved "https://mirrors.cloud.tencent.com/npm/minimatch/-/minimatch-9.0.5.tgz" integrity sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow== @@ -2546,16 +2710,16 @@ mlly@^1.4.2, mlly@^1.7.1: pkg-types "^1.1.1" ufo "^1.5.3" -ms@^2.1.1: - version "2.1.3" - resolved "https://mirrors.cloud.tencent.com/npm/ms/-/ms-2.1.3.tgz" - integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== - ms@2.1.2: version "2.1.2" resolved "https://mirrors.cloud.tencent.com/npm/ms/-/ms-2.1.2.tgz" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== +ms@^2.1.1: + version "2.1.3" + resolved "https://mirrors.cloud.tencent.com/npm/ms/-/ms-2.1.3.tgz" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== + muggle-string@^0.4.1: version "0.4.1" resolved "https://mirrors.cloud.tencent.com/npm/muggle-string/-/muggle-string-0.4.1.tgz" @@ -2802,7 +2966,7 @@ pinia-plugin-persistedstate@^3.2.1: resolved "https://mirrors.cloud.tencent.com/npm/pinia-plugin-persistedstate/-/pinia-plugin-persistedstate-3.2.1.tgz" integrity sha512-MK++8LRUsGF7r45PjBFES82ISnPzyO6IZx3CH5vyPseFLZCk1g2kgx6l/nW8pEBKxxd4do0P6bJw+mUSZIEZUQ== -pinia@^2.0.0, pinia@^2.1.7: +pinia@^2.1.7: version "2.1.7" resolved "https://mirrors.cloud.tencent.com/npm/pinia/-/pinia-2.1.7.tgz" integrity sha512-+C2AHFtcFqjPih0zpYuvof37SFxMQ7OEG2zV9jRI12i9BOy3YQVAHwdKtyyc8pDcDyIc33WCIsZaCFWU7WWxGQ== @@ -2873,7 +3037,7 @@ postcss-value-parser@^4.0.0: resolved "https://mirrors.cloud.tencent.com/npm/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz" integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ== -postcss@^8.0.0, postcss@^8.2.14, postcss@^8.4.21, postcss@^8.4.23, postcss@^8.4.39, postcss@>=8.0.9: +postcss@^8.4.23, postcss@^8.4.39: version "8.4.40" resolved "https://mirrors.cloud.tencent.com/npm/postcss/-/postcss-8.4.40.tgz" integrity sha512-YF2kKIUzAofPMpfH6hOi2cGnv/HrUlfucspc7pDyvv7kGdqXrfj8SCl/t8owkEgKEuu8ZcRjSOxFxVLqwChZ2Q== @@ -2894,7 +3058,7 @@ prettier-linter-helpers@^1.0.0: dependencies: fast-diff "^1.1.2" -prettier@^3.3.3, prettier@>=3.0.0: +prettier@^3.3.3: version "3.3.3" resolved "https://mirrors.cloud.tencent.com/npm/prettier/-/prettier-3.3.3.tgz" integrity sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew== @@ -2937,7 +3101,7 @@ readdirp@~3.6.0: dependencies: picomatch "^2.2.1" -reflect-metadata@^0.1.12, reflect-metadata@0.1.13: +reflect-metadata@0.1.13: version "0.1.13" resolved "https://mirrors.cloud.tencent.com/npm/reflect-metadata/-/reflect-metadata-0.1.13.tgz" integrity sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg== @@ -3016,7 +3180,7 @@ roboto-fontface@*: resolved "https://mirrors.cloud.tencent.com/npm/roboto-fontface/-/roboto-fontface-0.10.0.tgz" integrity sha512-OlwfYEgA2RdboZohpldlvJ1xngOins5d7ejqnIBWr9KaMxsnBqotpptRXTyfNRLnFpqzX6sTDt+X+a+6udnU8g== -rollup@^1.20.0||^2.0.0||^3.0.0||^4.0.0, rollup@^4.13.0: +rollup@^4.13.0: version "4.19.0" resolved "https://mirrors.cloud.tencent.com/npm/rollup/-/rollup-4.19.0.tgz" integrity sha512-5r7EYSQIowHsK4eTZ0Y81qpZuJz+MUuYeqmmYmRMl1nwhdmbiYqt5jwzf6u7wyOzJgYqtCRMtVRKOtHANBz7rA== @@ -3053,7 +3217,7 @@ run-parallel@^1.1.9: dependencies: queue-microtask "^1.2.2" -"rxjs@^6.0.0 || ^7.0.0", rxjs@^7.1.0, rxjs@^7.5.5, rxjs@7.8.1: +rxjs@7.8.1, rxjs@^7.5.5: version "7.8.1" resolved "https://mirrors.cloud.tencent.com/npm/rxjs/-/rxjs-7.8.1.tgz" integrity sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg== @@ -3096,7 +3260,7 @@ safe-regex-test@^1.0.3: resolved "https://mirrors.cloud.tencent.com/npm/safer-buffer/-/safer-buffer-2.1.2.tgz" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== -sass@*, sass@1.77.6: +sass@1.77.6: version "1.77.6" resolved "https://mirrors.cloud.tencent.com/npm/sass/-/sass-1.77.6.tgz" integrity sha512-ByXE1oLD79GVq9Ht1PeHWCPMPB8XHpBuz1r85oByKHjZY6qV6rWnQovQzXJXuQ/XyE1Oj3iPk3lo28uzaRA2/Q== @@ -3110,12 +3274,7 @@ scule@^1.3.0: resolved "https://mirrors.cloud.tencent.com/npm/scule/-/scule-1.3.0.tgz" integrity sha512-6FtHJEvt+pVMIB9IBY+IcCJ6Z5f1iQnytgyfKMhDKgmzYG+TeH/wx1y3l27rshSbLiSanrR9ffZDrEsmjlQF2g== -semver@^6.1.0: - version "6.3.1" - resolved "https://mirrors.cloud.tencent.com/npm/semver/-/semver-6.3.1.tgz" - integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== - -semver@^6.3.1: +semver@^6.1.0, semver@^6.3.1: version "6.3.1" resolved "https://mirrors.cloud.tencent.com/npm/semver/-/semver-6.3.1.tgz" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== @@ -3184,7 +3343,7 @@ slash@^3.0.0: resolved "https://mirrors.cloud.tencent.com/npm/slash/-/slash-3.0.0.tgz" integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== -source-map-js@^1.2.0, "source-map-js@>=0.6.2 <2.0.0": +"source-map-js@>=0.6.2 <2.0.0", source-map-js@^1.2.0: version "1.2.0" resolved "https://mirrors.cloud.tencent.com/npm/source-map-js/-/source-map-js-1.2.0.tgz" integrity sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg== @@ -3194,13 +3353,6 @@ spawn-command@^0.0.2-1: resolved "https://registry.npmjs.org/spawn-command/-/spawn-command-0.0.2.tgz" integrity sha512-zC8zGoGkmc8J9ndvml8Xksr1Amk9qBujgbF0JAIWO7kXr43w0h/0GJNM/Vustixu+YE8N/MTrQ7N31FvHUACxQ== -string_decoder@^1.1.1: - version "1.3.0" - resolved "https://mirrors.cloud.tencent.com/npm/string_decoder/-/string_decoder-1.3.0.tgz" - integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== - dependencies: - safe-buffer "~5.2.0" - "string-width-cjs@npm:string-width@^4.2.0": version "4.2.3" resolved "https://mirrors.cloud.tencent.com/npm/string-width/-/string-width-4.2.3.tgz" @@ -3256,6 +3408,13 @@ string.prototype.trimstart@^1.0.8: define-properties "^1.2.1" es-object-atoms "^1.0.0" +string_decoder@^1.1.1: + version "1.3.0" + resolved "https://mirrors.cloud.tencent.com/npm/string_decoder/-/string_decoder-1.3.0.tgz" + integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== + dependencies: + safe-buffer "~5.2.0" + "strip-ansi-cjs@npm:strip-ansi@^6.0.1": version "6.0.1" resolved "https://mirrors.cloud.tencent.com/npm/strip-ansi/-/strip-ansi-6.0.1.tgz" @@ -3442,6 +3601,11 @@ tsconfig-paths@^3.15.0: minimist "^1.2.6" strip-bom "^3.0.0" +tslib@2.6.2: + version "2.6.2" + resolved "https://mirrors.cloud.tencent.com/npm/tslib/-/tslib-2.6.2.tgz" + integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== + tslib@^1.9.0: version "1.14.1" resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz" @@ -3452,11 +3616,6 @@ tslib@^2.1.0, tslib@^2.6.2: resolved "https://mirrors.cloud.tencent.com/npm/tslib/-/tslib-2.6.3.tgz" integrity sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ== -tslib@2.6.2: - version "2.6.2" - resolved "https://mirrors.cloud.tencent.com/npm/tslib/-/tslib-2.6.2.tgz" - integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== - type-check@^0.4.0, type-check@~0.4.0: version "0.4.0" resolved "https://mirrors.cloud.tencent.com/npm/type-check/-/type-check-0.4.0.tgz" @@ -3518,7 +3677,7 @@ typed-array-length@^1.0.6: is-typed-array "^1.1.13" possible-typed-array-names "^1.0.0" -typescript@*, typescript@^5.4.2, typescript@>=4.2.0, typescript@>=4.4.4, typescript@>=4.7, typescript@>=4.7.4, typescript@>=5.0.0: +typescript@^5.4.2: version "5.5.4" resolved "https://mirrors.cloud.tencent.com/npm/typescript/-/typescript-5.5.4.tgz" integrity sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q== @@ -3671,7 +3830,7 @@ vite-plugin-vue-layouts@^0.11.0: debug "^4.3.4" fast-glob "^3.3.2" -vite-plugin-vuetify@^2.0.3, vite-plugin-vuetify@>=1.0.0: +vite-plugin-vuetify@^2.0.3: version "2.0.3" resolved "https://mirrors.cloud.tencent.com/npm/vite-plugin-vuetify/-/vite-plugin-vuetify-2.0.3.tgz" integrity sha512-HbYajgGgb/noaVKNRhnnXIiQZrNXfNIeanUGAwXgOxL6h/KULS40Uf51Kyz8hNmdegF+DwjgXXI/8J1PNS83xw== @@ -3680,7 +3839,7 @@ vite-plugin-vuetify@^2.0.3, vite-plugin-vuetify@>=1.0.0: debug "^4.3.3" upath "^2.0.1" -"vite@^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0", "vite@^4.0.0 || ^5.0.0", vite@^5.0.0, vite@^5.3.3, vite@>=5: +vite@^5.3.3: version "5.3.5" resolved "https://mirrors.cloud.tencent.com/npm/vite/-/vite-5.3.5.tgz" integrity sha512-MdjglKR6AQXQb9JGiS7Rc2wC6uMjcm7Go/NHNO63EwiJXfuk9PgqiP/n5IDJCziMkfw9n4Ubp7lttNwz+8ZVKA== @@ -3721,7 +3880,7 @@ vue-markdown-render@^2.2.1: dependencies: markdown-it "^13.0.2" -vue-router@^4.0.11, vue-router@^4.4.0: +vue-router@^4.4.0: version "4.4.0" resolved "https://mirrors.cloud.tencent.com/npm/vue-router/-/vue-router-4.4.0.tgz" integrity sha512-HB+t2p611aIZraV2aPSRNXf0Z/oLZFrlygJm+sZbdJaW6lcFqEDQwnzUBXn+DApw+/QzDU/I9TeWx9izEjTmsA== @@ -3737,7 +3896,7 @@ vue-tsc@^2.0.26: "@vue/language-core" "2.0.29" semver "^7.5.4" -"vue@^2.6.14 || ^3.3.0", "vue@^2.7.0 || ^3.2.25", vue@^3.0.0, "vue@^3.0.0-0 || ^2.6.0", vue@^3.2.0, vue@^3.2.25, vue@^3.2.4, vue@^3.3.0, vue@^3.3.4, vue@^3.4.21, vue@^3.4.31, "vue@2 || 3", vue@3.4.34: +vue@^3.4.21, vue@^3.4.31: version "3.4.34" resolved "https://mirrors.cloud.tencent.com/npm/vue/-/vue-3.4.34.tgz" integrity sha512-VZze05HWlA3ItreQ/ka7Sx7PoD0/3St8FEiSlSTVgb6l4hL+RjtP2/8g5WQBzZgyf8WG2f+g1bXzC7zggLhAJA== @@ -3748,12 +3907,12 @@ vue-tsc@^2.0.26: "@vue/server-renderer" "3.4.34" "@vue/shared" "3.4.34" -vuetify@^3.0.0, vuetify@^3.5.9, vuetify@^3.6.11: +vuetify@^3.5.9, vuetify@^3.6.11: version "3.6.13" resolved "https://mirrors.cloud.tencent.com/npm/vuetify/-/vuetify-3.6.13.tgz" integrity sha512-Gz7jxXAkmff2m6CM0EUWOo/72TM322/3I6aDna++k1nPOW1/hNx4td1MZG4u75fzdn3r+uIe0dbF7SWuhu6DWA== -wcwidth@^1.0.1, wcwidth@>=1.0.1: +wcwidth@>=1.0.1, wcwidth@^1.0.1: version "1.0.1" resolved "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz" integrity sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==