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() ~ BoolReturn
| 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() ~ StringReturn
| Type | Description |
|---|---|
| String | base model |
GetCreateTime
Get creation time
method : public : GetCreateTime() ~ System.Time.DateReturn
| Type | Description |
|---|---|
| Date | creation time |
GetDisplayName
Get display name
method : public : GetDisplayName() ~ StringReturn
| Type | Description |
|---|---|
| String | display name |
GetTemperature
Get temperature
method : public : GetTemperature() ~ FloatReturn
| Type | Description |
|---|---|
| Float | temperature |
GetUpdateTime
Get update time
method : public : GetUpdateTime() ~ System.Time.DateReturn
| Type | Description |
|---|---|
| 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() ~ StringReturn
| Type | Description |
|---|---|
| String | string representation of the instance |