add schema in config.yaml docs
This commit is contained in:
parent
1a58c582ce
commit
ba446bd633
2 changed files with 21 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue