Skip to content

Conversation

@thedadams
Copy link
Contributor

No description provided.

}
>
{knowledgeFiles.map((f) => (
<DropdownSection
Copy link
Contributor Author

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.

Copy link
Contributor

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,

Copy link
Contributor Author

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.

Copy link
Contributor

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.

Copy link
Contributor Author

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!

Copy link
Contributor Author

@thedadams thedadams Aug 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is an example.

Screenshot 2024-08-30 at 07 43 36 Screenshot 2024-08-30 at 07 43 59

After I took those screenshots, I made the "Show All" text smaller.

Screenshot 2024-08-30 at 07 47 56

);

const handleToolAdjusted = (tools: string[]) => {
const handleToolChange = (
Copy link
Contributor

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.

Copy link
Contributor Author

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) {
Copy link
Contributor

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

Copy link
Contributor Author

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
Copy link
Contributor

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>
@thedadams thedadams merged commit 4021926 into gptscript-ai:main Aug 30, 2024
@thedadams thedadams deleted the save-with-knowledge branch August 30, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants