From f2cd7d3e13ff0e0a6fe360bd82c79ec21659b14e Mon Sep 17 00:00:00 2001 From: bymyself Date: Sat, 19 Jul 2025 19:04:29 -0700 Subject: [PATCH] Fix duplicate content blocks in model and system endpoints - Fixed duplicate content in /api/models GET - Fixed duplicate content in /api/models/{folder} GET - Fixed duplicate content in /api/embeddings GET - Fixed duplicate content in /api/extensions GET - Consistently moved data schemas to 200 responses --- openapi.yaml | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 5a91951dd..3be03cf16 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -507,18 +507,18 @@ paths: responses: '200': description: Success - '500': - description: Internal server error - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorResponse' content: application/json: schema: type: array items: type: string + '500': + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' /api/models/{folder}: get: tags: @@ -536,12 +536,6 @@ paths: responses: '200': description: Success - '500': - description: Internal server error - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorResponse' content: application/json: schema: @@ -550,6 +544,12 @@ paths: type: string '404': description: Folder not found + '500': + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' /api/embeddings: get: tags: @@ -560,18 +560,18 @@ paths: responses: '200': description: Success - '500': - description: Internal server error - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorResponse' content: application/json: schema: type: array items: type: string + '500': + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' /api/extensions: get: tags: @@ -582,18 +582,18 @@ paths: responses: '200': description: Success - '500': - description: Internal server error - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorResponse' content: application/json: schema: type: array items: type: string + '500': + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' /api/system_stats: get: tags: