powered by
Generate text from text with Gemini Vertex API
gemini.vertex(prompt = NULL, tokens = NULL)
#' A character string containing the generated text.
A character string containing the prompt for the Gemini model.
A list containing the API URL and key from token.vertex() function.
https://ai.google.dev/docs/gemini_api_overview#text_input
if (FALSE) { # token should be created before this. using the token.vertex() function prompt <- "What is sachins Jersey number?" gemini.vertex(prompt, tokens) }
Run the code above in your browser using DataLab