Exception: Durable::Llm::StreamingError

Inherits:
Error
  • Object
show all
Defined in:
lib/durable/llm/errors.rb

Overview

Error raised when there is a problem with streaming responses.

This occurs during streaming operations when the connection is interrupted, the stream format is invalid, or other streaming-specific issues arise.

Examples:

Handling streaming errors

begin
  client.stream("Hello") do |chunk|
    puts chunk
  end
rescue Durable::Llm::StreamingError => e
  puts "Streaming error: #{e.message}"
end