Current section

Files

Jump to
oapi_open_ai lib schemas response file_search ranking_options.ex
Raw

lib/schemas/response/file_search/ranking_options.ex

defmodule OpenAi.Response.FileSearch.RankingOptions do
@moduledoc """
Provides struct and type for a Response.FileSearch.RankingOptions
"""
@type t :: %__MODULE__{ranker: String.t() | nil, score_threshold: number}
defstruct [:ranker, :score_threshold]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[ranker: {:enum, ["auto", "default_2024_08_21"]}, score_threshold: :number]
end
end