mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-20 05:07:54 +00:00
feat(swagger): update (#1929)
This commit is contained in:
parent
93702e39d4
commit
92fbdfd06f
@ -11,12 +11,12 @@ const docTemplate = `{
|
|||||||
"description": "{{escape .Description}}",
|
"description": "{{escape .Description}}",
|
||||||
"title": "{{.Title}}",
|
"title": "{{.Title}}",
|
||||||
"contact": {
|
"contact": {
|
||||||
"name": "OpenAI Support",
|
"name": "LocalAI",
|
||||||
"url": "https://help.openai.com/"
|
"url": "https://localai.io"
|
||||||
},
|
},
|
||||||
"license": {
|
"license": {
|
||||||
"name": "MIT",
|
"name": "MIT",
|
||||||
"url": "https://github.com/openai/openai-openapi/blob/master/LICENSE"
|
"url": "https://raw.githubusercontent.com/mudler/LocalAI/master/LICENSE"
|
||||||
},
|
},
|
||||||
"version": "{{.Version}}"
|
"version": "{{.Version}}"
|
||||||
},
|
},
|
||||||
@ -789,7 +789,7 @@ var SwaggerInfo = &swag.Spec{
|
|||||||
BasePath: "/",
|
BasePath: "/",
|
||||||
Schemes: []string{},
|
Schemes: []string{},
|
||||||
Title: "LocalAI API",
|
Title: "LocalAI API",
|
||||||
Description: "The OpenAI REST API.",
|
Description: "The LocalAI Rest API.",
|
||||||
InfoInstanceName: "swagger",
|
InfoInstanceName: "swagger",
|
||||||
SwaggerTemplate: docTemplate,
|
SwaggerTemplate: docTemplate,
|
||||||
LeftDelim: "{{",
|
LeftDelim: "{{",
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
{
|
{
|
||||||
"swagger": "2.0",
|
"swagger": "2.0",
|
||||||
"info": {
|
"info": {
|
||||||
"description": "The OpenAI REST API.",
|
"description": "The LocalAI Rest API.",
|
||||||
"title": "LocalAI API",
|
"title": "LocalAI API",
|
||||||
"contact": {
|
"contact": {
|
||||||
"name": "OpenAI Support",
|
"name": "LocalAI",
|
||||||
"url": "https://help.openai.com/"
|
"url": "https://localai.io"
|
||||||
},
|
},
|
||||||
"license": {
|
"license": {
|
||||||
"name": "MIT",
|
"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"
|
"version": "2.0.0"
|
||||||
},
|
},
|
||||||
|
@ -368,12 +368,12 @@ definitions:
|
|||||||
host: localhost:8080
|
host: localhost:8080
|
||||||
info:
|
info:
|
||||||
contact:
|
contact:
|
||||||
name: OpenAI Support
|
name: LocalAI
|
||||||
url: https://help.openai.com/
|
url: https://localai.io
|
||||||
description: The OpenAI REST API.
|
description: The LocalAI Rest API.
|
||||||
license:
|
license:
|
||||||
name: MIT
|
name: MIT
|
||||||
url: https://github.com/openai/openai-openapi/blob/master/LICENSE
|
url: https://raw.githubusercontent.com/mudler/LocalAI/master/LICENSE
|
||||||
title: LocalAI API
|
title: LocalAI API
|
||||||
version: 2.0.0
|
version: 2.0.0
|
||||||
paths:
|
paths:
|
||||||
|
Loading…
Reference in New Issue
Block a user