Performs an OpenAI-style chat completion.
Model name.
Chat history as Message array.
Maximum tokens to generate (0 = unlimited).
Sampling temperature (default 1.0).
Whether to stream (not fully supported).
A JSONValue in OpenAI ChatCompletion format.
See Implementation
Performs an OpenAI-style chat completion.