I recently was made aware of the new ENUM support in Gemini, Generate structured output with the Gemini API | Google AI for Developers, and this is rather cool, but, it revealed an issue with the docs. In the URL I just shared, you will note it has ‘lang=python’ in the query string. If you visit that URL without that, it should default to what you used before I believe. For me, it was Node.js. When I visit the page and have Node selected, the entire ENUM section of the doc goes away.
Now my guess is that the Node SDK simply doesn’t support this, but as there is a REST API, hiding this feature feels like a big mistake. Heck, I may even be fine with using Python, but as a reader, I’ve got no idea this feature even exists.
I’d strongly urge yall to have a consistent set of items in the docs, and simply flag it when it isn’t available in the currently selected language.
Please consider this.