Response
Model response for a given text and files
Operations
GetCreatedAt
Unix timestamp (in seconds) of when the object instance was created
method : public : GetCreatedAt() ~ IntReturn
| Type | Description |
|---|---|
| Int | time with the object instance was created |
GetId
Get object instance API ID
method : public : GetId() ~ StringReturn
| Type | Description |
|---|---|
| String | instance ID |
GetModel
ID of the model to use
method : public : GetModel() ~ StringReturn
| Type | Description |
|---|---|
| String | ID of the model to use |
GetObject
Get the object type
method : public : GetObject() ~ StringReturn
| Type | Description |
|---|---|
| String | object type |
GetOutputs
Get response outputs
method : public : GetOutputs() ~ Vector<Output>Return
| Type | Description |
|---|---|
| Vector<Output> | response outputs |
GetText
Get response text
method : public : GetText() ~ StringReturn
| Type | Description |
|---|---|
| String | response text |
Respond
Model response for the given query
function : Respond(model:String, message:Pair<String,String>, token:String) ~ ResponseParameters
| Name | Type | Description |
|---|---|---|
| model | String | ID of the model to use |
| message | Pair<String,String> | completion message and image query. |
| token | String | API token |
Return
| Type | Description |
|---|---|
| Response | completion response |
Respond
Model response for the given query
function : Respond(model:String, message:Pair<String,String>, schema:ParameterType, token:String) ~ ResponseParameters
| Name | Type | Description |
|---|---|---|
| model | String | ID of the model to use |
| message | Pair<String,String> | completion message and image query. |
| schema | ParameterType | output schema |
| token | String | API token |
Return
| Type | Description |
|---|---|
| Response | completion response |
Respond
Model response for the given query
function : Respond(model:String, message:Pair<String,String>, max_tokens:Int, temperature:Float, top_p:Float, token:String) ~ ResponseParameters
| Name | Type | Description |
|---|---|---|
| model | String | ID of the model to use |
| message | Pair<String,String> | completion message and image query |
| 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
| Type | Description |
|---|---|
| Response | completion response |
Respond
Model response for the given query
function : Respond(model:String, message:Pair<String,String>, max_tokens:Int, temperature:Float, top_p:Float, schema:ParameterType, token:String) ~ ResponseParameters
| Name | Type | Description |
|---|---|---|
| model | String | ID of the model to use |
| message | Pair<String,String> | completion message and image query |
| 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 |
| schema | ParameterType | output schema |
| token | String | API token |
Return
| Type | Description |
|---|---|
| Response | completion response |
Respond
Model response for the given query
function : Respond(model:String, messages:Vector<Pair<String,String>>) ~ ResponseParameters
| Name | Type | Description |
|---|---|---|
| model | String | ID of the model to use |
| messages | Vector<Pair<String,String>> | list of messages comprising the conversation |
Return
| Type | Description |
|---|---|
| Response | completion response |
Respond
Model response for the given query
function : Respond(model:String, messages:Vector<Pair<String,String>>) ~ ResponseParameters
| Name | Type | Description |
|---|---|---|
| model | String | ID of the model to use |
| messages | Vector<Pair<String,String>> | list of messages comprising the conversation |
Return
| Type | Description |
|---|---|
| Response | completion response |
Respond
Model response for the given file and query
function : Respond(model:String, message:API.OpenAI.FileQuery, schema:ParameterType, token:String) ~ ResponseParameters
| Name | Type | Description |
|---|---|---|
| model | String | ID of the model to use |
| message | FileQuery | completion message and file query. |
| schema | ParameterType | output schema |
| token | String | API token |
Return
| Type | Description |
|---|---|
| Response | completion response |
Respond
Model response for the given file and query
function : Respond(model:String, message:API.OpenAI.FileQuery, token:String) ~ ResponseParameters
| Name | Type | Description |
|---|---|---|
| model | String | ID of the model to use |
| message | FileQuery | completion message and file query. |
| token | String | API token |
Return
| Type | Description |
|---|---|
| Response | completion response |
Respond
Model response for the given file and query
function : Respond(model:String, message:API.OpenAI.FileQuery, max_tokens:Int, temperature:Float, top_p:Float, schema:ParameterType, token:String) ~ ResponseParameters
| Name | Type | Description |
|---|---|---|
| model | String | ID of the model to use |
| message | FileQuery | completion message and file query |
| 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 |
| schema | ParameterType | output schema |
| token | String | API token |
Return
| Type | Description |
|---|---|
| Response | completion response |
Respond
Model response for the given file and query
function : Respond(model:String, message:API.OpenAI.FileQuery, max_tokens:Int, temperature:Float, top_p:Float, token:String) ~ ResponseParameters
| Name | Type | Description |
|---|---|---|
| model | String | ID of the model to use |
| message | FileQuery | completion message and file query |
| 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
| Type | Description |
|---|---|
| Response | completion response |
Respond
Model response for the given file and query
function : Respond(model:String, messages:Vector<FileQuery>, schema:ParameterType, token:String) ~ ResponseParameters
| Name | Type | Description |
|---|---|---|
| model | String | ID of the model to use |
| messages | Vector<FileQuery> | list of messages comprising the conversation |
| schema | ParameterType | output schema |
| token | String | API token |
Return
| Type | Description |
|---|---|
| Response | completion response |
Respond
Model response for the given file and query
function : Respond(model:String, messages:Vector<FileQuery>, max_tokens:Int, temperature:Float, top_p:Float, schema:ParameterType, token:String) ~ ResponseParameters
| Name | Type | Description |
|---|---|---|
| model | String | ID of the model to use |
| messages | Vector<FileQuery> | list of messages comprising the conversation |
| 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 |
| schema | ParameterType | output schema |
| token | String | API token |
Return
| Type | Description |
|---|---|
| Response | completion response |
Respond
Model response for the given image and query
function : Respond(model:String, message:Pair<String,API.OpenAI.ImageQuery>, schema:ParameterType, token:String) ~ ResponseParameters
| Name | Type | Description |
|---|---|---|
| model | String | ID of the model to use |
| message | Pair<String,APIOpenAIImageQuery> | completion message and image query. |
| schema | ParameterType | output schema |
| token | String | API token |
Return
| Type | Description |
|---|---|
| Response | completion response |
Respond
Model response for the given image and query
function : Respond(model:String, message:Pair<String,API.OpenAI.ImageQuery>, token:String) ~ ResponseParameters
| Name | Type | Description |
|---|---|---|
| model | String | ID of the model to use |
| message | Pair<String,APIOpenAIImageQuery> | completion message and image query. |
| token | String | API token |
Return
| Type | Description |
|---|---|
| Response | completion response |
Respond
Model response for the given image and query
function : Respond(model:String, message:Pair<String,API.OpenAI.ImageQuery>, max_tokens:Int, temperature:Float, top_p:Float, schema:ParameterType, token:String) ~ ResponseParameters
| Name | Type | Description |
|---|---|---|
| model | String | ID of the model to use |
| message | Pair<String,APIOpenAIImageQuery> | completion message and image query |
| 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 |
| schema | ParameterType | output schema |
| token | String | API token |
Return
| Type | Description |
|---|---|
| Response | completion response |
Respond
Model response for the given image and query
function : Respond(model:String, message:Pair<String,API.OpenAI.ImageQuery>, max_tokens:Int, temperature:Float, top_p:Float, token:String) ~ ResponseParameters
| Name | Type | Description |
|---|---|---|
| model | String | ID of the model to use |
| message | Pair<String,APIOpenAIImageQuery> | completion message and image query |
| 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
| Type | Description |
|---|---|
| Response | completion response |
Respond
Model response for the given image and query
function : Respond(model:String, messages:Vector<Pair<String,API.OpenAI.ImageQuery>>) ~ ResponseParameters
| Name | Type | Description |
|---|---|---|
| model | String | ID of the model to use |
| messages | Vector<Pair<String,APIOpenAIImageQuery>> | list of messages comprising the conversation |
Return
| Type | Description |
|---|---|
| Response | completion response |
Respond
Model response for the given image and query
function : Respond(model:String, messages:Vector<Pair<String,API.OpenAI.ImageQuery>>) ~ ResponseParameters
| Name | Type | Description |
|---|---|---|
| model | String | ID of the model to use |
| messages | Vector<Pair<String,APIOpenAIImageQuery>> | list of messages comprising the conversation |
Return
| Type | Description |
|---|---|
| Response | completion response |
ToString
String representation of the object
method : public : ToString() ~ StringReturn
| Type | Description |
|---|---|
| String | string representation |