Skip to content

Commit cacaccf

Browse files
committed
clean up some doc nits
1 parent ba29d81 commit cacaccf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

config.example.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@ startPort: 10001
3838
# macros: a dictionary of string substitutions
3939
# - optional, default: empty dictionary
4040
# - macros are reusable snippets
41-
# - used in a model's cmd, cmdStop, proxy and checkEndpoint
41+
# - used in a model's cmd, cmdStop, proxy, checkEndpoint, filters.stripParams
4242
# - useful for reducing common configuration settings
4343
# - macro names are strings and must be less than 64 characters
4444
# - macro names must match the regex ^[a-zA-Z0-9_-]+$
4545
# - macro names must not be a reserved name: PORT or MODEL_ID
4646
# - macro values must be less than 1024 characters
47+
#
48+
# Important: do not nest macros inside other macros; expansion is single-pass
4749
macros:
4850
"latest-llama": >
4951
/path/to/llama-server/llama-server-ec9e0301

proxy/config/model_config_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ models:
4040
assert.NoError(t, err)
4141
for modelId, modelConfig := range config.Models {
4242
t.Run(fmt.Sprintf("Testing macros in filters for model %s", modelId), func(t *testing.T) {
43-
// make sure `model` and enmpty strings are not in the list
4443
assert.Equal(t, "model, top_k, top_k, temperature, temperature, top_p, , ,", modelConfig.Filters.StripParams)
4544
sanitized, err := modelConfig.Filters.SanitizedStripParams()
4645
if assert.NoError(t, err) {

0 commit comments

Comments
 (0)