TunedModel
Fine-tuned model
Operations
- Delete
- GenerateContent
- GetBaseModel
- GetCreateTime
- GetDisplayName
- GetName
- GetState
- GetTemperature
- GetTopK
- GetTopP
- GetUpdateTime
- List
- ToString
Delete
Delete existing tuned model
method : public : Delete() ~ Bool
Return
Type | Description |
---|---|
Bool | true if successful, false otherwise |
GenerateContent
Generates a response from the model given an input
method : public : GenerateContent(content:Content, funcs:Map<String,Pair<FunctionType,Func2Ref<JsonElement,JsonElement>>>) ~ Vector<Candidate>
Parameters
Name | Type | Description |
---|---|---|
content | Content | content for the model |
funcs | Map<String,Pair<FunctionType,Func2Ref<JsonElement,JsonElement>>> | map of function callbacks, name must to map to function callback name |
GenerateContent
Generates a response from the model given an input
method : public : GenerateContent(content:Content, funcs:Map<String,Pair<FunctionType,Func2Ref<JsonElement,JsonElement>>>) ~ Vector<Candidate>
Parameters
Name | Type | Description |
---|---|---|
content | Content | model content |
funcs | Map<String,Pair<FunctionType,Func2Ref<JsonElement,JsonElement>>> | map of function callbacks, name must to map to function callback name |
GenerateContent
Generates a response from the model given an input
method : public : GenerateContent(contents:Vector<Content>, funcs:Map<String,Pair<FunctionType,Func2Ref<JsonElement,JsonElement>>>) ~ Vector<Candidate>
Parameters
Name | Type | Description |
---|---|---|
contents | Vector<Content> | list of content for the model |
funcs | Map<String,Pair<FunctionType,Func2Ref<JsonElement,JsonElement>>> | map of function callbacks, name must to map to function callback name |
GetBaseModel
Get base model
method : public : GetBaseModel() ~ String
Return
Type | Description |
---|---|
String | base model |
GetCreateTime
Get creation time
method : public : GetCreateTime() ~ System.Time.Date
Return
Type | Description |
---|---|
System.Time.Date | creation time |
GetDisplayName
Get display name
method : public : GetDisplayName() ~ String
Return
Type | Description |
---|---|
String | display name |
GetTemperature
Get temperature
method : public : GetTemperature() ~ Float
Return
Type | Description |
---|---|
Float | temperature |
GetUpdateTime
Get update time
method : public : GetUpdateTime() ~ System.Time.Date
Return
Type | Description |
---|---|
System.Time.Date | update time |
List
Lists available models
function : List(key:String) ~ Vector<TunedModel>
Parameters
Name | Type | Description |
---|---|---|
key | String | API key |
Return
Type | Description |
---|---|
Vector<TunedModel> | available models |
ToString
String representation of the instance
method : public : ToString() ~ String
Return
Type | Description |
---|---|
String | string representation of the instance |