Files
magpie/internal/catalog/testdata/volcengine-ark-models-2026-11-03.json
T
yetone 92d2ed74f9 providers: an Ark key's Seedance models are under Video models in its editor, each to tick
axelburks on Discord: "供应商里方舟的配置页,有图像模型选项能勾选模型,但是没
有视频模型选项不能勾选视频模型". A Volcengine Ark key's editor listed its
Seedream models under Image models, to tick, and had its Seedance models
among the chat models or nowhere.

Cause, two parts:
- The editor had no video section at all: video models had no list and no
  hidden set (gateway-routing.md said "Video models aren't listed in the
  editor, so there is nothing to hide there").
- catalog's live parse read only "kind" and modalities.input/output. Ark's
  /api/v3/models marks no kind: it says domain "VideoGeneration" /
  "ImageGeneration" and modalities.input_modalities/output_modalities. So
  Seedance came back as a chat model, and 3D models (output 3d, no text)
  as chat models too.

Change:
- catalog: a live row with no kind is a video model when its domain is
  VideoGeneration or it outputs video without text, an image model for
  ImageGeneration or image without text; Ark's input_modalities /
  output_modalities are read when input/output aren't there, so a model
  that gives no text (Ark's 3D) is left out of the chat list.
  TestFetchArkMarksVideoModels runs on a captured Ark list
  (testdata/volcengine-ark-models-2026-11-03.json, fetched read-only
  with GET /api/v3/models, no key in it).
- provider: HiddenVideomakers beside HiddenDrawers, VideomakerHidden.
- gateway: VideomakersOf (Videomakers on a given list, for the editor),
  OfferedVideomakers = Videomakers less the unticked ones, read by
  AutoVideomaker, videomakerObjects (another magpie's list) and
  mediaModels(true) (generate_video). A hidden one still makes its video
  when named: bareVideomaker, videosCreate and arkFilms read Videomakers.
- gui: the editor's Video models section (renderVideomakers), filmIds and
  hiddenVideomakers on /api/providers, kept on save as hiddenDrawers is;
  i18n for every language. app.js comments cut to stay under
  TestCoreScriptBudget, which this change reached; no raise.
- docs: gateway-routing.md's Hidden image models section.

Old data: an Ark list fetched before keeps Seedance among its chat models
until its list is fetched again;
customVideomakers already counts any Seedance id an Ark key lists or picks
as a video model, so it makes videos and shows under Video models now.

Run on mote, this change and the next (/v1/models ?kind=, gateway and
docs only) rebased on f4c664a09; this commit's own tree, on 17f2387e1,
gave the same Go results with Linux and Windows vet of ./internal/...
clean:
- go test -count=1 -timeout 45m ./internal/catalog ./internal/provider
  ./internal/gateway ./internal/gui: catalog, provider and gateway ok;
  gui red only in TestMainWindowCorners/macOS_26_SDK (#3949, red on main).
- GOOS=linux go vet -tags nogui ./..., GOOS=windows go vet ./...: clean. gofmt -l: nothing.
- GUI (at the next commit's tree, which adds no GUI file or script): the 51 provider-*, drawers, image-models, i18n and
  video-models-hide files, both engines, every language, wide and narrow:
  1161 of 1188 ok. The 27 reds are 5 files that are red the same 27 at
  origin/main d1cdce130 run alone: provider-fetch-again (#3292/#5057),
  provider-models-rest (#4396), provider-picks-stay (#4397),
  provider-levels-scroll (#4395), provider-typed (#4673).
  video-models-hide: 22 of 22 ok.
- The whole GUI suite (all files) ran earlier at this change on 8af751987,
  347 of 19153 red at load 100 to 200; the 66 files with a red, run again
  alone, are red in the same tests at origin/main 17f2387e1 (all filed:
  #4388, #4391, #4398, #4320, #4541/#5013, #2564, #4244, #4304 and the
  above).
Rebased again onto d1cdce130 (sessions, Cursor mover, library and routing
plugins, group-unlists; nothing this change touches but gateway.go,
which merged clean) and run there: TestCoreScriptBudget and internal/gui's
new tests, the gateway's ?kind= and video tests, internal/provider and
internal/catalog, video-models-hide 22 of 22: ok.

Broken by hand, each red, then put back:
- the domain/output check in catalog's live parse:
  TestFetchArkMarksVideoModels red
- OfferedVideomakers returning Videomakers whole:
  TestHiddenVideomakerLeavesListsButStillFilms red
- the editor's filmIds left empty: TestVideoModelsHidden red
- a save without hiddenVideomakers dropping the old ones:
  TestVideoModelsHidden red
- renderVideomakers' call in the editor left out: video-models-hide
  22 of 22 red
- a chip's click not changing the draft: video-models-hide 22 of 22 red

Not tried: no real Ark video was made (no money spent); the list parse was
checked on a real Ark list fetched read-only. The editor was not opened in
the real app, only in the GUI tests' fake API.

Credit: axelburks on Discord.
2026-11-03 18:34:19 +08:00

339 lines
6.2 KiB
JSON

{
"object": "list",
"data": [
{
"created": 1744343828,
"domain": "",
"features": {
"structured_outputs": {
"json_object": false,
"json_schema": false
}
},
"id": "wan2-1-14b-t2v-250225",
"modalities": {
"input_modalities": [
"text"
],
"output_modalities": [
"video"
]
},
"name": "wan2-1-14b",
"object": "model",
"status": "Shutdown",
"task_type": [
"TextToVideo"
],
"token_limits": {},
"version": "t2v-250225"
},
{
"created": 1749465881,
"domain": "VideoGeneration",
"features": {
"structured_outputs": {
"json_object": false,
"json_schema": false
}
},
"id": "doubao-seedance-1-0-pro-250528",
"modalities": {
"input_modalities": [
"text",
"first_frame",
"first_last_frame"
],
"output_modalities": [
"video"
]
},
"name": "doubao-seedance-1-0-pro",
"object": "model",
"status": "Retiring",
"task_type": [
"ImageToVideo",
"TextToVideo"
],
"token_limits": {},
"version": "250528"
},
{
"created": 1760414492,
"domain": "VideoGeneration",
"features": {
"structured_outputs": {
"json_object": false,
"json_schema": false
}
},
"id": "doubao-seedance-1-0-pro-fast-251015",
"modalities": {
"input_modalities": [
"text",
"image"
],
"output_modalities": [
"video"
]
},
"name": "doubao-seedance-1-0-pro-fast",
"object": "model",
"task_type": [
"ImageToVideo",
"TextToVideo"
],
"token_limits": {},
"version": "251015"
},
{
"created": 1764645281,
"domain": "",
"features": {
"structured_outputs": {
"json_object": false,
"json_schema": false
}
},
"id": "doubao-embedding-vision-251215",
"modalities": {
"input_modalities": [
"text",
"image",
"video"
]
},
"name": "doubao-embedding-vision",
"object": "model",
"task_type": [
"ImageEmbedding"
],
"token_limits": {
"context_window": 131072,
"max_input_token_length": 131072
},
"version": "251215"
},
{
"created": 1770189126,
"domain": "VideoGeneration",
"features": {
"structured_outputs": {
"json_object": false,
"json_schema": false
}
},
"id": "doubao-seedance-2-0-260128",
"modalities": {
"input_modalities": [
"text",
"image",
"video",
"audio"
],
"output_modalities": [
"video"
]
},
"name": "doubao-seedance-2-0",
"object": "model",
"task_type": [
"MultimodalToVideo",
"VideoExtension",
"VideoEditing"
],
"token_limits": {},
"version": "260128"
},
{
"created": 1775281921,
"domain": "3DGeneration",
"features": {
"structured_outputs": {
"json_object": false,
"json_schema": false
}
},
"id": "doubao-seed3d-2-0-260328",
"modalities": {
"input_modalities": [
"image"
],
"output_modalities": [
"three_d"
]
},
"name": "doubao-seed3d-2-0",
"object": "model",
"task_type": [
"ImageTo3D"
],
"token_limits": {},
"version": "260328"
},
{
"created": 1782821774,
"domain": "ImageGeneration",
"features": {
"structured_outputs": {
"json_object": false,
"json_schema": false
}
},
"id": "doubao-seedream-5-0-pro-260628",
"modalities": {
"input_modalities": [
"text",
"image"
],
"output_modalities": [
"image"
]
},
"name": "doubao-seedream-5-0-pro",
"object": "model",
"task_type": [
"ImageToImage",
"TextToImage"
],
"token_limits": {},
"version": "260628"
},
{
"created": 1789472816,
"domain": "VLM",
"features": {
"batch": {
"batch_chat": false,
"batch_job": false
},
"cache": {
"prefix_cache": false,
"session_cache": false
},
"structured_outputs": {
"json_object": true,
"json_schema": true
},
"tools": {
"function_calling": true
}
},
"id": "doubao-seed-2-1-pro-260915",
"modalities": {
"input_modalities": [
"text",
"image",
"video"
],
"output_modalities": [
"text"
]
},
"name": "doubao-seed-2-1-pro",
"object": "model",
"task_type": [
"VisualQuestionAnswering",
"TextGeneration"
],
"token_limits": {
"context_window": 1048576,
"max_input_token_length": 1048576,
"max_output_token_length": 262144,
"max_reasoning_token_length": 262144
},
"version": "260915"
},
{
"created": 1789531767,
"domain": "ImageGeneration",
"features": {
"tools": {
"function_calling": false
}
},
"id": "doubao-seedream-5-0-flash-260915",
"name": "doubao-seedream-5-0-flash",
"object": "model",
"version": "260915"
},
{
"created": 1792808954,
"domain": "LLM",
"features": {
"batch": {
"batch_chat": false,
"batch_job": false
},
"cache": {
"prefix_cache": true,
"session_cache": true
},
"structured_outputs": {
"json_object": true,
"json_schema": true
},
"tools": {
"function_calling": true
}
},
"id": "kimi-k3-1-pro-261024",
"modalities": {
"input_modalities": [
"text",
"image",
"video"
],
"output_modalities": [
"text"
]
},
"name": "kimi-k3-1-pro",
"object": "model",
"task_type": [
"TextGeneration"
],
"token_limits": {
"context_window": 1048576,
"max_input_token_length": 1048576,
"max_output_token_length": 131072,
"max_reasoning_token_length": 131072
},
"version": "261024"
},
{
"created": 1758007209,
"domain": "LLM",
"features": {
"structured_outputs": {
"json_object": false,
"json_schema": false
},
"tools": {
"function_calling": false
}
},
"id": "doubao-seed-translation-250915",
"modalities": {
"input_modalities": [
"text"
],
"output_modalities": [
"text"
]
},
"name": "doubao-seed-translation",
"object": "model",
"task_type": [
"TextGeneration"
],
"token_limits": {
"context_window": 4096,
"max_input_token_length": 1024,
"max_output_token_length": 3072
},
"version": "250915"
}
]
}