All Bundles

Completion

Model response for a given chat conversation

Derived from: EndPoint

Operations

Complete

Model response for the given chat conversation

function : Complete(model:String, messages:Vector<Pair<String,String>>) ~ Completion
Parameters
NameTypeDescription
modelStringID of the model to use
messagesVector<Pair<String,String>>list of messages comprising the conversation so far.

Return
TypeDescription
Completioncompletion response

GetChoices

List of chat completion choices

method : public : GetChoices() ~ Vector<API.OpenAI.Chat.Choice>
Return
TypeDescription
Choice<>completion choices

GetCreatedAt

Unix timestamp (in seconds) of when the object instance was created

method : public : GetCreatedAt() ~ Int
Return
TypeDescription
Inttime with the object instance was created

GetId

Get object instance API ID

method : public : GetId() ~ String
Return
TypeDescription
Stringinstance ID

GetModel

ID of the model to use

method : public : GetModel() ~ String
Return
TypeDescription
StringID of the model to use

GetObject

Get the object type

method : public : GetObject() ~ String
Return
TypeDescription
Stringobject type

ToString

String representation of the object

method : public : ToString() ~ String
Return
TypeDescription
Stringstring representation