Skip to content

Function: sendInference()

sendInference(gateway, protocol, request, response): Promise<void>

Execute and stream one model request through Express with cancellation.

ModelGateway

"openai-responses" | "openai-chat" | "anthropic-messages" | "openai-embeddings"

Request

Response

Promise<void>