MCPcopy Create free account
hub / github.com/diillson/chatcli / SendPromptStream

Method SendPromptStream

llm/client/streaming_client.go:58–58  ·  view source on GitHub ↗

SendPromptStream sends a prompt and returns a channel of streaming chunks. The channel is closed when streaming completes or an error occurs. maxTokens of 0 means use provider default.

(ctx context.Context, prompt string, history []models.Message, maxTokens int)

Source from the content-addressed store, hash-verified

56 // The channel is closed when streaming completes or an error occurs.
57 // maxTokens of 0 means use provider default.
58 SendPromptStream(ctx context.Context, prompt string, history []models.Message, maxTokens int) (<-chan StreamChunk, error)
59
60 // SupportsStreaming returns true if the provider supports streaming.
61 // Some providers may conditionally support streaming (e.g., only for certain models).

Callers 1

executeStreamingTurnMethod · 0.65

Implementers 1

OpenAIClientllm/openai/openai_client.go

Calls

no outgoing calls

Tested by

no test coverage detected