Load prompts from Leicht
preprompted-data
and copy the name of your desired prompt. We’ll use the name basic
for the sake of simplicity.leicht.prompts
, we’ll import the get_prompt()
function to fetch a prompt and cache it.awesome/character
which requires two variables, support inserting texts.
awesome/character
requires:
{character}
– The character name.{series}
– The series featuring the character.community/<discussion id>
.
For example, if we want to use RapperGPT – #2 by the community:
leicht.prompts
module works seamlessly with the Assistant
API. Provide a valid prompt specification and Leicht will fetch the prompt directly.