- {
- assistant && assistant.theme && assistant.theme.conversationStarters ?
- assistant.theme.conversationStarters.map(
- (conversationStarter) => {
- return (
-
+ {assistant && assistant.theme && assistant.theme.conversationStarters ? (
+ assistant.theme.conversationStarters.map((conversationStarter) => {
+ return (
+
+ );
+ })
+ ) : (
+ <>>
+ )}
);
-}
\ No newline at end of file
+}
diff --git a/src/app/assistants/[id]/chat/ChatHeader.tsx b/src/app/assistants/[id]/chat/ChatHeader.tsx
index 82447c2..958d61d 100644
--- a/src/app/assistants/[id]/chat/ChatHeader.tsx
+++ b/src/app/assistants/[id]/chat/ChatHeader.tsx
@@ -28,7 +28,9 @@ export default function ChatHeader(props: ChatHeaderProps) {
>
-
{assistant.name}
+
+ {assistant.name}
+
{!props.minimize && props.setMinimize ? (
@@ -54,7 +56,8 @@ export default function ChatHeader(props: ChatHeaderProps) {
{assistant.description}
diff --git a/src/app/assistants/[id]/chat/ChatPage.tsx b/src/app/assistants/[id]/chat/ChatPage.tsx
index 3c43b42..35ebb5e 100644
--- a/src/app/assistants/[id]/chat/ChatPage.tsx
+++ b/src/app/assistants/[id]/chat/ChatPage.tsx
@@ -33,7 +33,7 @@ export default function ChatPage(props: ChatPageProps) {
messages,
sendMessage,
createNewThread,
- sendConversationStarter
+ sendConversationStarter,
} = useChatContext();
useEffect(() => {
@@ -67,9 +67,9 @@ export default function ChatPage(props: ChatPageProps) {
{messages.map((message: Message, index) => {
return ;
})}
- {
- messages.length === 1 ? : null
- }
+ {messages.length === 1 ? (
+
+ ) : null}
{streamText ? (
<>
{
@@ -80,9 +80,11 @@ export default function ChatPopup(props: ChatPopupProps) {
{messages.map((message: Message, index) => {
return ;
})}
- {
- messages.length === 1 ? : null
- }
+ {messages.length === 1 ? (
+
+ ) : null}
{streamText ? (
<>
{
setMessageStatus('in_progress' as string);
};
- const sendConversationStarter = async (prompt:string) => {
+ const sendConversationStarter = async (prompt: string) => {
let message: Message = {
created_at: Date.now() / 1000,
role: 'user',
@@ -234,6 +234,6 @@ export const useChatContext = () => {
setFingerprint,
sendMessage,
createNewThread,
- sendConversationStarter
+ sendConversationStarter,
};
};
diff --git a/src/app/assistants/[id]/settings/page.tsx b/src/app/assistants/[id]/settings/page.tsx
index d62072c..8831f9b 100644
--- a/src/app/assistants/[id]/settings/page.tsx
+++ b/src/app/assistants/[id]/settings/page.tsx
@@ -22,7 +22,9 @@ export default function Settings() {
);
const [authenticationRequired, setAuthenticationRequired] = useState(
- assistant.authenticatedUsersOnly !== undefined ? assistant.authenticatedUsersOnly : true
+ assistant.authenticatedUsersOnly !== undefined
+ ? assistant.authenticatedUsersOnly
+ : true
);
const { push } = useRouter();