Files
magpie/internal/catalog
ggbdpq eb0d5750f8 catalog: a relay's Nano Banana is a drawer, whatever its spelling (#2071)
ll905518294's relay serves Gemini's image models under the name they are
called, "Nano Banana 2.1", and both it and a video model landed in the
chat model list: a base-URL provider's list is classified by the id
alone, and "banana" is no word of Google's own ids, which all say
"image".

- DrawsID knows "banana": the Nano Banana family (gemini-2.5-flash-image,
  gemini-3-pro-image), which relays id "nano-banana", "Nano Banana 2.1",
  "NanoBanana2". A model it catches leaves the chat list for the
  editor's image models and Settings -> Images, as an id saying "image"
  does.
- The video model is not touched: a list that says nothing of what a
  model makes stays a chat model, for the user to mark in the editor
  (#1399, "Makes: Video model"). No word of "omni_flash-10s" says video,
  and none is guessed.

TestFetchRelayDrawerNames (a relay list with the three spellings, a
"gemini-3-pro-image-preview" that drew already, and the two that must
stay chat) fails on the old DrawsID: "Nano Banana 2.1: not a drawer",
"nano-banana-pro: not a drawer", "NanoBanana2: not a drawer". With the
word it passes.

Run (branch hunt19-b2 on origin/main f074996d): gofmt clean (CRLF false
positives judged on LF copies); go vet -tags nogui and GOOS=linux go vet
-tags nogui and GOOS=windows go vet of ./internal/catalog
./internal/gateway ./internal/provider, clean; go build -tags nogui
./... ok; go test -tags nogui -count=1 ./internal/catalog ok, and -run
'Draw|Film|Video|Image' of ./internal/gateway and ./internal/provider
ok. Not tried against the reporter's relay (no account here): the
classification is the live-list path's own, tried on a fixture of the
ids the report's screenshot shows.

Re-run on landing (macOS, origin/main 722abfbb0): the new test red with
catalog.go reverted, green with it; ./internal/catalog, and -run
'Draw|Film|Video|Image' of gateway and provider, ok; gofmt clean; go vet
darwin, GOOS=linux -tags nogui, GOOS=windows clean. No other copy of the
word list exists (grep hidream).

Fixes #2071

Generated-by: GLM-5.3-Flash (ZCode)
2026-10-14 13:01:07 +08:00
..