7cf9b4e7f8
- spec public functions (skipping controllers, views, live views and components) - use types instead of explanations in docs - remove redundant docs - fix typos
15 lines
332 B
Elixir
15 lines
332 B
Elixir
defmodule OpenAI.Completion do
|
|
@enforce_keys [:content]
|
|
defstruct content: "",
|
|
temperature: 0.2,
|
|
role: "user",
|
|
model: "gpt-4o-mini"
|
|
|
|
@type t :: %__MODULE__{
|
|
content: String.t(),
|
|
temperature: float(),
|
|
role: String.t(),
|
|
model: String.t()
|
|
}
|
|
end
|