Closed Bikatr7 closed 1 month ago
Hi, you're early!
We added SDK support for this feature thinking it was going to fully launch at I/O, but it's still a few days out, so we just withheld the documentation for it. Nice job finding it and figuring it out at all. What you have there should work, without the system instructions, soon. Maybe Monday?
Hi, you're early!
We added SDK support for this feature thinking it was going to fully launch at I/O, but it's still a few days out, so we just withheld the documentation for it. Nice job finding it and figuring it out at all. What you have there should work, without the system instructions, soon. Maybe Monday?
Alright, thanks for letting me know. Guess I was a bit too excited to utilize it.
Description of the bug:
response_schema parameter is not followed unless system_instruction also details the response_schema for gemini-1.5-pro family of models.
This could be intended behavior, but it seems like it could be a massive waste of tokens for more complicated schemas.
Actual vs expected behavior:
I'd expect the response_schema to be respected and followed regardless of system_instructions detailing them. If this is an incorrect assumption please let me know.
Any other information you'd like to share?
code to reproduce