generate_text
Generate coherent and contextually relevant text responses by providing a prompt. Adjust parameters like temperature, max tokens, and top-K to control output creativity and length.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
maxOutputTokens | No | ||
prompt | Yes | ||
stream | No | ||
temperature | No | ||
topK | No | ||
topP | No |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"maxOutputTokens": {
"maximum": 8192,
"minimum": 1,
"type": "number"
},
"prompt": {
"minLength": 1,
"type": "string"
},
"stream": {
"type": "boolean"
},
"temperature": {
"maximum": 1,
"minimum": 0,
"type": "number"
},
"topK": {
"maximum": 40,
"minimum": 1,
"type": "number"
},
"topP": {
"maximum": 1,
"minimum": 0,
"type": "number"
}
},
"required": [
"prompt"
],
"type": "object"
}