Skip to content

Commit

Permalink
add schema in config.yaml docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sestinj committed Feb 25, 2025
1 parent 1a58c58 commit ba446bd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 20 deletions.
1 change: 1 addition & 0 deletions docs/docs/yaml-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
42 changes: 22 additions & 20 deletions docs/docs/yaml-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -331,33 +332,34 @@ a `config.yaml` configuration file using anchors:
---
name: MyProject
version: 0.0.1
schema: v1
model_defaults: &model_defaults
provider: openai
apiKey: my-api-key
apiBase: https://api.example.com/llm
models:
- 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
<<: *model_defaults
model: qwen2.5-coder-7b
useLegacyCompletionsEndpoint: false
roles:
- autocomplete
- 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
<<: *model_defaults
model: qwen2.5-coder-7b
useLegacyCompletionsEndpoint: false
roles:
- autocomplete
```

### Fully deprecated settings
Expand Down

0 comments on commit ba446bd

Please sign in to comment.