mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-30 06:30:43 +00:00
successful build, roles needs more testing
This commit is contained in:
parent
0ee645e091
commit
e78e5d50c6
4 changed files with 131 additions and 38 deletions
|
@ -8,6 +8,10 @@
|
|||
---
|
||||
components:
|
||||
schemas:
|
||||
#!
|
||||
#! ==== Request Model Extensions ====
|
||||
#!
|
||||
|
||||
#@overlay/match missing_ok=True
|
||||
LocalAIBaseRequestExtension:
|
||||
type: object
|
||||
|
@ -62,7 +66,22 @@ components:
|
|||
type: array
|
||||
items:
|
||||
type: string
|
||||
|
||||
#@overlay/match missing_ok=True
|
||||
LocalAIImageRequestExtension:
|
||||
allOf:
|
||||
- $ref: "#/components/schemas/LocalAIBaseRequestExtension"
|
||||
- type: object
|
||||
nullable: true
|
||||
properties:
|
||||
model:
|
||||
type: string
|
||||
nullable: false
|
||||
mode:
|
||||
type: integer
|
||||
nullable: true
|
||||
step:
|
||||
type: integer
|
||||
nullable: true
|
||||
#@overlay/match missing_ok=True
|
||||
LocalAIChatRequestExtension:
|
||||
allOf:
|
||||
|
@ -83,37 +102,29 @@ components:
|
|||
assistant:
|
||||
type: string
|
||||
nullable: true
|
||||
#@overlay/match missing_ok=True
|
||||
LocalAIImageRequestExtension:
|
||||
allOf:
|
||||
- $ref: "#/components/schemas/LocalAIBaseRequestExtension"
|
||||
- type: object
|
||||
nullable: true
|
||||
properties:
|
||||
model:
|
||||
type: string
|
||||
nullable: false
|
||||
mode:
|
||||
type: integer
|
||||
nullable: true
|
||||
step:
|
||||
type: integer
|
||||
nullable: true
|
||||
#!
|
||||
#! ==== x-localai-extensions for Requests ====
|
||||
#!
|
||||
|
||||
CreateChatCompletionRequest:
|
||||
properties:
|
||||
#@overlay/match missing_ok=True
|
||||
x-localai-extensions:
|
||||
$ref: "#/components/schemas/LocalAIChatRequestExtension"
|
||||
$ref: "#/components/schemas/LocalAIChatRequestExtension"
|
||||
CreateCompletionRequest:
|
||||
properties:
|
||||
#@overlay/match missing_ok=True
|
||||
x-localai-extensions:
|
||||
$ref: "#/components/schemas/LocalAITextRequestExtension"
|
||||
$ref: "#/components/schemas/LocalAITextRequestExtension"
|
||||
CreateImageRequest:
|
||||
properties:
|
||||
#@overlay/match missing_ok=True
|
||||
x-localai-extensions:
|
||||
$ref: "#/components/schemas/LocalAIImageRequestExtension"
|
||||
$ref: "#/components/schemas/LocalAIImageRequestExtension"
|
||||
#!
|
||||
#! ==== Responses - Desirable Type Names ====
|
||||
#!
|
||||
|
||||
CreateChatCompletionResponse:
|
||||
properties:
|
||||
choices:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue