Skip to content
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

Add DuckDuckGo News Search and Video Search #10703

Closed
wants to merge 5 commits into from

Conversation

taowang1993
Copy link
Contributor

@taowang1993 taowang1993 commented Nov 14, 2024

Summary

This PR resolves #10665 (duckduckgo video search)

I also added duckduckgo news search.

Video Search

image

News Search

image

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. 🔨 feat:tools Tools for agent, function call related stuff. labels Nov 14, 2024
@@ -265,7 +265,7 @@ export function Markdown(props: { content: string; className?: string }) {
}
},
]}
disallowedElements={['script', 'iframe', 'head', 'html', 'meta', 'link', 'style', 'body']}
disallowedElements={['script', 'head', 'html', 'meta', 'link', 'style', 'body']}
Copy link
Member

Choose a reason for hiding this comment

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

As I said, I don't think this is a good idea to remove iframe from the markdown for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The duckduckgo-video-search feature still works without removing iframe from markdown.tsx.

If keeping iframe, then users will get a video link or a list of video links.

Should I remove the changes in markdown.tsx?

Or can you just ignore the changes in markdown.tsx?

Copy link
Member

@crazywoola crazywoola Nov 15, 2024

Choose a reason for hiding this comment

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

Yes, please add iframe back, I shall approve this pr. And please fix the lint errors.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added it back. What's lint errors?

@taowang1993 taowang1993 deleted the api-core-tools branch November 16, 2024 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 feat:tools Tools for agent, function call related stuff. size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duckduckgo Video Search
3 participants