Files
yetone f203b10726 catalog: Together AI's model list is read, its embedding and rerank models by their type (@rfiacne on X)
@rfiacne asked why the embedding models of a provider they added aren't
recognised. Together AI's GET /v1/models answers a bare JSON array
(together-python's models.list reads the answer as a list), and magpie
read only {"data": [...]} or {"models": [...]}, so the whole list failed
with "not a model list": no chat model and no embedding model was ever
fetched from it. Its embedding and rerank ids often don't say what they
are (togethercomputer/m2-bert-80M-32k-retrieval, Salesforce/Llama-Rank-V1),
but each row's "type" does (together-python's ModelType: chat, language,
code, image, embedding, moderation, rerank, audio, transcribe, video).

- a list that is the array alone is read as the rows;
- a row whose "type" is "embedding" or "rerank" ("reranking", as
  Vercel's says) is that API's model, from any list;
- at api.together.xyz alone, the rest of its types: image and video
  models go with those, audio to speech, transcribe to transcriptions,
  moderation is dropped.

Run on mote (load ~23 of 18 cores; mica was at 80 of 12):
- go test -tags nogui -run 'TestTogetherLiveList|TestVercelLiveList'
  ./internal/provider: ok. TestTogetherLiveList is red on the old
  live.go ("not a model list").
The full suite runs with the next commit, which builds on this one.
2026-11-20 16:11:39 +08:00
..