completion
Generate text by sending a model and prompt to LiteLLM's legacy endpoint, with options for streaming, token limits, and temperature.
Instructions
Generate text completions (legacy endpoint) using LiteLLM.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | The model to use | |
| prompt | Yes | The prompt to generate completions for | |
| stream | No | Whether to stream the response | |
| max_tokens | No | Maximum tokens to generate | |
| temperature | No | Sampling temperature (0-2) |