OptionalCancellationToken?: AbortSignalOptionaldimensions?: numberOptional output dimension override. Only supported by models that accept a
dimensions parameter (e.g. OpenAI text-embedding-3-*). When omitted,
the model's native default dimension is used. The value stored in
MJ: Vector Indexes.Dimensions is the authoritative source — callers should
read it from there and pass it here.
Optional signal for cancelling the request. Drivers whose SDK can abort a request forward it, so an abort tears the request down; drivers that call an in-process model check it between items and stop. A request that stops because the signal fired throws a cancellation error (classified
Cancelled, or a retriableNetworkErrorwhen the signal was aborted by a timeout) rather than returning an empty result, and is never retried.