stream

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageStream

type MessageStream interface {
	Recv() (*schema.Message, error)
	Close()
}

type SSEHandler

type SSEHandler struct {
	// contains filtered or unexported fields
}

func NewSSEHandler

func NewSSEHandler(model string, stopSequences []string, thinkingEnabled bool) *SSEHandler

func (*SSEHandler) StreamToClient

func (h *SSEHandler) StreamToClient(stream MessageStream, w http.ResponseWriter) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL