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:c4a0dfba2d8eb8604ef3e22fbb73dd8999ca683c0dba62ef08f3888974e7f400
# To regenerate: alef generate
# To verify freshness: alef verify --exit-code
# Issues & docs: https://github.com/kreuzberg-dev/alef
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