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:1213a045f6c720bcab8727df8faa87409c027be1ac51394a1bf33f9c83c5d07c
# 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: [map()],
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