config.example.yaml: add modeline for schema validation
This commit is contained in:
@@ -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
|
# 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
|
# - 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
|
# - below are examples of the all the settings a model can have
|
||||||
models:
|
models:
|
||||||
|
|
||||||
# keys are the model names used in API requests
|
# keys are the model names used in API requests
|
||||||
"llama":
|
"llama":
|
||||||
# macros: a dictionary of string substitutions specific to this model
|
# macros: a dictionary of string substitutions specific to this model
|
||||||
@@ -298,10 +300,10 @@ hooks:
|
|||||||
# - optional, default: empty dictionary
|
# - optional, default: empty dictionary
|
||||||
# - the only supported action is preload
|
# - the only supported action is preload
|
||||||
on_startup:
|
on_startup:
|
||||||
# preload: a list of model ids to load on startup
|
# preload: a list of model ids to load on startup
|
||||||
# - optional, default: empty list
|
# - optional, default: empty list
|
||||||
# - model names must match keys in the models sections
|
# - model names must match keys in the models sections
|
||||||
# - when preloading multiple models at once, define a group
|
# - when preloading multiple models at once, define a group
|
||||||
# otherwise models will be loaded and swapped out
|
# otherwise models will be loaded and swapped out
|
||||||
preload:
|
preload:
|
||||||
- "llama"
|
- "llama"
|
||||||
|
|||||||
Reference in New Issue
Block a user