Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1s #3373

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

v1s #3373

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 14 additions & 12 deletions web/src/app/chat/ChatPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2361,7 +2361,8 @@ export function ChatPage({
id={`message-${message.messageId}`}
key={messageReactComponentKey}
>
<HumanMessage
<AIMessage humanText={message.message} />
{/* <HumanMessage
stopGenerating={stopGenerating}
content={message.message}
files={message.files}
Expand Down Expand Up @@ -2406,7 +2407,7 @@ export function ChatPage({
// and so it sticks around on page reload
setMessageAsLatest(messageId);
}}
/>
/> */}
</div>
);
} else if (message.type === "assistant") {
Expand Down Expand Up @@ -2446,7 +2447,8 @@ export function ChatPage({
: null
}
>
<AIMessage
{/* <AIMessage
humanText={message.message}
setPresentingDocument={
setPresentingDocument
}
Expand Down Expand Up @@ -2614,13 +2616,13 @@ export function ChatPage({
)
: !retrievalEnabled
}
/>
/> */}
</div>
);
} else {
return (
<div key={messageReactComponentKey}>
<AIMessage
{/* <AIMessage
currentPersona={liveAssistant}
messageId={message.messageId}
content={
Expand All @@ -2640,13 +2642,13 @@ export function ChatPage({
)}
</p>
}
/>
/> */}
</div>
);
}
})}

{(currentSessionChatState == "loading" ||
{/* {(currentSessionChatState == "loading" ||
(loadingError &&
!currentSessionRegenerationState?.regenerating &&
messageHistory[messageHistory.length - 1]
Expand All @@ -2656,13 +2658,13 @@ export function ChatPage({
messageId={-1}
content={submittedMessage}
/>
)}
)} */}

{currentSessionChatState == "loading" && (
<div
key={`${messageHistory.length}-${chatSessionIdRef.current}`}
>
<AIMessage
{/* <AIMessage
key={-3}
currentPersona={liveAssistant}
alternativeAssistant={
Expand All @@ -2680,21 +2682,21 @@ export function ChatPage({
</span>
</div>
}
/>
/> */}
</div>
)}

{loadingError && (
<div key={-1}>
<AIMessage
{/* <AIMessage
currentPersona={liveAssistant}
messageId={-1}
content={
<p className="text-red-700 text-sm my-auto">
{loadingError}
</p>
}
/>
/> */}
</div>
)}
{messageHistory.length > 0 && (
Expand Down
Loading
Loading