From 92fbdfd06f0bf66f27e132f576fcb58cf9c8b9ef Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Fri, 29 Mar 2024 22:48:58 +0100 Subject: [PATCH] feat(swagger): update (#1929) --- swagger/docs.go | 8 ++++---- swagger/swagger.json | 8 ++++---- swagger/swagger.yaml | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/swagger/docs.go b/swagger/docs.go index a922fa2e..0f5c2c47 100644 --- a/swagger/docs.go +++ b/swagger/docs.go @@ -11,12 +11,12 @@ const docTemplate = `{ "description": "{{escape .Description}}", "title": "{{.Title}}", "contact": { - "name": "OpenAI Support", - "url": "https://help.openai.com/" + "name": "LocalAI", + "url": "https://localai.io" }, "license": { "name": "MIT", - "url": "https://github.com/openai/openai-openapi/blob/master/LICENSE" + "url": "https://raw.githubusercontent.com/mudler/LocalAI/master/LICENSE" }, "version": "{{.Version}}" }, @@ -789,7 +789,7 @@ var SwaggerInfo = &swag.Spec{ BasePath: "/", Schemes: []string{}, Title: "LocalAI API", - Description: "The OpenAI REST API.", + Description: "The LocalAI Rest API.", InfoInstanceName: "swagger", SwaggerTemplate: docTemplate, LeftDelim: "{{", diff --git a/swagger/swagger.json b/swagger/swagger.json index c9088d93..37dbec47 100644 --- a/swagger/swagger.json +++ b/swagger/swagger.json @@ -1,15 +1,15 @@ { "swagger": "2.0", "info": { - "description": "The OpenAI REST API.", + "description": "The LocalAI Rest API.", "title": "LocalAI API", "contact": { - "name": "OpenAI Support", - "url": "https://help.openai.com/" + "name": "LocalAI", + "url": "https://localai.io" }, "license": { "name": "MIT", - "url": "https://github.com/openai/openai-openapi/blob/master/LICENSE" + "url": "https://raw.githubusercontent.com/mudler/LocalAI/master/LICENSE" }, "version": "2.0.0" }, diff --git a/swagger/swagger.yaml b/swagger/swagger.yaml index b33e1fab..91180359 100644 --- a/swagger/swagger.yaml +++ b/swagger/swagger.yaml @@ -368,12 +368,12 @@ definitions: host: localhost:8080 info: contact: - name: OpenAI Support - url: https://help.openai.com/ - description: The OpenAI REST API. + name: LocalAI + url: https://localai.io + description: The LocalAI Rest API. license: name: MIT - url: https://github.com/openai/openai-openapi/blob/master/LICENSE + url: https://raw.githubusercontent.com/mudler/LocalAI/master/LICENSE title: LocalAI API version: 2.0.0 paths: