## YAML configuration
Frontmatter configuration is very flexible and can work with many services such as [[Get OpenAI Access Token|OpenAI]] and [[HuggingFace]].
## The structure of the frontmatter
```ymal
---
config:
append:
bodyParams: Boolean
reqParams: Boolean
context: String
output: String
bodyParams:
parameter: value
reqParams:
parameter: value
---
```
* **config**
* **append**
* **bodyParams**: Append or not body form-data parameters to the default configuration (true/false).
* The default value is `true`.
* **reqParams**: Append or not request parameters to the default configuration (true/false)
* The default value is `true`.
* **context**
* The variable that will include the considered content in bodyParams.
* The default value is `"prompt"`.
* **output**
* Request results are in the variable `requestResults`. You need to write a Javascript code to extract the results.
* **bodyParams**
This includes the body form-data parameters. You can refer to the API documentation to know the different variables. [Open AI Documentation](https://beta.openai.com/docs/api-reference).
* For example:
* **n**: Number of generations
* **max_tokens**: the max number of tokens per generation.
* **reqParams**
* url : base url for request construction.
### See [[Examples of frontmatter configurations]].