Frontmatter Configuration
YAML configuration
Frontmatter configuration is very flexible and can work with many services such as OpenAI and HuggingFace.
The structure of the frontmatter
---
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
.
- The default value is
-
reqParams: Append or not request parameters to the default configuration (true/false)
- The default value is
true
.
- The default value is
-
bodyParams: Append or not body form-data parameters to the default configuration (true/false).
-
context
- The variable that will include the considered content in bodyParams.
- The default value is
"prompt"
.
- The default value is
- The variable that will include the considered content in bodyParams.
-
output
- Request results are in the variable
requestResults
. You need to write a Javascript code to extract the results.
- Request results are in the variable
-
append
-
bodyParams
This includes the body form-data parameters. You can refer to the API documentation to know the different variables. Open AI Documentation.- For example:
- n: Number of generations
- max_tokens: the max number of tokens per generation.
- For example:
-
reqParams
- url : base url for request construction.
See Examples of frontmatter configurations.
Table of contents
Local Graph
Mentions
Set Max Content Size
[!note] Controlling the Size of the generated text This command facilitates setting the max size of the generated text. This...
Text Generator Features
There are many benefits to using a Text Generator Plugin, including the following:
What is the difference between using Text Generator and other AI Writers
Text Generator Plugin works besides [[Obsidian]] which is a powerful knowledge organization and management tool. In contrast with other AI...
What's New
Version 0.3.0-beta Key features and improvements in Text Generator v0.3.0-beta include: Refactoring the code: To ensure optimal performance and readability,...