Skip to content

Commit be2d2a7

Browse files
committed
address PR comments
Signed-off-by: Emily Casey <[email protected]>
1 parent 877025b commit be2d2a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/inference/backends/llamacpp/llamacpp_config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ func (c *Config) GetArgs(bundle types.ModelBundle, socket string, mode inference
5757
}
5858
case inference.BackendModeEmbedding:
5959
args = append(args, "--embeddings")
60+
default:
61+
return nil, fmt.Errorf("unsupported backend mode %q", mode)
6062
}
6163

6264
// Add context size from model config or backend config

0 commit comments

Comments
 (0)