Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Gemini breaks when passing presence_penalty or frequency_penalty parameters #4333

Closed
toniengelhardt opened this issue Jun 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@toniengelhardt
Copy link
Contributor

toniengelhardt commented Jun 21, 2024

What happened?

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:

Screenshot 2024-06-21 at 13 06 53

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 is True.

Not passing the parameters solves the problem.

Relevant log output

No response

Twitter / LinkedIn details

No response

@toniengelhardt toniengelhardt added the bug Something isn't working label Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant