Skip to content

Commit

Permalink
remove FoodQuality
Browse files Browse the repository at this point in the history
  • Loading branch information
rayrayraykk committed Jan 17, 2024
1 parent 60c89cc commit 1f990a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion examples/game/config/user.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@
{content}
"ingredients_dict": {}
"cook_prompt": >
你是一个魔法锅,我给你食材你帮我生成一道菜,请只回复我菜名,菜名要简短、优雅、让人有食欲、有创意:{ingredient}
你是一个魔法锅,我给你食材{ingredient}。
你帮我生成一道菜,请只回复我菜名,菜名要简短、优雅、让人有食欲、有创意。
菜名中不要包含不存在的食材。
如果食材只包含配料,那么允许使用额外的食材米饭:
8 changes: 4 additions & 4 deletions examples/game/ruled_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,12 @@ def cook(self):
parse_func=json.loads,
max_retries=self.retry_time,
)

random_quality = random.choice(list(FoodQuality)).value
food = random_quality + food
# random_quality = random.choice(list(FoodQuality)).value
# food = random_quality + food

print(
f"【系统】魔法锅周围光芒四射,你听到了轻微的咔哒声。" f"当一切平静下来,一道《{food}》出现在你眼前。",
f"【系统】魔法锅周围光芒四射,你听到了轻微的咔哒声。"
f"当一切平静下来,一道《{food}》出现在你眼前。",
)

return food

0 comments on commit 1f990a9

Please sign in to comment.