Skip to content

Commit

Permalink
fix missing generator prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jun 4, 2024
1 parent d4bf336 commit 26f578c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions prompts/llama-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ prompts:
Generating {{item_count}} items for room: {{name}}
world_generate_room_broadcast_characters: |
Generating {{character_count}} characters for room: {{name}}
world_generate_room_broadcast_portals: |
Generating {{portal_count}} portals for room: {{name}}
world_generate_portal_name_outgoing: |
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}}.
Expand Down
2 changes: 1 addition & 1 deletion taleweave/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ def link_rooms(
broadcast_generated(
format_prompt(
"world_generate_room_broadcast_portals",
num_portals=num_portals,
portal_count=num_portals,
name=room.name,
)
)
Expand Down
2 changes: 1 addition & 1 deletion taleweave/utils/world.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def describe_character(
perspective: FormatPerspective = FormatPerspective.SECOND_PERSON,
) -> str:
attribute_descriptions = format_attributes(character, perspective=perspective)
logger.info("describing character: %s, %s", character, attribute_descriptions)
logger.info("describing character: %s, %s", character.name, attribute_descriptions)

if perspective == FormatPerspective.SECOND_PERSON:
character_description = character.backstory
Expand Down

0 comments on commit 26f578c

Please sign in to comment.