8 ms·
Additionally, there's no OpenAPI spec, so you have to generate one from their protobuf specs if you want to use that to generate a client model. Their protobuf
by lemming 1y ago
Additionally, there's no OpenAPI spec, so you have to generate one from their protobuf specs if you want to use that to generate a client model. Their protobuf specs live in a repo at https://github.com/googleapis/googleapis/tree/master/google/ai/generativelanguage https://github.com/googleapis/googleapis/tree/master/google/.... Now you might think that v1 would be the latest there, but you would be wrong - everyone uses v1beta (not v1, not v1alpha, not v1beta3) for reasons that are completely unclear. Additionally, this repo is frequently not up to date with the actual API (it took them ages to get the new thinking config added, for example, and their usage fields were out of date for the longest time). It's really frustrating.
- ezekiel68 1y agoEh, you know. "Move fast and break things."
- caturopath 1y agoI'm not sure "move fast" describes the situation.
- ezekiel68 1y agoHmm, the proliferation of branches, including some which seem perhaps more recent than "v1beta" made me imagine this could apply.
- chrisheecho 1y agolemming, this is super helpful, thank you. We provide the genai SDK (https://github.com/googleapis/python-genai https://github.com/googleapis/python-genai) to reduce the learning curve in 4 languages (GA: Python, Go Preview: Node.JS, Java). The SDK works for all Gemini APIs provided by Google AI Studio (https://ai.google.dev/ https://ai.google.dev/) and Vertex AI.
- egamirorrim 1y agoThe way dependency resolution works in Java with the special, Google only, giant dynamic BOM resolver is hell on earth. We have to write code that round robins every region on retries to get past how overloaded/poorly managed vertex is (we're not hitting our quotas) and yes that's even with retry settings on the SDK. Read timeouts aren't configurable on the Vertex SDK.