Middleware support #98
thisisaneeq
started this conversation in
General
Replies: 1 comment 1 reply
-
|
What exactly would you want to transform and when? Would like to add this, but make it right and flexible for all use-cases |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Would love to see a middleware or plugin system that allows intercepting and transforming the chat flow.
So I'm building a memory integration package for Tanstack AI (already have for Vercel AI SDK using
wrapLanguageModel). The goal is to:Without middleware, developers would need to manually orchestrate multiple steps but with middleware support, it could be as simple as:
This would enable building integrations for cross-cutting concerns like memory injection, logging, caching, rate limiting, etc.
Beta Was this translation helpful? Give feedback.
All reactions