Skip to content

Commit

Permalink
Merge pull request #30 from OpenAssistantGPT/feat/create-website
Browse files Browse the repository at this point in the history
feat: update links
  • Loading branch information
marcolivierbouch authored Jul 23, 2024
2 parents 82e86e6 + b26e42d commit bb8ff04
Show file tree
Hide file tree
Showing 8 changed files with 257 additions and 940 deletions.
5 changes: 5 additions & 0 deletions .changeset/yellow-pens-return.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@openassistantgpt/ui': patch
---

The tooltip component is now wrapped in the chat component, it is not exported anymore
18 changes: 6 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,7 @@ Once the UI package is installed create the `page.tsx` file and configure your c
```js
'use client';

import {
OpenAssistantGPTChat,
TooltipProvider,
ChatbotConfig,
} from '@openassistantgpt/ui';
import { OpenAssistantGPTChat, ChatbotConfig } from '@openassistantgpt/ui';

export default function ChatPage() {
const chatbot: ChatbotConfig = {
Expand Down Expand Up @@ -109,13 +105,11 @@ export default function ChatPage() {
};

return (
<TooltipProvider>
<OpenAssistantGPTChat
chatbot={chatbot}
path="/api/chat/assistant"
defaultMessage=""
/>
</TooltipProvider>
<OpenAssistantGPTChat
chatbot={chatbot}
path="/api/chat/assistant"
defaultMessage=""
/>
);
}
```
Expand Down
18 changes: 6 additions & 12 deletions examples/next-website/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
'use client';

import {
OpenAssistantGPTChat,
TooltipProvider,
ChatbotConfig,
} from '@openassistantgpt/ui';
import { OpenAssistantGPTChat, ChatbotConfig } from '@openassistantgpt/ui';

export default function ChatPage() {
const chatbot: ChatbotConfig = {
Expand Down Expand Up @@ -43,12 +39,10 @@ export default function ChatPage() {
};

return (
<TooltipProvider>
<OpenAssistantGPTChat
chatbot={chatbot}
path="/api/chat/assistant"
defaultMessage=""
/>
</TooltipProvider>
<OpenAssistantGPTChat
chatbot={chatbot}
path="/api/chat/assistant"
defaultMessage=""
/>
);
}
6 changes: 3 additions & 3 deletions examples/next-website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"lint": "next lint"
},
"dependencies": {
"@openassistantgpt/assistant": "0.0.2",
"@openassistantgpt/react": "0.0.2",
"@openassistantgpt/ui": "0.0.2",
"@openassistantgpt/assistant": "latest",
"@openassistantgpt/react": "latest",
"@openassistantgpt/ui": "latest",
"ai": "3.2.32",
"buffer": "^6.0.3",
"next": "14.2.5",
Expand Down
Loading

0 comments on commit bb8ff04

Please sign in to comment.