Closed
Description
Union and list types were added as of #1311, however when you call them with an invalid type, the UI incorrectly displays them as "Booting" forever.
Test case:
- Use the following Replicate model: https://replicate.com/venkr/cog-union-test
- 1: Try setting
string_union
to a string -> it works fine, response is received in milliseconds. - 2: Try setting
string_union
to a string, andstring_list
to a string -> the model gets stuck in booting forever.
I think it's fine if the UI doesn't support / breaks with this for now, but it should fail fast rather than showing the user that it's stuck in booting.
Some example prediction-ids:
- Success where an invalid type isn't provided: 4hfvd6bbr5ahfgakoe72ymcwxy
- Infinite booting where an invalid type is provided: jew4vajbowvtett2qm2djrwgiq