weave icon indicating copy to clipboard operation
weave copied to clipboard

Add support for Gemini API

Open masterbatcoderman10 opened this issue 1 year ago • 3 comments

I'm creating this issue to request support on the Gemini API, currently, tracked calls for the Gemini API do not show any information on the token/cost breakdown, therefore, please enable support as you have for Mistral, and Anthropic.

masterbatcoderman10 avatar Jul 03 '24 10:07 masterbatcoderman10

Hi, I am one of the developers for weave, we can add cost support for gemini apis. Could you send the link to the project your are working in so I can ensure that the eventual fix works for your project? I will ticket and add to backlog.

jwlee64 avatar Jul 03 '24 16:07 jwlee64

I am grateful for your commitment and your support, here is the link to my project.

https://wandb.ai/lighthouseai/QA-monitoring/weave/traces

Thanks

On Wed, Jul 3, 2024 at 8:11 PM Josiah Lee @.***> wrote:

Hi, I am one of the developer for weave, I can add cost support for gemini apis. Could you send the link to the project your are working in so I can ensure that my fix works for your project?

— Reply to this email directly, view it on GitHub https://github.com/wandb/weave/issues/1879#issuecomment-2206722645, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKJXGPKZ7PO25EU7RRU7KWTZKQPCVAVCNFSM6AAAAABKJJE5OCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBWG4ZDENRUGU . You are receiving this because you authored the thread.Message ID: @.***>

masterbatcoderman10 avatar Jul 03 '24 17:07 masterbatcoderman10

@masterbatcoderman10 just to let you know that @soumik12345 is working on a PR at the moment to add support for Google AI Studio

https://github.com/wandb/weave/pull/2078

morganmcg1 avatar Aug 14 '24 19:08 morganmcg1

The integration is merged now; I think token usage should be there: https://github.com/wandb/weave/pull/2399

tcapelle avatar Oct 18 '24 10:10 tcapelle

Thanks for the notification.

On Fri, 18 Oct 2024 at 2:13 PM Thomas Capelle @.***> wrote:

The integration is merged now; I think token usage should be there: #2399 https://github.com/wandb/weave/pull/2399

— Reply to this email directly, view it on GitHub https://github.com/wandb/weave/issues/1879#issuecomment-2422083322, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKJXGPMXTQQSN7UFLDAJ26LZ4DNMHAVCNFSM6AAAAABKJJE5OCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRSGA4DGMZSGI . You are receiving this because you were mentioned.Message ID: @.***>

masterbatcoderman10 avatar Oct 18 '24 11:10 masterbatcoderman10

@tcapelle this is still not working if using the vertexai library, which is the preferred method if accessing Gemini via GCP. Any chance it can be implemented?

ramon-prieto avatar Nov 29 '24 00:11 ramon-prieto

@ramon-prieto Thanks for raising the issue with the vertexai integration. I have raised a PR https://github.com/wandb/weave/pull/3110 to fix it.

soumik12345 avatar Nov 29 '24 05:11 soumik12345