Skip to content

Commit 5c880bf

Browse files
committed
feat(conf): replace :A -> +A (PLUS_A)
1 parent 64be1ae commit 5c880bf

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

conf/info.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const (
4040
notConfigured = "file present but not configured in llama-swap.yml"
4141
D_ = "D_"
4242
A_ = "A_"
43+
PLUS_A = "+A"
4344
)
4445

4546
// ListModels returns the model names from the config and from the models_dir.

conf/llamacppini.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ version = 1
4545
for _, model := range slices.Sorted(maps.Keys(info)) {
4646
mi := info[model]
4747
genModel(out, model, mi.Path, mi.Flags)
48-
genModel(out, model+":A", mi.Path, cfg.Llama.Goinfer+" "+mi.Flags)
48+
genModel(out, model+PLUS_A, mi.Path, cfg.Llama.Goinfer+" "+mi.Flags)
4949
}
5050

5151
return out.Bytes()

conf/llamacppini_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ n-gpu-layers = 99
2626
no-jinja = true
2727
context-switch = true
2828
29-
[model-with-flags:A]
29+
[model-with-flags` + PLUS_A + `]
3030
model = /path/model-with-flags.gguf
3131
jinja = true
3232
chat-template-file = template.jinja
@@ -41,7 +41,7 @@ version = 1
4141
[model-no-flags]
4242
model = /path/model-no-flags.gguf
4343
44-
[model-no-flags:A]
44+
[model-no-flags` + PLUS_A + `]
4545
model = /path/model-no-flags.gguf
4646
jinja = true
4747
chat-template-file = template.jinja

0 commit comments

Comments
 (0)