mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-16 07:33:06 +08:00
Image choices were resolved from DefaultModels IDs and from mapping keys, so an alias whose target is a local image model (paint -> gpt-image-2.5-flare) never reached the picker: IsModelSupported only matches keys, and a public name is not an image model. Resolve the public name to its target before deciding, and only synthesize an entry when the target is an image model. Update the fixture of TestFetchOpenAIAccountModelsOAuthLabelsLocalImageModelsLikeUpstream: it asserted on an upstream slug the account did not configure, which conflicts with the account-scoped projection. Coverage is preserved by configuring that slug and by a new test asserting unconfigured text models stay out.