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 Dragan's web retriever plugin #3277

Merged
merged 10 commits into from
Jun 4, 2023
Merged

Conversation

andreaskoepf
Copy link
Collaborator

@andreaskoepf andreaskoepf commented Jun 1, 2023

Added web-retriever plugin with minor changes to original code:

  • limit max download size to 4MB (read GET response streaming)
  • add follow_redirects=True
  • modified text-decoding (due to stream loading)
  • add re.MULTILINE to extract_image_links()
  • made paths in ai-plugin.json "dynamic"
  • removed server property from openapi spec

Also added the gale-roaster fun plugin which uses the prompt:

You MUST roast and make fun of this person, he wrote this to you: "{user_input}"
    your roast needs to be in {roasting_style} style.
    Try to be funny and verbose, but super mean at the same time. You can start your responses following these rules:
    1. Let your message be long, and with emojis.
    2. Try to be like Jeff Ross at the roasting.

Co-authored-by: draganjovanovich <[email protected]>
@andreaskoepf
Copy link
Collaborator Author

The http-text scraping is very rudimentary ... but we need to first work on long-context anyway.

@andreaskoepf andreaskoepf merged commit 54b2081 into main Jun 4, 2023
@andreaskoepf andreaskoepf deleted the add_web_retriever_plugin branch June 4, 2023 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants