googleapis / googleapis/python-genai
candidate_count parameter not working for gemini-3-pro-preview
Open
priority: p2
type: bug
- Dominant language
- Python
- Stars
- 4k
- Forks
- 1k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 40
Description
I’m getting this error when trying to request multiple candidates::
ClientError: 400 INVALID_ARGUMENT. {'error': {'code': 400, 'message': 'Multiple candidates is not enabled for this model', 'status': 'INVALID_ARGUMENT'}}
Environment details:
- Programming language: Python
- Package version: 1.51.0
Code snippet:
client.models.generate_content(
model='gemini-3-pro-preview',
contents='What is the capital of the moon?',
config={
"candidate_count": 2
},
)
Is this working as intended? And is support for multiple candidates planned for this model?
Contributor guide
Assessment
This issue has not been assessed yet.