LLMProxy.HTTP.Routes.Passthrough.ResultHandler (llm_proxy v0.1.0)

Copy Markdown View Source

Route callbacks used to render passthrough non-streaming and streaming results.

Summary

Types

non_stream()

@type non_stream() :: (Plug.Conn.t(),
                 module(),
                 map(),
                 map(),
                 String.t(),
                 String.t() ->
                   Plug.Conn.t())

stream()

@type stream() :: (Plug.Conn.t(),
             module(),
             Enumerable.t(),
             map(),
             String.t(),
             map()
             | nil,
             String.t() ->
               Plug.Conn.t())

t()

@type t() :: %LLMProxy.HTTP.Routes.Passthrough.ResultHandler{
  non_stream: non_stream(),
  stream: stream()
}