class OpenAI::EventSource
- OpenAI::EventSource
- Reference
- Object
Defined in:
openai/event_source.crConstructors
- .new(uri : String, base_headers : HTTP::Headers | Nil = nil, body : String | Nil = nil)
- .new(uri : URI, base_headers : HTTP::Headers | Nil = nil, body : String | Nil = nil)
Class Method Summary
Instance Method Summary
- #on_error(&on_error : NamedTuple(status_code: Int32, message: String) -> ) : Nil
- #on_message(&on_message : EventMessage -> ) : Nil
- #run : Nil
- #stop : Nil