Skip to content

Commit 98a2637

Browse files
committed
fix lint
1 parent ce2fe36 commit 98a2637

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/tasks/src/local-apps.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import type { ModelData } from "./model-data";
22
import type { PipelineType } from "./pipelines";
33

4-
type Snippet = {
4+
interface Snippet {
55
title: string;
66
setup: string;
77
command: string;
8-
};
8+
}
99

1010
/**
1111
* Elements configurable by a local app.
@@ -53,13 +53,13 @@ function isGgufModel(model: ModelData) {
5353
return model.tags.includes("gguf");
5454
}
5555

56-
const snippetLlamacpp = (model: ModelData): Snippet[] => {
56+
const snippetLlamacpp = (model: ModelData, filepath?: string): Snippet[] => {
5757
const command = (binary: string) =>
5858
[
5959
"# Load and run the model:",
6060
`${binary} \\`,
61-
' --hf-repo "${model.id}" \\',
62-
" --hf-file {{GGUF_FILE}} \\",
61+
` --hf-repo "${model.id}" \\`,
62+
` --hf-file ${filepath ?? "{{GGUF_FILE}}"} \\`,
6363
' -p "You are a helpful assistant" \\',
6464
" --conversation",
6565
].join("\n");

0 commit comments

Comments
 (0)