Optional
options: CompleteOptions<Memory>Execute a chat completion request and return the provider's raw payload. Streaming responses are concatenated into a single JSON object containing the final assistant message.
Build a provider‑specific completion request.
Concrete HTTP chat‑model wrapper.
Supports streaming (
options.stream = true
) and exposesstop()
which cancels the underlyingfetch
viaAbortController
.