Packages

Elixir bindings for HuggingFace [Text Generation Inference](https://github.com/huggingface/text-generation-inference) API.

Current section

Files

Jump to
text_generation_inference lib text_generation_inference compat_generate_options.ex
Raw

lib/text_generation_inference/compat_generate_options.ex

defmodule TextGenerationInference.CompatGenerateOptions do
@moduledoc """
Provides struct and type for CompatGenerateOptions
"""
@type t :: %__MODULE__{use_cache: boolean | nil, wait_for_model: boolean | nil}
defstruct [:use_cache, :wait_for_model]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[use_cache: :boolean, wait_for_model: :boolean]
end
end