Actions8
- API Gateway Actions
- Chat Actions
- Document Actions
API Gateway → Create Chat Completion
AI-generatedSummary
Sends a non-streaming chat completion request to the Omnifact API Gateway using the selected model and message history.
Inputs
- Model (required) — Model identifier, such as one returned by the List Models operation.
- Messages (required) — One or more messages, each with a role (assistant, developer, system, or user) and content. The final message must have the User role.
- Max Completion Tokens — Optional maximum number of completion tokens; defaults to 256 when provided by the UI.
- Max Tokens — Optional legacy token limit; defaults to 256 when provided by the UI.
- Temperature — Optional sampling temperature from 0 to 2; defaults to 1 when provided by the UI.
Output shape
One or more JSON items containing the API response.
The response is passed through as returned by the API, with n8n item linking metadata. The request uses stream=false. An empty message list or a final message whose role is not User causes an operation error.