successful build, roles needs more testing

This commit is contained in:
Dave Lee 2023-06-11 19:27:31 -04:00
parent 0ee645e091
commit e78e5d50c6
4 changed files with 131 additions and 38 deletions

View file

@ -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: