Learn how to use PromptL with different LLM providers
role
-based messages, while Anthropic uses a user/assistant
prefix.gpt-4
and gpt-3.5
.
messages
and config
into the format required by your provider.
An adapter is defined as an object with two functions: { fromPromptl, toPromptl }
.
Each function takes an object with messages
and config
properties and returns the same object with transformed data.
To see the structure of messages
used in PromptL, check out the GitHub PromptL Repository
render
function: