Skip to content

Commit 26f578c

Browse files
committed
fix missing generator prompt
1 parent d4bf336 commit 26f578c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

prompts/llama-base.yml

+2
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@ prompts:
232232
Generating {{item_count}} items for room: {{name}}
233233
world_generate_room_broadcast_characters: |
234234
Generating {{character_count}} characters for room: {{name}}
235+
world_generate_room_broadcast_portals: |
236+
Generating {{portal_count}} portals for room: {{name}}
235237
236238
world_generate_portal_name_outgoing: |
237239
Generate the name of a portal that leads from the {{source_room}} room to the {{dest_room}} room and fits the world theme of {{world_theme}}.

taleweave/generate.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ def link_rooms(
522522
broadcast_generated(
523523
format_prompt(
524524
"world_generate_room_broadcast_portals",
525-
num_portals=num_portals,
525+
portal_count=num_portals,
526526
name=room.name,
527527
)
528528
)

taleweave/utils/world.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def describe_character(
1212
perspective: FormatPerspective = FormatPerspective.SECOND_PERSON,
1313
) -> str:
1414
attribute_descriptions = format_attributes(character, perspective=perspective)
15-
logger.info("describing character: %s, %s", character, attribute_descriptions)
15+
logger.info("describing character: %s, %s", character.name, attribute_descriptions)
1616

1717
if perspective == FormatPerspective.SECOND_PERSON:
1818
character_description = character.backstory

0 commit comments

Comments
 (0)