Concrete HTTP chat‑model wrapper.
Supports streaming (options.stream = true) and exposes stop() which cancels the underlying fetch via AbortController.
options.stream = true
stop()
fetch
AbortController
Readonly
Human‑readable model name (e.g. "gpt‑4o-mini").
Optional
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
.