Closed Gekko0114 closed 1 month ago
However, the raw Gemini API can also be called using JSON
What does this mean? @Gekko0114 can you point to relevant docs here?
I mean that Gemini can be called using GOOGLE_APPLICATION_CREDENTIALS.
os.env["GOOGLE_APPLICATION_CREDENTIALS"] = "./google_credentials.json"
genai.GenerativeModel(
model_name="xxx",
generation_config="yyy",
system_instruction="zzz",
)
response = model.generate_content(messages)
this is already supported @Gekko0114
If you're seeing an issue, can you please share it
Really? Then I will try it
The Feature
When calling the Gemini API using Litellm, it is necessary to pass an API key. However, the raw Gemini API can also be called using JSON. Therefore, I would like to request that Litellm allows calling the Gemini API using JSON as well.
Motivation, pitch
Written in the feature section
Twitter / LinkedIn details
No response