-
Notifications
You must be signed in to change notification settings - Fork 12
feat: make save and save as work with knowledge #370
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
Conversation
| } | ||
| > | ||
| {knowledgeFiles.map((f) => ( | ||
| <DropdownSection |
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.
Most of this is getting the counts displayed correctly and adding the "show all" functionality when there is more than 10 files.
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.
I don't know if we should add max height and make it scrollable. Show like 100 files will still be too long if user clicked show all,
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.
Not sure what you are suggesting here. The max height and scroll works for lots of files.
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.
I am suggesting adding a max height and make it scrollable. Show all will still mess up with dropdown if there are a lot of files.
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.
Oh, cool. That is already here. So we're good!
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.
components/chat/useChatSocket.tsx
Outdated
| ); | ||
|
|
||
| const handleToolAdjusted = (tools: string[]) => { | ||
| const handleToolChange = ( |
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.
I will probably make this an async function. .then syntax is too hard to use and read.
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.
Done.
| const [assistantExpanded, setAssistantExpanded] = useState(false); | ||
| const [threadExpanded, setThreadExpanded] = useState(false); | ||
|
|
||
| function refreshKnowledgeFiles(isOpen: boolean) { |
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.
Same here..make whole async if possible
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.
Done.
| } | ||
| > | ||
| {knowledgeFiles.map((f) => ( | ||
| <DropdownSection |
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.
I don't know if we should add max height and make it scrollable. Show like 100 files will still be too long if user clicked show all,
Signed-off-by: Donnie Adams <donnie@acorn.io>



No description provided.