Dedicated.ChatRender
Chat render
Given a list of messages forming a conversation, the API renders them into the final prompt text that will be sent to the model.
post/dedicated/v1/chat/render
Request
- Base URLhttps://api.friendli.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
X-Friendli-Teamstring nullable
ID of team to run requests as (optional parameter).
Request body
Example request
{
"messages": [
{
"content": "You are a helpful assistant.",
"role": "system"
},
{
"content": "Hello!",
"role": "user"
}
],
"model": "(endpoint-id)"
}Response
Successfully rendered chat messages into prompt text.
Changes
No recorded changes to this operation across all 1 revision of this API.