diff --git a/apps/mai-sc/src/app/(chat)/chat/page.tsx b/apps/mai-sc/src/app/(chat)/chat/page.tsx index c3bc8cee3..d3ffc1e5f 100644 --- a/apps/mai-sc/src/app/(chat)/chat/page.tsx +++ b/apps/mai-sc/src/app/(chat)/chat/page.tsx @@ -11,9 +11,6 @@ import { AI } from '#/lib/chat/actions'; import { nanoid } from '#/lib/utils'; import { Chat } from '#/ui/chat'; -export const runtime = 'edge'; -export const preferredRegion = 'home'; - export default async function IndexPage() { const id = nanoid(); diff --git a/apps/mai-sc/src/lib/chat/actions.tsx b/apps/mai-sc/src/lib/chat/actions.tsx index 69d2da967..0bc8265ef 100644 --- a/apps/mai-sc/src/lib/chat/actions.tsx +++ b/apps/mai-sc/src/lib/chat/actions.tsx @@ -439,19 +439,17 @@ If the user requests an unsupported action, respond with: "I'm sorry, I'm unable await sleep(1000); - runAsyncFnWithoutBlocking(async () => { - aiState.done({ - ...aiState.get(), - messages: [ - ...aiState.get().messages, - { - id: nanoid(), - role: 'function', - name: 'showFacebookPost', - content: JSON.stringify(facebookPost), - }, - ], - }); + aiState.done({ + ...aiState.get(), + messages: [ + ...aiState.get().messages, + { + id: nanoid(), + role: 'function', + name: 'showFacebookPost', + content: JSON.stringify(facebookPost), + }, + ], }); return (