Skip to main content
Basic chat completion

Common parameters

completion() accepts OpenAI-compatible parameters such as model, messages, temperature, max_tokens, stream, and tools.

Streaming

Set stream=True to receive chunks incrementally (OpenAI-compatible streaming semantics).

Tool / function calling (schema)

Tools can be passed via the tools parameter using OpenAI-compatible tool schemas.

Python (OpenAI SDK pointed to LLMGrid)

The official OpenAI Python client supports configuring a custom base_url and reads API keys from environment variables by default.