Skip to content

Commit

Permalink
Updated example and docs preview
Browse files Browse the repository at this point in the history
  • Loading branch information
salmenus committed Jul 8, 2024
1 parent 60372f5 commit 1f44b06
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/src/pages/(sections)/previews/previews.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const getCategories = (colorScheme) => ([
maxWidth: '100%',
height: 520,
}}
src={`https://nlux-shadcn-chatgpt-ui.vercel.app/?colorScheme=${colorScheme}`}
src={`https://chat-with-your-assistants.vercel.app/?colorScheme=${colorScheme}`}
></iframe>
)
},
Expand Down
29 changes: 23 additions & 6 deletions examples/next-js-demos/chat-with-your-assistants/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ function App() {
<div className="grid min-h-screen w-full md:grid-cols-[300px_1fr]">
<div className="border-r bg-muted/40">
<div className="flex h-full max-h-screen flex-col">
<div className="flex h-16 gap-4 bg-muted justify-between items-center border-b px-4 lg:h-[60px] lg:px-6">
<div className="flex h-16 bg-muted items-center border-b px-4 lg:h-[60px] lg:px-6">
<Sheet>
<SheetTrigger>
<SimpleAvatar avatar={userImgUrl} name={userName || ""} />
Expand Down Expand Up @@ -328,15 +328,32 @@ function App() {
Chat with your assistants
</h3>
<p className="text-lg font-normal text-muted-foreground">
This demo uses{" "}
This demo uses{' '}
<a
href="https://github.com/nlkitai/nlux"
target="_blank"
className="underline text-foreground"
href="https://docs.nlkit.com/nlux"
target="_blank"
className="underline text-foreground"
>
<span>NLUX</span>
</a>
, a conversational AI library
, the conversational AI library.
<br/>
<br/>
Source code available on the{' '}
<a
href="https://github.com/nlkitai/nlux/tree/latest/examples/next-js-demos/chat-with-your-assistants"
target="_blank"
className="underline text-foreground"
>
<span className="font-bold">NLUX GitHub repo</span>
</a>.
<br/>
Contributor{' '}
<a
href="https://github.com/FranciscoMoretti"
target="_blank"
className="underline text-foreground"
>github.com/FranciscoMoretti</a>.
</p>
</div>
)}
Expand Down
5 changes: 2 additions & 3 deletions examples/next-js-demos/chat-with-your-assistants/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@
"@ai-sdk/openai": "^0.0.32",
"@ai-sdk/react": "^0.0.4",
"@hookform/resolvers": "^3.6.0",
"@nlux/react": "^2",
"@nlux/langchain-react": "^2",
"@nlux/openai-react": "^2",
"@nlux/react": "^2.7.6",
"@nlux/themes": "^2.7.6",
"@nlux/themes": "^2",
"@radix-ui/react-avatar": "^1",
"@radix-ui/react-dialog": "^1.1.1",
"@radix-ui/react-dropdown-menu": "^2",
Expand Down

0 comments on commit 1f44b06

Please sign in to comment.