@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.
11 lines
3.3 KiB
JSON
11 lines
3.3 KiB
JSON
[
|
|
{"id":"meta-llama/Llama-3.3-70B-Instruct-Turbo","object":"model","created":1733443923,"type":"chat","running":false,"display_name":"Meta Llama 3.3 70B Instruct Turbo","organization":"Meta","link":"https://huggingface.co/meta-llama/Llama-3.3-70B-Instruct","license":"llama3.3","context_length":131072,"config":{"chat_template":null,"stop":["<|eot_id|>","<|eom_id|>"],"bos_token":null,"eos_token":null},"pricing":{"hourly":0,"input":0.88,"output":0.88,"base":0,"finetune":0}},
|
|
{"id":"togethercomputer/m2-bert-80M-32k-retrieval","object":"model","created":0,"type":"embedding","running":false,"display_name":"M2-BERT-Retrieval-32k","organization":"Together","link":"https://huggingface.co/togethercomputer/m2-bert-80M-32k-retrieval","license":"apache-2.0","context_length":32768,"config":{"chat_template":null,"stop":[],"bos_token":null,"eos_token":null},"pricing":{"hourly":0,"input":0.008,"output":0.008,"base":0,"finetune":0}},
|
|
{"id":"intfloat/multilingual-e5-large-instruct","object":"model","created":0,"type":"embedding","running":false,"display_name":"Multilingual E5 Large Instruct","organization":"Intfloat","link":"https://huggingface.co/intfloat/multilingual-e5-large-instruct","license":"mit","context_length":514,"config":{"chat_template":null,"stop":[],"bos_token":null,"eos_token":null},"pricing":{"hourly":0,"input":0.02,"output":0.02,"base":0,"finetune":0}},
|
|
{"id":"Salesforce/Llama-Rank-V1","object":"model","created":0,"type":"rerank","running":false,"display_name":"Salesforce Llama Rank V1 (8B)","organization":"Salesforce","link":"https://huggingface.co/Salesforce/Llama-Rank-V1","license":"llama3","context_length":8192,"config":{"chat_template":null,"stop":[],"bos_token":null,"eos_token":null},"pricing":{"hourly":0,"input":0.1,"output":0.1,"base":0,"finetune":0}},
|
|
{"id":"black-forest-labs/FLUX.1-schnell","object":"model","created":0,"type":"image","running":false,"display_name":"FLUX.1 Schnell","organization":"Black Forest Labs","link":"https://huggingface.co/black-forest-labs/FLUX.1-schnell","license":"apache-2.0","context_length":0,"config":{"chat_template":null,"stop":[],"bos_token":null,"eos_token":null},"pricing":{"hourly":0,"input":0,"output":0,"base":0,"finetune":0}},
|
|
{"id":"meta-llama/Llama-Guard-4-12B","object":"model","created":0,"type":"moderation","running":false,"display_name":"Llama Guard 4 12B","organization":"Meta","link":"https://huggingface.co/meta-llama/Llama-Guard-4-12B","license":"llama4","context_length":1048576,"config":{"chat_template":null,"stop":[],"bos_token":null,"eos_token":null},"pricing":{"hourly":0,"input":0.2,"output":0.2,"base":0,"finetune":0}},
|
|
{"id":"cartesia/sonic-2","object":"model","created":0,"type":"audio","running":false,"display_name":"Cartesia Sonic 2","organization":"Cartesia","link":"https://cartesia.ai","license":"","context_length":0,"config":{"chat_template":null,"stop":[],"bos_token":null,"eos_token":null},"pricing":{"hourly":0,"input":65,"output":0,"base":0,"finetune":0}},
|
|
{"id":"openai/whisper-large-v3","object":"model","created":0,"type":"transcribe","running":false,"display_name":"Whisper large-v3","organization":"OpenAI","link":"https://huggingface.co/openai/whisper-large-v3","license":"apache-2.0","context_length":0,"config":{"chat_template":null,"stop":[],"bos_token":null,"eos_token":null},"pricing":{"hourly":0,"input":0.0015,"output":0,"base":0,"finetune":0}}
|
|
]
|