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)
| 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). |
no outgoing calls
no test coverage detected