Skip to content

Commit

Permalink
Merge pull request #204 from isikhi/fix/embed-query-env-management
Browse files Browse the repository at this point in the history
Embedder environment validation & Enhance logging
  • Loading branch information
thomashacker authored Jul 2, 2024
2 parents 6d2d95a + e6acd48 commit 3b664cf
Show file tree
Hide file tree
Showing 9 changed files with 165 additions and 192 deletions.
3 changes: 2 additions & 1 deletion frontend/app/components/Chat/ChatInterface.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,11 @@ const ChatInterfaceComponent: React.FC<ChatInterfaceComponentProps> = ({
});

const data: QueryPayload = await response.json();

if (data) {
if (data.error !== "") {
triggerNotification(data.error, true);
setIsFetching(false);
setFetchingStatus("DONE");
}

setChunks(data.chunks);
Expand Down
299 changes: 122 additions & 177 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3b664cf

Please sign in to comment.