Michael Bleigh
Michael Bleigh
What's the reasoning behind this instead of your first PR? I can see instances where I'd want to use each - middleware more oriented at specifics of the prompt would...
> The problem is with the playground -- middleware passed into the `generate` function directly is not accessible from the playground. This breaks several CUJs -- from simply being able...
I'm confused...if I supply an output schema that also returns different results than if I don't. What's the scenario where this causes confusion? If I call `generate` in a code...
In my dream scenario, a trace with middleware would have steps that look something like: ```ts generate({ model: gemini15Flash, prompt: "Do cool stuff.", use: [myMiddleware, mySecondMiddleware], }); ``` * generate...
I think at the moment we're kind of at an impasse. I see middleware as being one of the most powerful yet simple-to-consume abstractions in software but I think my...
👍 anything shared across 3+ providers feels like it ought to be a built-in. Let's add it to the standard model config and add implementations in our plugins.
This is supported in both Google AI and Vertex AI now: ```ts ai.generate({ config: {functionCallingConfig: {mode: "ANY"}} }) ``` See [Vertex](https://github.com/firebase/genkit/blob/main/js/plugins/vertexai/src/gemini.ts#L81-L86) and [Google AI](https://github.com/firebase/genkit/blob/main/js/plugins/googleai/src/gemini.ts#L88-L94) implementations.
Thanks for the report! This is a known limitation as there's no way for us to dynamically infer a strong type from a text template, but you're right that we...
Yep a build step is something I've thought about (even played with a bit at one point).
I'm going to say that this is mitigated by `defineSchema`. ```ts const MySchema = ai.defineSchema('MySchema', z.object({...}); ``` ```handlebars --- input: schema: MySchema --- ``` it'd be nice to have something...