Skip to main content

text

Creates, updates, deletes, gets or lists a text resource.

Overview

Nametext
TypeResource
Idgemini.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:

NameAccessible byRequired ParamsOptional ParamsDescription
generate_textexectunedModelsIdGenerates 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.

NameDatatypeDescription
tunedModelsIdstring

Lifecycle Methods

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 }}"
}'
;