OpenAI-compatible chat completions
OpenAI-compatible chat completions
Drop-in for OpenAI clients with `model: "decision-machine-1"`. Two modes: `response_format: { type: "json_schema" }` extracts the schema from the user messages and returns the JSON as the assistant content; `tools` picks a tool and fills its arguments (function calling). Plain chat is rejected with 400. `stream: true` returns one chunk then [DONE].
Request
This endpoint expects an object.
model
messages
response_format
tools
tool_choice
stream
Response
Completion
id
object
created
model
choices
usage
Errors
400
Bad Request Error