text
Creates, updates, deletes, gets or lists a text resource.
Overview
| Name | text |
| Type | Resource |
| Id | gemini.tuned_models.text |
Fields
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
generate_text | exec | tunedModelsId | Generates a response from the model given an input message. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
tunedModelsId | string |
Lifecycle Methods
- generate_text
Generates a response from the model given an input message.
EXEC gemini.tuned_models.text.generate_text
@tunedModelsId='{{ tunedModelsId }}' --required
@@json=
'{
"topK": {{ topK }},
"maxOutputTokens": {{ maxOutputTokens }},
"safetySettings": "{{ safetySettings }}",
"candidateCount": {{ candidateCount }},
"temperature": {{ temperature }},
"topP": {{ topP }},
"stopSequences": "{{ stopSequences }}",
"prompt": "{{ prompt }}"
}'
;