-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Citations to Chat with file #246
Conversation
@thivy The main branch is working fine |
We added the latest OpenAI JS SDK which requires OPENAI_API_KEY environment variable name. Will update the documentation |
that's clear thanks @thivy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed:
- Update version check logic so that newer versions don't show as out of date
- Group repeating filenames in the citation
Citations to Chat with file
Citations to Chat with file
Citations to Chat with file
This pull request includes a variety of changes to improve the functionality and usability of the codebase. The most important changes include adding a new sheet component to display content in a modal-like interface, adding error handling to the chat menu, improving the code quality and readability of several components, and updating import paths for various components.
Main interface changes:
src/components/ui/sheet.tsx
: Added a new sheet component to display content in a modal-like interface.Chat menu improvements:
src/features/chat/chat-menu/menu-items.tsx
: Added error handling to the chat menu and displays error messages using theuseGlobalMessageContext
hook. Changed thekey
prop of theMenuItem
component to use the index of the mapped array instead of the thread id. (Fa924a70)Code quality improvements:
src/components/ui/label.tsx
: Improved code quality and fixed export issue inLabel
component. [1] [2]src/components/ui/toaster.tsx
: Minor changes to improve the code quality and readability ofsrc/components/ui/toaster.tsx
. [1] [2] [3]Documentation improvements:
src/app/change-log/page.tsx
: ReplacedReactMarkdown
component with a customMarkdown
component and updated the file name and location forupdate.md
. [1] [2]src/app/change-log/update.md
: Added a new section for citations in the chat with file feature.docs/1-introduction.md
: Removed theLangChain JS
line from the introduction documentation.Styling improvements:
src/app/layout.tsx
: Added support for light theme by adding thelight
class to thehtml
element insrc/app/layout.tsx
.src/components/chat/chat-row.tsx
: Replaced theMemoizedReactMarkdown
component with theMarkdown
component and added theprose
class for styling insrc/components/chat/chat-row.tsx
. [1] [2]Component import updates:
src/app/chat/layout.tsx
: Updated import path forMainMenu
component insrc/app/chat/layout.tsx
.src/app/unauthorized/layout.tsx
: Updated import path and removed whitespace insrc/app/unauthorized/layout.tsx
. [1] [2]4R14)src/app/change-log/layout.tsx
: Updated import path forMainMenu
component insrc/app/change-log/layout.tsx
.src/app/reporting/layout.tsx
: Updated import statement forMainMenu
insrc/app/reporting/layout.tsx
.src/features/chat/chat-menu/chat-menu-container.tsx
: Updated import statement foruseMenuContext
inchat-menu-container.tsx
.src/components/chat/memoized-react-markdown.tsx
: Replaced theMemoizedReactMarkdown
component with theMarkdown
component.src/components/chat/markdown.tsx
: AddedMarkdown
component with dependencies and props.