Groq.ChatCompletion (Groq v0.1.0)
Summary
Types
Link to this type
choice()
@type choice() :: %{ finish_reason: String.t() | nil, index: pos_integer(), message: choice_message(), logprobs: choice_logprobs() | nil }
Link to this type
choice_logprobs()
@type choice_logprobs() :: %{content: [choice_logprobs_content()]}
Link to this type
choice_logprobs_content()
Link to this type
choice_message()
Link to this type
function_call()
Link to this type
logprob()
Link to this type
message()
Link to this type
params()
Link to this type
response_mode_opts()
@type response_mode_opts() :: %{type: String.t()}
Link to this type
tool_call()
@type tool_call() :: %{id: binary(), type: String.t(), function: function_call()}
Link to this type
usage()
@type usage() :: %{ completion_tokens: pos_integer(), prompt_tokens: pos_integer(), total_tokens: pos_integer() }
Functions
Link to this function