Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This action is used to create a chat/text generation using context and information provided to it.

Payload

{
"id": "msg_01KCVbXDh7WREQYJrakkYBuS",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "Here is a basic recipe and instructions for making homemade cupcakes: Ingredients: - 1 3/4 cups all-purpose flour - 1 1/2 teaspoons baking powder - 1/4 teaspoon salt - 1/2 cup unsalted butter, at room temperature - 1 cup granulated sugar - 2 large eggs, at room temperature - 1 teaspoon vanilla extract - 1/2 cup milk, at room temperature Instructions: 1. Preheat the oven to 350°F (177°C). Line a 12-cup muffin tin with paper liners. 2. In a medium bowl, whisk together the flour, baking powder, and salt. Set aside. 3. In a large bowl, beat the butter and sugar together until light and flu"
}
],
"model": "claude-3-haiku-20240307",
"stop_reason": "max_tokens",
"stop_sequence": null,
"usage": {
"input_tokens": 20,
"output_tokens": 200
},
"messages": [
{
"role": "user",
"content": "How can I make cupcakes"
},
{
"role": "assistant",
"content": "Here is a basic recipe and instructions for making homemade cupcakes: Ingredients: - 1 3/4 cups all-purpose flour - 1 1/2 teaspoons baking powder - 1/4 teaspoon salt - 1/2 cup unsalted butter, at room temperature - 1 cup granulated sugar - 2 large eggs, at room temperature - 1 teaspoon vanilla extract - 1/2 cup milk, at room temperature Instructions: 1. Preheat the oven to 350°F (177°C). Line a 12-cup muffin tin with paper liners. 2. In a medium bowl, whisk together the flour, baking powder, and salt. Set aside. 3. In a large bowl, beat the butter and sugar together until light and flu"
}
]
}

Note: System field “OpenAI” is used for controlling the chat history of Claude actions as well as OpenAI’s actions.

...

This action is used to generate text from an image input. The use case is that an image is provided by the user to Claude and based on the prompt it is analyzed and a result is generated.

Payload

{
"id": "msg_01RFaDsXtJ9DCkMxkebTBBSs",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "The image shows a close-up view of a sunflower against a bright blue sky background. The sunflower has vibrant yellow petals radiating outwards from a large central disk floret. The disk floret appears greenish-yellow and has a subtle texture. The sunflower stem and leaves are visible at the bottom of the frame, adding some green contrast to the predominantly yellow flower. The petals look fresh and the flower seems to be in full bloom, capturing the iconic and cheerful appearance of a sunflower."
}
],
"model": "claude-3-opus-20240229",
"stop_reason": "end_turn",
"stop_sequence": null,
"usage": {
"input_tokens": 159,
"output_tokens": 114
}
}

Video Tutorial

...