mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-18 20:27:57 +00:00
fix(swagger): do not specify a host (#1930)
In this way the requests are redirected to the host used by the client to perform the request.
This commit is contained in:
parent
eab4a91a9b
commit
61e5e6bc36
@ -51,7 +51,6 @@ func readAuthHeader(c *fiber.Ctx) string {
|
|||||||
// @contact.url https://localai.io
|
// @contact.url https://localai.io
|
||||||
// @license.name MIT
|
// @license.name MIT
|
||||||
// @license.url https://raw.githubusercontent.com/mudler/LocalAI/master/LICENSE
|
// @license.url https://raw.githubusercontent.com/mudler/LocalAI/master/LICENSE
|
||||||
// @host localhost:8080
|
|
||||||
// @BasePath /
|
// @BasePath /
|
||||||
// @securityDefinitions.apikey BearerAuth
|
// @securityDefinitions.apikey BearerAuth
|
||||||
// @in header
|
// @in header
|
||||||
|
@ -785,7 +785,7 @@ const docTemplate = `{
|
|||||||
// SwaggerInfo holds exported Swagger Info so clients can modify it
|
// SwaggerInfo holds exported Swagger Info so clients can modify it
|
||||||
var SwaggerInfo = &swag.Spec{
|
var SwaggerInfo = &swag.Spec{
|
||||||
Version: "2.0.0",
|
Version: "2.0.0",
|
||||||
Host: "localhost:8080",
|
Host: "",
|
||||||
BasePath: "/",
|
BasePath: "/",
|
||||||
Schemes: []string{},
|
Schemes: []string{},
|
||||||
Title: "LocalAI API",
|
Title: "LocalAI API",
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
},
|
},
|
||||||
"version": "2.0.0"
|
"version": "2.0.0"
|
||||||
},
|
},
|
||||||
"host": "localhost:8080",
|
|
||||||
"basePath": "/",
|
"basePath": "/",
|
||||||
"paths": {
|
"paths": {
|
||||||
"/v1/assistants": {
|
"/v1/assistants": {
|
||||||
|
@ -365,7 +365,6 @@ definitions:
|
|||||||
type:
|
type:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
host: localhost:8080
|
|
||||||
info:
|
info:
|
||||||
contact:
|
contact:
|
||||||
name: LocalAI
|
name: LocalAI
|
||||||
|
Loading…
Reference in New Issue
Block a user