Skip to content

Commit 4ac4bfa

Browse files
authored
Update local-apps.ts to include Cactus
1 parent 10c5429 commit 4ac4bfa

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

packages/tasks/src/local-apps.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ function isAmdRyzenModel(model: ModelData) {
9494
return model.tags.includes("ryzenai-hybrid") || model.tags.includes("ryzenai-npu");
9595
}
9696

97+
function isCactusModel(model: ModelData) {
98+
return model.tags.includes("cactus");
99+
}
100+
97101
function isMlxModel(model: ModelData) {
98102
return model.tags.includes("mlx");
99103
}
@@ -361,6 +365,21 @@ const snippetLemonade = (model: ModelData, filepath?: string): LocalAppSnippet[]
361365
];
362366
};
363367

368+
const snippetCactus = (model: ModelData, filepath?: string): LocalAppSnippet[] => {
369+
return [
370+
{
371+
title: "Install Cactus for Flutter",
372+
setup: "flutter pub get cactus",
373+
content: "Follow the documentation",
374+
},
375+
{
376+
title: "Install Cactus for React Native",
377+
setup: "npm install cactus-react-native",
378+
content: "Follow the documentation",
379+
},
380+
];
381+
};
382+
364383
/**
365384
* Add your new local app here.
366385
*
@@ -545,6 +564,13 @@ export const LOCAL_APPS = {
545564
displayOnModelPage: (model) => isLlamaCppGgufModel(model) || isAmdRyzenModel(model),
546565
snippet: snippetLemonade,
547566
},
567+
cactus: {
568+
prettyLabel: "Cactus",
569+
docsUrl: "https://cactuscompute.com/docs",
570+
mainTask: "text-generation",
571+
displayOnModelPage: isCactusModel,
572+
snippet: snippetCactus
573+
},
548574
} satisfies Record<string, LocalApp>;
549575

550576
export type LocalAppKey = keyof typeof LOCAL_APPS;

0 commit comments

Comments
 (0)