Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's the level of coding I expect from a bunch of Python-only ML computer scientists, but still... wow.

On the upside, they seem to have fixed it: https://blog.google/innovation-and-ai/technology/developers-...





Fixed some of the things, indeed. But don't let this blog post fool you. When using discriminated unions, Pydantic exports JSON schema with `oneOf` while the google-genai expects `anyOf` so that does not work out of the box. Also it still does not support basic stuff like when you have this in you Pydantic model: `foo: Literal[1, 3, 5]`

It's still far from what I'd expect should be supported.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: