Add bots files handling logic

This commit is contained in:
2026-10-21 17:56:09 +01:00
parent b0af4db1bf
commit d17a4a7bdd
97 changed files with 5843 additions and 41 deletions
@@ -17,6 +17,7 @@ type Params = {
* audio: free ones often drop it)
* - speech: a text-to-speech model
* - image: makes images
* - embedding: turns text into vectors (never a chat model)
*/
export default function modelServesHarness({ model, harness }: Params) {
const input = new Set(model.input_modalities);
@@ -39,5 +40,8 @@ export default function modelServesHarness({ model, harness }: Params) {
case "image":
return output.has("image");
case "embedding":
return output.has("embeddings");
}
}
+1 -1
View File
@@ -28,7 +28,7 @@ type Params<T extends HarnessCatalogModel> = {
*
* Within a group, benchmarked models come first by intelligence index,
* then the rest: full-size before small variants, newest first. None for
* a harness that isn't `automatic` (transcription, speech).
* a harness that isn't `automatic` (transcription, speech, embeddings).
*/
export default function rankAutoModels<T extends HarnessCatalogModel>({
models,