google / generative-ai-go

Go SDK for Google Generative AI
Apache License 2.0
487 stars 47 forks source link

Support for context caching #140

Closed aguynamedben closed 1 week ago

aguynamedben commented 2 weeks ago

Description of the feature request:

I'm excited to use the new Gemini context caching feature from Golang. Is this planned to be added to this SDK? It look like it was added to the Python and JS SDKs only a few days ago, so I'm curious if/when it will be added to this project.

Also, I'm curious why this project is in the google organization and the others are in the google-gemini organization? Is this a quasi-supported SDK? Either way, thanks for making it public ❤️

What problem are you trying to solve with this feature?

I want to use Golang to read in parallel a batch of 100-200 files, upload them to the Gemini Context Cache, then use generative AI on top of them.

Any other information you'd like to share?

No response

eliben commented 2 weeks ago

We're planning to add it, stay tuned

eliben commented 2 weeks ago

Please follow #147

jba commented 1 week ago

And #149.

eliben commented 1 week ago

This should be available in the newly released v0.15.0