Each endpoint that you implement can take it’s configuration from a .yaml
file. These files are stored in the /config/prompts/
directory.
For example a basic config file for a chat
endpoint might look like this:
Each of the different API endpoints uses one of these config files, but you are free to add more or
edit the existing ones as you like.
If you want to import a new config file then there is a utility function for that:
The getConfigFile
function loads the yaml file and converts it to a JSON object for easy usage.