gemma: Generate text from text with Gemma
Description
Generate text from text with Gemma with Gemini API
Usage
gemma(prompt, model = "gemma-3-1b-it", api_key = NULL, timeout = 60)
Arguments
- prompt
The prompt to generate text from
- model
The model to use. Default is 'gemma-3-1b-it'.
see https://ai.google.dev/gemma/docs/get_started#models-list
- api_key
Your API key. If NULL, uses GEMINI_API_KEY environment variable.
- timeout
Request timeout in seconds. Default is 60.
Examples
Run this codeif (FALSE) {
gemma("Roses are red...")
}
Run the code above in your browser using DataLab