Current section

Files

Jump to
liter_llm lib liter_llm batch_list_response.ex
Raw

lib/liter_llm/batch_list_response.ex

# This file is auto-generated by alef — DO NOT EDIT.
# alef:hash:645d8ff0f3a0ef7684f9b9ea4ce1ae251a78a2a3481ecdeabf7643c53d644bb0
# To regenerate: alef generate
# To verify freshness: alef verify --exit-code
defmodule LiterLlm.BatchListResponse do
@moduledoc "Response from listing batches."
@typedoc "Response from listing batches."
@type t :: %__MODULE__{
object: String.t() | nil,
data: [LiterLlm.BatchObject.t()],
has_more: boolean() | nil,
first_id: String.t() | nil,
last_id: String.t() | nil
}
defstruct object: nil,
data: [],
has_more: nil,
first_id: nil,
last_id: nil
defimpl Jason.Encoder do
@doc false
def encode(value, opts) do
value
|> Map.from_struct()
|> Enum.reject(fn {_k, v} -> v == nil end)
|> Enum.into(%{})
|> Jason.Encoder.encode(opts)
end
end
end