Skip to main content

call_openai_streaming

Function call_openai_streaming 

Source
pub async fn call_openai_streaming(
    http: &Client,
    req: &StreamRequest,
    tx: Sender<StreamChunk>,
) -> Result<()>
Expand description

Call OpenAI-compatible endpoint with streaming. Sends chunks to the provided channel.