Documentation
¶
Overview ¶
Package objects contains the enum values which represent the various objects returned by all OpenAI endpoints.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Object ¶
type Object int
Object enumerates the various object types returned by OpenAI endpoints.
const ( // Unknown is an invalid object. Unknown Object = iota // Model is a model (can be either a base model or fine-tuned). Model // List is a list of other objects. List // TextCompletion is a text completion. TextCompletion // CodeCompletion is a code completion. CodeCompletion // Edit is an edit. Edit // Embedding is an embedding. Embedding // File is a file. File // FineTune is a fine-tuned model. FineTune FineTimeEvent // Engine represents an engine. // Deprecated: use Model instead. Engine // ChatCompletion represents a chat completion. ChatCompletion )
func (Object) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (*Object) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface. On unrecognized value, it sets |e| to Unknown.
Click to show internal directories.
Click to hide internal directories.