What’s Compatible
Boole AI supports the following endpoints and features from the OpenAI specification:POST /v1/chat/completions
Chat completions with streaming, tool calls, and structured outputs.
POST /v1/completions
Legacy text completions for single-turn prompts.
GET /v1/models
List all models available on your account.
POST /v1/audio/transcriptions
Audio transcription powered by Whisper Large v3.
- Streaming via server-sent events (SSE) — set
stream: truein any chat or completion request - Tool / function calling — pass a
toolsarray and handletool_callsin the response - JSON mode and structured outputs — set
response_format: { type: "json_object" }or supply a JSON schema - System prompts, temperature, top_p, max_tokens, and stop sequences — all standard sampling parameters work as documented
Configuration
Switch between the Boole Cloud API and a locally running binary by changing two values.- Cloud API
- Local Binary
Drop-In Example
The migration from OpenAI to Boole is a two-line change. Everything else — messages format, model parameters, response parsing — stays identical.Streaming
Enable streaming by passingstream=True. The SDK surfaces each token as a delta chunk as Boole sends it — at up to 312 tokens/sec on Llama 3.3 70B, the response starts appearing almost immediately.
streaming.py
Tool Calls
Pass atools array exactly as you would with the OpenAI SDK. Boole returns a tool_calls field in the response when the model decides to invoke a function.
tool_calls.py
Model names in Boole differ from OpenAI’s. When migrating, update your
model string — for example, replace "gpt-4" with "llama-3.3-70b-instruct". Run GET /v1/models or check the Models page for the full list of available model IDs.