Model APIs Chat Render
Render a list of chat messages into the prompt text sent to the model.
Authorizations
Headers
ID of team to run requests as (optional parameter).
Body
Code of the model to use. See available model list.
"zai-org/GLM-5.2"
A list of messages comprising the conversation so far.
- System
- User
- Assistant
- Tool
[
{
"content": "You are a helpful assistant.",
"role": "system"
},
{ "content": "Hello!", "role": "user" }
]Additional keyword arguments supplied to the template renderer. These parameters will be available for use within the chat template.
A list of tools the model may call. Use this to provide a list of functions the model may generate JSON inputs for.
When tools is specified, min_tokens and response_format fields are unsupported.
Response
Successfully rendered chat messages into prompt text.
The rendered text.