ExOpenAI.StreamingClient behaviour (ex_openai.ex v1.1.2) View Source

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

handle_chunk(chunk, map)

View Source

Callback implementation for GenServer.init/1.

Link to this function

start_link(stream_to_pid, convert_response_fx)

View Source

Link to this section Callbacks

Specs

handle_data(any(), any()) :: {:noreply, any()}

Specs

handle_error(any(), any()) :: {:noreply, any()}

Specs

handle_finish(any()) :: {:noreply, any()}