watsonx_generate
Generate text from a prompt using IBM watsonx.ai foundation models like Granite, Llama, and Mistral. Control output with temperature, top-k, top-p, and token limits.
Instructions
Generate text using IBM watsonx.ai foundation models (Granite, Llama, Mistral, etc.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_k | No | Top-k sampling | |
| top_p | No | Top-p nucleus sampling | |
| prompt | Yes | The prompt to send to the model | |
| model_id | No | Model ID (e.g., 'ibm/granite-3-3-8b-instruct', 'meta-llama/llama-3-70b-instruct') | ibm/granite-3-3-8b-instruct |
| temperature | No | Temperature for sampling (0-2) | |
| max_new_tokens | No | Maximum number of tokens to generate |