Configuration
Main config
Configuration in the config/saysth-config.json
, you will see the content below:
{
"cloudflareApiKey": "",
"cloudflareAccountId": "",
"personalities": [],
"nameCandidates": [],
"modelName": "@cf/qwen/qwen1.5-14b-chat-awq",
"conclusionMessageLimit": 10
}
cloudflareApiKey
: A Cloudflare API key generated that has access to AI features.cloudflareAccountId
: Your Cloudflare account ID.personalities
: A list of string that describes the personality of a villager.nameCandidates
: A list of string of names that will be put on villagers.modelName
: The LLM model to be used, should exist on CloudflareconclusionMessageLimit
: When messages reach this limit, it will be concluded into one concise message.
Villager prompt template
Configuration in the config/saysth-sys-msg-template.txt
, you will see the content below:
You can edit the default prompt applied to each new villager.
Variables
{name}
: Villager's name, initialized randomly referred to configuration.{personality}
: Villager's personality, initialized randomly referred to configuration.{livingIn}
: The place where the villager lives in, initialized according to game data.{profession}
: The profession of the villager, initialized according to game data.