將此提示複製到我們的開發者控制台中,親自試試看!

內容
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)