From 1f44b06c4fee28063caf87a5ecf3fbf4442bde5e Mon Sep 17 00:00:00 2001 From: Salmen Hichri Date: Mon, 8 Jul 2024 14:49:15 +0100 Subject: [PATCH] Updated example and docs preview --- .../pages/(sections)/previews/previews.tsx | 2 +- .../chat-with-your-assistants/app/page.tsx | 29 +++++++++++++++---- .../chat-with-your-assistants/package.json | 5 ++-- 3 files changed, 26 insertions(+), 10 deletions(-) diff --git a/docs/src/pages/(sections)/previews/previews.tsx b/docs/src/pages/(sections)/previews/previews.tsx index db195c57..45f922a4 100644 --- a/docs/src/pages/(sections)/previews/previews.tsx +++ b/docs/src/pages/(sections)/previews/previews.tsx @@ -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}`} > ) }, diff --git a/examples/next-js-demos/chat-with-your-assistants/app/page.tsx b/examples/next-js-demos/chat-with-your-assistants/app/page.tsx index 9eabbc28..67396e42 100644 --- a/examples/next-js-demos/chat-with-your-assistants/app/page.tsx +++ b/examples/next-js-demos/chat-with-your-assistants/app/page.tsx @@ -162,7 +162,7 @@ function App() {
-
+
@@ -328,15 +328,32 @@ function App() { Chat with your assistants

- This demo uses{" "} + This demo uses{' '} NLUX - , a conversational AI library + , the conversational AI library. +
+
+ Source code available on the{' '} + + NLUX GitHub repo + . +
+ Contributor{' '} + github.com/FranciscoMoretti.

)} diff --git a/examples/next-js-demos/chat-with-your-assistants/package.json b/examples/next-js-demos/chat-with-your-assistants/package.json index e67c73d7..4e167e6a 100644 --- a/examples/next-js-demos/chat-with-your-assistants/package.json +++ b/examples/next-js-demos/chat-with-your-assistants/package.json @@ -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",