LocalRuntime or ExternalStoreRuntime when using AI SDK with External Data Store (Postgres) #2366
Unanswered
bestickley
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, should I use
LocalRuntime
orExternalStoreRuntime
when using AI SDK with External Data Store (Postgres)?The Runtime Layer docs state:
But the Picking a Runtime docs state that:
@Yonom, would appreciate your insight here as I'm guessing docs may be out of date.
It appears to me that
import { useChatRuntime } from "@assistant-ui/react-ai-sdk"
does a lot of the heavy lifting of integrating backend that uses AI SDK that I would have to do myself if I were usinguseExternalStoreRuntime
. BUT, I've heard of other devs having a difficult time using theLocalRuntime
(used under the hood by useChatRuntime) with their backend that persists messages. See #2349Beta Was this translation helpful? Give feedback.
All reactions