feat(models): add image model type support

Add a dedicated image model type so bots can use image API models without overloading chat model capabilities, while keeping existing chat-based image generation selectable.
This commit is contained in:
Acbox
2026-04-16 16:00:22 +08:00
parent 33e18e7e64
commit ddda00f980
23 changed files with 326 additions and 68 deletions
+3 -1
View File
@@ -2261,11 +2261,13 @@ definitions:
enum:
- chat
- embedding
- image
- speech
type: string
x-enum-varnames:
- ModelTypeChat
- ModelTypeEmbedding
- ModelTypeImage
- ModelTypeSpeech
models.TestResponse:
properties:
@@ -7231,7 +7233,7 @@ paths:
description: Get a list of all configured models, optionally filtered by type
or provider client type
parameters:
- description: Model type (chat, embedding)
- description: Model type (chat, embedding, image, speech)
in: query
name: type
type: string