Adapters
Anthropic
Learn how to use PromptL with Anthropic
Overview
You can specify the Anthropic
adapter when rendering a prompt to automatically format the output for Anthropic’s API.
Anthropic does not support system messages in the messages array. PromptL will
automatically move the first system message to the config
object, as
Anthropic recommends, but that means that:
- You can only have system messages at the beggining of your prompt.
- You must define non-system messages (the messages array cannot be empty).