You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know exactly when that changed, but passing presence_penalty and frequency_penalty parameters to gemini models (e.g. gemini/gemini-1.5-flash-latest) in completion() used to work, now it leads to a BadRequestError like:
What happened?
I don't know exactly when that changed, but passing
presence_penalty
andfrequency_penalty
parameters to gemini models (e.g.gemini/gemini-1.5-flash-latest
) incompletion()
used to work, now it leads to a BadRequestError like:While the parameters are still listed in the Vertex AI docs, they are not listed anymore in the Gemini/GenerativeAI docs.
Expected behavior would be to either map the parameters to an equivalent or avoid the error when
drop_params
isTrue
.Not passing the parameters solves the problem.
Relevant log output
No response
Twitter / LinkedIn details
No response
The text was updated successfully, but these errors were encountered: