[go: up one dir, main page]

Module streaming

Source
Expand description

This module provides functionality for working with streaming completion models. It provides traits and types for generating streaming completion requests and handling streaming completion responses.

The main traits defined in this module are:

Enums§

StreamingChoice
Enum representing a streaming chunk from the model

Traits§

StreamingChat
Trait for high-level streaming chat interface
StreamingCompletion
Trait for low-level streaming completion interface
StreamingCompletionModel
Trait defining a streaming completion model
StreamingPrompt
Trait for high-level streaming prompt interface

Functions§

stream_to_stdout
helper function to stream a completion request to stdout

Type Aliases§

StreamingResult