fix generation!

This commit is contained in:
Dave Lee 2023-05-25 02:47:13 -04:00
parent 2867bca1f2
commit fc3c105d42
No known key found for this signature in database

View file

@ -8,16 +8,21 @@
---
components:
schemas:
CreateChatCompletionRequest:
properties:
#@overlay/match missing_ok=True
x-localai-extensions:
LocalAIBaseRequestExtension:
type: object
nullable: true
properties:
seed:
type: integer
nullable: true
#@overlay/match missing_ok=True
LocalAITextRequestExtension:
allOf:
- $ref: "#/components/schemas/LocalAIBaseRequestExtension"
- type: object
nullable: true
properties:
top_k:
type: integer
nullable: true
@ -46,19 +51,27 @@ components:
type: number
nullable: true
x-go-type: float64
CreateImageRequest:
properties:
#@overlay/match missing_ok=True
x-localai-extensions:
type: object
LocalAIImageRequestExtension:
allOf:
- $ref: "#/components/schemas/LocalAIBaseRequestExtension"
- type: object
nullable: true
properties:
seed:
type: integer
nullable: true
mode:
type: integer
nullable: true
step:
type: integer
nullable: true
CreateChatCompletionRequest:
properties:
#@overlay/match missing_ok=True
x-localai-extensions:
$ref: "#/components/schemas/LocalAITextRequestExtension"
CreateImageRequest:
properties:
#@overlay/match missing_ok=True
x-localai-extensions:
$ref: "#/components/schemas/LocalAIImageRequestExtension"