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, message:Pair<String,String>, token:String) ~ Completion
Parameters
Return
Type | Description |
---|
Completion | completion response # # TODO: https://www.youtube.com/watch?v=czvVibB2lRA&list=PLz-ep5RbHosU2hnz5ejezwaYpdMutMVB0&index=2 # Add: max_tokens, n, temperature # |
Model response for the given chat conversation
function : Complete(model:String, message:Pair<String,String>, max_tokens:Int, temperature:Float, top_p:Float, token:String) ~ Completion
Parameters
Name | Type | Description |
---|
model | String | ID of the model to use |
message | Pair<String,String> | completion message |
max_tokens | Int | maximum number of completion tokens returned by the API |
temperature | Float | amount of randomness in the response, valued between 0 inclusive and 2 exclusive |
top_p | Float | nucleus sampling threshold, valued between 0 and 1 inclusive |
token | String | API token |
Return
Model response for the given chat conversation
function : Complete(model:String, messages:Vector<Pair<String,String>>) ~ Completion
Parameters
Return
Type | Description |
---|
Completion | completion response # # TODO: https://www.youtube.com/watch?v=czvVibB2lRA&list=PLz-ep5RbHosU2hnz5ejezwaYpdMutMVB0&index=2 # Add: max_tokens, n, temperature # |
Model response for the given chat conversation
function : Complete(model:String, messages:Vector<Pair<String,String>>) ~ Completion
Parameters
Return
GetChoices
List of chat completion choices
method : public : GetChoices() ~ Vector<API.OpenAI.Chat.Choice>
Return
Type | Description |
---|
Choice<> | compleCalled: name='/chat/completionstion choices |
GetCreatedAt
Unix timestamp (in seconds) of when the object instance was created
method : public : GetCreatedAt() ~ Int
Return
Type | Description |
---|
Int | time with the object instance was created |
GetFirstChoice
List of chat completion choices
method : public : GetFirstChoice() ~ API.OpenAI.Chat.Choice
Return
Type | Description |
---|
Choice | completion choices |
GetId
Get object instance API ID
method : public : GetId() ~ String
Return
Type | Description |
---|
String | instance ID |
GetModel
ID of the model to use
method : public : GetModel() ~ String
Return
Type | Description |
---|
String | ID of the model to use |
GetObject
Get the object type
method : public : GetObject() ~ String
Return
Type | Description |
---|
String | object type |
ToString
String representation of the object
method : public : ToString() ~ String
Return
Type | Description |
---|
String | string representation |