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 error_response.ex
Raw

lib/text_generation_inference/error_response.ex

defmodule TextGenerationInference.ErrorResponse do
@moduledoc """
Provides struct and type for ErrorResponse
"""
@type t :: %__MODULE__{error: String.t(), error_type: String.t()}
defstruct [:error, :error_type]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[error: :string, error_type: :string]
end
end