Skip to content

Add JS/TypeScript cookbooks for Google Gemini tracing (basic + multimodal) #2822

@JK-Amanda-Goo

Description

@JK-Amanda-Goo

Hi Langfuse team! I'm a developer who built a Next.js fashion moodboard app using Google Gemini + Langfuse for agents actions tracing (photo analysis - product search - discover more). While building it I noticed there are no JavaScript cookbooks for native Google Gemini integration.

I'd like to contribute two cookbooks:

  1. js_integration_google_gemini.ipynb — basic Gemini tracing in JS, including the flushAsync() pattern for serverless/Next.js and correct model name for cost tracking

  2. js_integration_google_gemini_multimodal.ipynb — tracing image-based Gemini calls (multimodal), showing how to capture image token costs and render images in the Langfuse UI

Both examples come from my working app. Happy to follow any format guidelines you have for the JS cookbooks. Let me know if this is welcome!

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions