Generates a response for the provided prompt.
Uses the /api/generate endpoint to generate a response without maintaining conversation history. This is useful for simple prompt- response scenarios.
| model |
The model name to use for generation |
| prompt |
The text prompt to generate a response for |
| system |
Optional system prompt |
| options |
Optional Call.Options for the generate request |
| cancellable |
Optional cancellable for cancelling the request |
|
Response.Generate object with the generated response and metadata |
1.0