Chat

Chat Completions

OpenAI-compatible chat completions endpoint with RAG support.

Uses any-llm for unified LLM interface with native function calling support. If the agent has a knowledge base, automatically provides search as a tool.

post/v1/chat/completions

Headers

authorizationstring nullable

Request body

modelstring required

Agent slug to use for completion

streamboolean

Whether to stream the response

max_tokensinteger nullable

Maximum tokens to generate

Response

Successful Response

{"stackTrail":"paths:/v1/chat/completions:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 1 revision of this API.