将此提示复制到我们的开发者控制台中,亲自尝试一下!

内容
System你的任务是根据用户输入的可用食材和饮食偏好生成个性化的食谱创意。利用这些信息提供各种创意美味的食谱,这些食谱可以使用给定的食材制作,同时满足用户的饮食需求(如果有提及的话)。对于每个食谱,提供简短描述、所需食材清单和简单的操作指南。确保食谱易于遵循、营养丰富,并且可以使用最少的额外食材或设备准备。
User可用食材:鸡胸肉、西兰花、胡萝卜、洋葱、大蒜、橄榄油、米饭、无麸质酱油、蜂蜜
饮食偏好:无麸质

示例输出

推荐的食谱:

蜂蜜蒜香鸡肉炒菜

描述:一道快速且风味十足的炒菜,包含嫩滑的鸡胸肉、爽脆的蔬菜,以及甜咸相宜的蜂蜜蒜香酱汁。
食材:

  • 2个鸡胸肉,切成小块
  • 2杯西兰花花朵
  • 1杯切片胡萝卜
  • 1个洋葱,切丁
  • 3瓣大蒜,切碎
  • 2汤匙橄榄油
  • 1/4杯酱油(无麸质)
  • 2汤匙蜂蜜

步骤:

  1. 在大炒锅或炒菜锅中,用中高火加热橄榄油。
  2. 加入切丁的洋葱和切碎的大蒜,炒至香气四溢,约2分钟。
  3. 加入鸡肉块,煮至不再呈粉红色,约5-7分钟。
  4. 加入西兰花和胡萝卜,翻炒至蔬菜变得脆嫩,约5分钟。
  5. 在小碗中,将酱油和蜂蜜搅拌均匀。
  6. 将酱汁倒在鸡肉和蔬菜上,搅拌均匀。
  7. 再煮2-3分钟,或直到酱汁略微变稠。
  8. 与蒸米饭一起趁热食用。

鸡肉蔬菜米饭碗

描述:一道丰盛且营养的米饭碗,上面铺有调味鸡肉、烤蔬菜,并淋上酱油。

食材:

  • 2个鸡胸肉,切成小块
  • 2杯西兰花花朵
  • 1杯切片胡萝卜
  • 1个洋葱,切丁
  • 2瓣大蒜,切碎
  • 2汤匙橄榄油
  • 1/4杯酱油(无麸质)
  • 2杯煮熟的米饭

步骤:

  1. 预热烤箱至400°F(200°C)。
  2. 在一个大碗中,混合鸡肉块、西兰花、胡萝卜、洋葱和大蒜。
  3. 淋上橄榄油和一半的酱油,搅拌均匀。
  4. 将鸡肉和蔬菜铺在烤盘上,在预热好的烤箱中烤20-25分钟,或直到鸡肉煮熟且蔬菜变软。
  5. 将煮熟的米饭分装到几个碗中。
  6. 在每个碗的米饭上铺上烤好的鸡肉和蔬菜。
  7. 在每个碗上淋上剩余的酱油。
  8. 趁热食用,享受美味!

API请求

import anthropic

client = anthropic.Anthropic(
  # defaults to os.environ.get("ANTHROPIC_API_KEY")
  api_key="my_api_key",
)
message = client.messages.create(
  model="claude-opus-4-20250514",
  max_tokens=2000,
  temperature=0.5,
  system="Your task is to generate personalized recipe ideas based on the user's input of available ingredients and dietary preferences. Use this information to suggest a variety of creative and delicious recipes that can be made using the given ingredients while accommodating the user's dietary needs, if any are mentioned. For each recipe, provide a brief description, a list of required ingredients, and a simple set of instructions. Ensure that the recipes are easy to follow, nutritious, and can be prepared with minimal additional ingredients or equipment.",
  messages=[
    {
    "role": "user",
    "content": [
        {
          "type": "text",
          "text": "Available ingredients: chicken breast, broccoli, carrots, onion, garlic, olive oil, rice, gluten free soy sauce, honey \nDietary preferences: gluten free"
        }
      ]
    }
  ]
)
print(message.content)