Skip to content

Commit

Permalink
adjust error message location
Browse files Browse the repository at this point in the history
  • Loading branch information
greywen committed Dec 27, 2024
1 parent 7604efa commit fae47ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/FE/components/ChatMessage/ChatMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ export const ChatMessage: FC<Props> = memo(
providerId={message.modelProviderId!}
/> */}
<div className="prose dark:prose-invert rounded-r-md flex-1 overflow-auto">
<ResponseMessage message={message} />
{message.status === ChatSpanStatus.Failed && (
<ChatError error={message.content.error} />
)}
<ResponseMessage message={message} />
<ResponseMessageActions
readonly={readonly}
models={models}
Expand Down
2 changes: 1 addition & 1 deletion src/FE/pages/home/_components/Home/HomeContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const HomeContent = () => {
promptInitialState,
);

const { chats, stopIds, selectedChat } = chatState;
const { chats, stopIds } = chatState;
const { models } = modelState;
const { showPromptBar } = settingState;
const [isPageLoading, setIsPageLoading] = useState(true);
Expand Down

0 comments on commit fae47ce

Please sign in to comment.