From 38738525c9b202b44057c60c5ab09b45cbd251a5 Mon Sep 17 00:00:00 2001 From: Benson Wong Date: Sat, 8 Nov 2025 15:08:55 -0800 Subject: [PATCH] config.example.yaml: add modeline for schema validation --- config.example.yaml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/config.example.yaml b/config.example.yaml index 03b9ee6..6af6268 100644 --- a/config.example.yaml +++ b/config.example.yaml @@ -1,3 +1,6 @@ +# add this modeline for validation in vscode +# yaml-language-server: $schema=https://raw.githubusercontent.com/mostlygeek/llama-swap/refs/heads/main/config-schema.json +# # llama-swap YAML configuration example # ------------------------------------- # @@ -72,7 +75,6 @@ macros: # - the model's ID is available in the ${MODEL_ID} macro, also available in macros defined above # - below are examples of the all the settings a model can have models: - # keys are the model names used in API requests "llama": # macros: a dictionary of string substitutions specific to this model @@ -298,10 +300,10 @@ hooks: # - optional, default: empty dictionary # - the only supported action is preload on_startup: - # preload: a list of model ids to load on startup - # - optional, default: empty list - # - model names must match keys in the models sections - # - when preloading multiple models at once, define a group - # otherwise models will be loaded and swapped out + # preload: a list of model ids to load on startup + # - optional, default: empty list + # - model names must match keys in the models sections + # - when preloading multiple models at once, define a group + # otherwise models will be loaded and swapped out preload: - - "llama" \ No newline at end of file + - "llama"