Open nicoalbanese opened 2 months ago
+1, need this as well.
I coded it myself in the meanwhile tho.
+1
+1
+1
+!
@lgrammel Any plan to implement this? I think it would be great to integrate it into the AI SDK.
@namanyayg keen to know what you did
@wong2 unsure when/how we are going to add this. the ideal solution imo requires a proxy layer bc you wan to monitor ai provider uptime across many requests in a potentially distributed system and switch more intelligently. the solution I would suggest in the interim is to use a custom middleware.
Feature Description
It would be helpful to be able to define "fallback" models / providers when building AI applications.
ie. if primary provider (x) errors out, revert to provider (y).
Use Case
No response
Additional context
No response