Add bots files handling logic
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user