mirror of
https://github.com/mudler/LocalAI.git
synced 2025-03-10 22:43:59 +00:00
feat(swagger): update swagger (#2884)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: mudler <2420543+mudler@users.noreply.github.com>
This commit is contained in:
parent
85c7b28364
commit
bc2b8e0063
@ -22,6 +22,35 @@ const docTemplate = `{
|
|||||||
"host": "{{.Host}}",
|
"host": "{{.Host}}",
|
||||||
"basePath": "{{.BasePath}}",
|
"basePath": "{{.BasePath}}",
|
||||||
"paths": {
|
"paths": {
|
||||||
|
"/api/p2p": {
|
||||||
|
"get": {
|
||||||
|
"summary": "Returns available P2P nodes",
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "Response",
|
||||||
|
"schema": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/schema.P2PNodesResponse"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"/api/p2p/token": {
|
||||||
|
"get": {
|
||||||
|
"summary": "Show the P2P token",
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "Response",
|
||||||
|
"schema": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"/models/apply": {
|
"/models/apply": {
|
||||||
"post": {
|
"post": {
|
||||||
"summary": "Install models to LocalAI.",
|
"summary": "Install models to LocalAI.",
|
||||||
@ -910,6 +939,23 @@ const docTemplate = `{
|
|||||||
"Function"
|
"Function"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"p2p.NodeData": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"lastSeen": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"tunnelAddress": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"schema.Choice": {
|
"schema.Choice": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
@ -1317,6 +1363,23 @@ const docTemplate = `{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"schema.P2PNodesResponse": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"federated_nodes": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/p2p.NodeData"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nodes": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/p2p.NodeData"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"schema.TTSRequest": {
|
"schema.TTSRequest": {
|
||||||
"description": "TTS request body",
|
"description": "TTS request body",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -15,6 +15,35 @@
|
|||||||
},
|
},
|
||||||
"basePath": "/",
|
"basePath": "/",
|
||||||
"paths": {
|
"paths": {
|
||||||
|
"/api/p2p": {
|
||||||
|
"get": {
|
||||||
|
"summary": "Returns available P2P nodes",
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "Response",
|
||||||
|
"schema": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/schema.P2PNodesResponse"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"/api/p2p/token": {
|
||||||
|
"get": {
|
||||||
|
"summary": "Show the P2P token",
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "Response",
|
||||||
|
"schema": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"/models/apply": {
|
"/models/apply": {
|
||||||
"post": {
|
"post": {
|
||||||
"summary": "Install models to LocalAI.",
|
"summary": "Install models to LocalAI.",
|
||||||
@ -903,6 +932,23 @@
|
|||||||
"Function"
|
"Function"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"p2p.NodeData": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"lastSeen": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"tunnelAddress": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"schema.Choice": {
|
"schema.Choice": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
@ -1310,6 +1356,23 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"schema.P2PNodesResponse": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"federated_nodes": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/p2p.NodeData"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nodes": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/p2p.NodeData"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"schema.TTSRequest": {
|
"schema.TTSRequest": {
|
||||||
"description": "TTS request body",
|
"description": "TTS request body",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -300,6 +300,17 @@ definitions:
|
|||||||
- CodeInterpreter
|
- CodeInterpreter
|
||||||
- Retrieval
|
- Retrieval
|
||||||
- Function
|
- Function
|
||||||
|
p2p.NodeData:
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
lastSeen:
|
||||||
|
type: string
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
tunnelAddress:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
schema.Choice:
|
schema.Choice:
|
||||||
properties:
|
properties:
|
||||||
delta:
|
delta:
|
||||||
@ -576,6 +587,17 @@ definitions:
|
|||||||
total_tokens:
|
total_tokens:
|
||||||
type: integer
|
type: integer
|
||||||
type: object
|
type: object
|
||||||
|
schema.P2PNodesResponse:
|
||||||
|
properties:
|
||||||
|
federated_nodes:
|
||||||
|
items:
|
||||||
|
$ref: '#/definitions/p2p.NodeData'
|
||||||
|
type: array
|
||||||
|
nodes:
|
||||||
|
items:
|
||||||
|
$ref: '#/definitions/p2p.NodeData'
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
schema.TTSRequest:
|
schema.TTSRequest:
|
||||||
description: TTS request body
|
description: TTS request body
|
||||||
properties:
|
properties:
|
||||||
@ -616,6 +638,24 @@ info:
|
|||||||
title: LocalAI API
|
title: LocalAI API
|
||||||
version: 2.0.0
|
version: 2.0.0
|
||||||
paths:
|
paths:
|
||||||
|
/api/p2p:
|
||||||
|
get:
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: Response
|
||||||
|
schema:
|
||||||
|
items:
|
||||||
|
$ref: '#/definitions/schema.P2PNodesResponse'
|
||||||
|
type: array
|
||||||
|
summary: Returns available P2P nodes
|
||||||
|
/api/p2p/token:
|
||||||
|
get:
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: Response
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
summary: Show the P2P token
|
||||||
/models/apply:
|
/models/apply:
|
||||||
post:
|
post:
|
||||||
parameters:
|
parameters:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user