Skip to content

Commit

Permalink
chore: revert more experiments #283
Browse files Browse the repository at this point in the history
  • Loading branch information
srizvi committed Apr 28, 2024
1 parent 94ce315 commit 0a70807
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
3 changes: 0 additions & 3 deletions apps/mai-sc/src/app/(chat)/chat/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
24 changes: 11 additions & 13 deletions apps/mai-sc/src/lib/chat/actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 0a70807

Please sign in to comment.