axelburks added a custom provider on OpenAI's Responses API and ticked
"Searches the web by itself", but Settings › Web search's searcher
picker didn't offer it. Searchers() and namedSearcher took a
provider's models from Available() alone. A relay with no /models
list has its models typed in by hand (Exposed) and none available, so
it was left out of the picker, while the same row named it among the
relays to pick there. searcherModels gives what the provider lists,
then the hand-typed ones it doesn't. A relay that lists its models was
offered before this already.
Tests:
- TestSearcherRelayWithoutModelList (gateway): a Responses relay with
no /models and a typed model is a searcher and is resolved by name.
- TestSearcherPickerOffersResponsesRelay (gui): the relay saved the way
the editor saves it is in SearchChoices with its model.
Both were red on the old code.
Run (mote-run), at this commit alone: go vet of gateway and gui, and
go test -run 'Searcher' of gateway and gui: ok. The full checks ran
with the next commit; its body has them.
Not tried: the reporter's own relay (we don't know whether it lists
its models; the reply asks).