Structs§
- A standard chat completion request. The response will be a string in any shape and will not be parsed.
- Use builder syntax to set the inputs and finish with
unstructured()
. - A response from a chat completion request.
- A response choice from a chat completion request.
- A chat completion message. You can pre-populate the request with user and assistant messages (alongside the system message) to provide context for the completion.
- Use builder syntax to set the inputs and finish with
build()
. - A chat completion request who’s response conforms to a particular JSON schema.
- A response from a structured chat completion request.
- A chat completion response message. Don’t use this type directly, and instead use the
?
AKATry
operator to convert it into a result that can be used.
Enums§
- The reason the response was terminated.
- The model that can be used for either standard or structured chat completions.
- The role of the message used for the chat completion.