From ba446bd6335498ae6f07021894874c50b0b95a87 Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 24 Feb 2025 19:23:03 -0800 Subject: [PATCH] add schema in config.yaml docs --- docs/docs/yaml-migration.md | 1 + docs/docs/yaml-reference.md | 38 +++++++++++++++++++------------------ 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/docs/docs/yaml-migration.md b/docs/docs/yaml-migration.md index cc603ce1c..91dec946d 100644 --- a/docs/docs/yaml-migration.md +++ b/docs/docs/yaml-migration.md @@ -23,6 +23,7 @@ Give your configuration a `name` and a `version`: ```yaml title="config.yaml" name: my-configuration version: 0.0.1 +schema: v1 ``` ### Models diff --git a/docs/docs/yaml-reference.md b/docs/docs/yaml-reference.md index 427d3e865..d40292e2e 100644 --- a/docs/docs/yaml-reference.md +++ b/docs/docs/yaml-reference.md @@ -264,6 +264,7 @@ Putting it all together, here's a complete example of a `config.yaml` configurat ```yaml title="config.yaml" name: MyProject version: 0.0.1 +schema: v1 models: - name: GPT-4 @@ -331,6 +332,7 @@ a `config.yaml` configuration file using anchors: --- name: MyProject version: 0.0.1 +schema: v1 model_defaults: &model_defaults provider: openai @@ -338,26 +340,26 @@ model_defaults: &model_defaults apiBase: https://api.example.com/llm models: -- name: mistral - <<: *model_defaults - model: mistral-7b-instruct - roles: - - chat - - edit + - name: mistral + <<: *model_defaults + model: mistral-7b-instruct + roles: + - chat + - edit -- name: qwen2.5-coder-7b-instruct - <<: *model_defaults - model: qwen2.5-coder-7b-instruct - roles: - - chat - - edit + - name: qwen2.5-coder-7b-instruct + <<: *model_defaults + model: qwen2.5-coder-7b-instruct + roles: + - chat + - edit -- name: qwen2.5-coder-7b - <<: *model_defaults - model: qwen2.5-coder-7b - useLegacyCompletionsEndpoint: false - roles: - - autocomplete + - name: qwen2.5-coder-7b + <<: *model_defaults + model: qwen2.5-coder-7b + useLegacyCompletionsEndpoint: false + roles: + - autocomplete ``` ### Fully deprecated settings