Skip to content

prioritize featured tools in search results #15

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

Merged
merged 2 commits into from
Aug 16, 2024

Conversation

g-linville
Copy link
Member

@@ -0,0 +1,41 @@
export const FeaturedTools: Record<string, any> = {
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm following a pattern that we use in Go a lot to maintain a set of strings (basically a map[string]any). Let me know if there is a better way to do this in Node.

Choose a reason for hiding this comment

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

Typescript has a Set datastructure: let mySet = new Set<Type>();

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated

Copy link

@thedadams thedadams left a comment

Choose a reason for hiding this comment

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

I think using a Set would be cool, but, other than that, this looks good.

Signed-off-by: Grant Linville <[email protected]>
@g-linville g-linville requested a review from thedadams August 15, 2024 23:04
@g-linville g-linville merged commit f088803 into gptscript-ai:main Aug 16, 2024
@g-linville g-linville deleted the featured-tools branch August 16, 2024 15:32
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