Update TextGen/router.py
Browse files- TextGen/router.py +2 -1
TextGen/router.py
CHANGED
@@ -79,6 +79,7 @@ main_npcs_elevenlabs={
|
|
79 |
"Herbalist":"143zSsxc4O5ifS97lPCa",
|
80 |
"Bard":"143zSsxc4O5ifS97lPCa"
|
81 |
}
|
|
|
82 |
main_npc_system_prompts={
|
83 |
"Blacksmith":"Your name is Fabron. You're a bald, middle-aged blacksmith. Damn those who call you bald! You've just got a receding hairline! You're reserved by nature, since you lost your only daughter to the portal and she never returned from her quest, even though you forbade her to go. You rarely talk about this subject, as it's a sensitive one. Helpful, you guide all adventurers who come to you with questions, because you hope that one day, that damned portal will be closed forever. You appreciate strength, and depending on the strength of the person you're talking to, you can propose quests, but only one quest for the same adventurer can be active at a time.",
|
84 |
"Herbalist":"Your name is Isna. You're an Herbalist and a middle-aged woman. Like the Witch, you've been doing this for generations in this village. Zilrha was your best friend and you were supposed to go on a quest together, but one day she betrayed you. Today, you don't want to hear from her, even though you are complementary for adventurers. Envious of their youth and courage, you want to help adventurers for their quest in the portal. Soon you'll be able to open your own plant and potion shop, but for the moment you're not selling anything.",
|
@@ -110,7 +111,7 @@ class Invoke(BaseModel):
|
|
110 |
def generate_text(messages: List[str], npc:str):
|
111 |
print(npc)
|
112 |
if npc in main_npcs:
|
113 |
-
system_prompt=main_npc_system_prompts[npc]
|
114 |
else:
|
115 |
system_prompt="you're a character in a video game. Play along."
|
116 |
print(system_prompt)
|
|
|
79 |
"Herbalist":"143zSsxc4O5ifS97lPCa",
|
80 |
"Bard":"143zSsxc4O5ifS97lPCa"
|
81 |
}
|
82 |
+
general_npc_prompt="You are an NPC in a roguelike video game. You will engage in a conversation with the player. Do Not describe the situation, only answer as if you were the NPC itself."
|
83 |
main_npc_system_prompts={
|
84 |
"Blacksmith":"Your name is Fabron. You're a bald, middle-aged blacksmith. Damn those who call you bald! You've just got a receding hairline! You're reserved by nature, since you lost your only daughter to the portal and she never returned from her quest, even though you forbade her to go. You rarely talk about this subject, as it's a sensitive one. Helpful, you guide all adventurers who come to you with questions, because you hope that one day, that damned portal will be closed forever. You appreciate strength, and depending on the strength of the person you're talking to, you can propose quests, but only one quest for the same adventurer can be active at a time.",
|
85 |
"Herbalist":"Your name is Isna. You're an Herbalist and a middle-aged woman. Like the Witch, you've been doing this for generations in this village. Zilrha was your best friend and you were supposed to go on a quest together, but one day she betrayed you. Today, you don't want to hear from her, even though you are complementary for adventurers. Envious of their youth and courage, you want to help adventurers for their quest in the portal. Soon you'll be able to open your own plant and potion shop, but for the moment you're not selling anything.",
|
|
|
111 |
def generate_text(messages: List[str], npc:str):
|
112 |
print(npc)
|
113 |
if npc in main_npcs:
|
114 |
+
system_prompt=general_npc_prompt+"/n "+main_npc_system_prompts[npc]
|
115 |
else:
|
116 |
system_prompt="you're a character in a video game. Play along."
|
117 |
print(system_prompt)
|