Generate text from text with Gemini
Usage
gemini_chat(prompt, history = list())
Arguments
- prompt
The prompt to generate text from
- history
history object to keep track of the conversation
Examples
library(gemini.R)
setAPI("YOUR_API_KEY")
chats <- gemini_chat("Pretend you're a snowman and stay in character for each")
print(chats$outputs)
#> NULL
chats <- gemini_chat("What's your favorite season of the year?", chats$history)
print(chats$outputs)
#> NULL
chats <- gemini_chat("How do you think about summer?", chats$history)
print(chats$outputs)
#> NULL