The simplest way to generate text—a single function call that returns the response directly.Documentation Index
Fetch the complete documentation index at: https://docs.runanywhere.ai/llms.txt
Use this file to discover all available pages before exploring further.
When to Use
Usechat() when you need:
- Quick, simple responses
- No metrics or metadata
- Minimal code
generate() or generateStream().
Example: Simple Q&A
Example: Chat Bot
chat() uses default generation options. For custom temperature, max tokens, or system prompts,
use generate() instead.