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 zoo extension #16153

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Add zoo extension #16153

wants to merge 9 commits into from

Conversation

ViGeng
Copy link
Contributor

@ViGeng ViGeng commented Jan 4, 2025

Description

Zoo - Interact with AIs with Your Prompt Library with Ease

Zoo allows you to interact with AI models using your own prompt library.
It can perform fast actions using your Github Gist as your prompt library.
🦄 Zoo = XXX Fast Actions + GitHub Gist
You can define an unlimited number of your own fast AI actions, which is missing for most Raycast AI extensions.

Features

  • 😻 GitHub Gist Support - Custom your own prompt library with reliable and favorable GitHub Gist.
  • 🚀 Fast Actions - Perform fast actions with your prompt library on selected text.
  • 🤖 AI Models - Interact with most existing AI models with ease.

Related works/extensions

Zoo is highly inspired by Github Gist and ChatGPT Quick Actions. Zoo combines Github Gist and other AI extensions (such as ChatGPT Quick Actions). Its code base is highly based on the above-mentioned extensions with some refactoring/modifications.

Difference and Novelty (why is this a new extension instead of contributions to existing extensions?)

  • For Github Gist users, it would be confusing if there is one extra command, Ask AI by Gist, since they have totally different use cases/purposes. One is managing snippets, while another is managing and using prompts for AI. Zoo reuses the code from Github Gist rather than following its use case.
  • For AI extensions, the most similar extensions should be XXX Quick Actions. However, they have totally different uses of logic. Zoo essentially only has one action asking AI, different interactions totally based on highly customizable lists (prompt-wise and number-wise) instead of predefined prompts and actions. Zoo provides the feature that is always missing.

Screencast

Raycast-1 Raycast-2 Raycast-3

Checklist

- [add] publish script
- fix lint
- [update] doc
- require endpoint url
- rename command
- [add] prompt filter
- refactor GistList
- [add] selected text
- init commit
@raycastbot
Copy link
Collaborator

raycastbot commented Jan 4, 2025

Congratulations on your new Raycast extension! 🚀

You can expect an initial review within five business days.

Once the PR is approved and merged, the extension will be available on our Store.

@raycastbot raycastbot added the new extension Label for PRs with new extensions label Jan 4, 2025
@pernielsentikaer
Copy link
Collaborator

Could you record a screencast of the flow? I'm not sure how to use it at all

@pernielsentikaer pernielsentikaer self-assigned this Jan 10, 2025
@ViGeng
Copy link
Contributor Author

ViGeng commented Jan 10, 2025

Could you record a screencast of the flow? I'm not sure how to use it at all

iShot_2025-01-10_19.35.44.mp4

The workflow should be like:

  1. create a gist (prompt) as you need
  2. select text and call the zoo ask by prompt command
  3. choose one prompt from the list (you can use navigate bar to filter prompt)
  4. execute the prompt on the selected text; you can copy the result as you want.

Copy link
Collaborator

@pernielsentikaer pernielsentikaer left a comment

Choose a reason for hiding this comment

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

Hi 👋

Thanks for your contribution 💪

I have now tested your extension, and I have some feedback ready for you:

  • media/demo.gif is too big to add, can we remove it?

  • metadata/zoo-1.png can we remove this, it has no contextual value

I'm looking forward to testing this extension again 🔥

Request a new review when you are ready. Feel free to contact me here or at Slack if you have any questions.

extensions/zoo/CHANGELOG.md Outdated Show resolved Hide resolved
extensions/zoo/package.json Outdated Show resolved Hide resolved
extensions/zoo/package.json Outdated Show resolved Hide resolved
extensions/zoo/package.json Outdated Show resolved Hide resolved
extensions/zoo/package.json Outdated Show resolved Hide resolved
ViGeng and others added 5 commits January 12, 2025 15:17
- fix changelog
- remove demo.git, too large
- update metadata
Co-authored-by: Per Nielsen Tikær <[email protected]>
Co-authored-by: Per Nielsen Tikær <[email protected]>
Co-authored-by: Per Nielsen Tikær <[email protected]>
@ViGeng
Copy link
Contributor Author

ViGeng commented Jan 12, 2025

The Raycast Git workflow is a bit confusing for me.
So I cloned the whole forked repo to my local.
Did not use npm run publish

@ViGeng
Copy link
Contributor Author

ViGeng commented Jan 12, 2025

Hi 👋

Thanks for your contribution 💪

I have now tested your extension, and I have some feedback ready for you:

  • media/demo.gif is too big to add, can we remove it?
  • metadata/zoo-1.png can we remove this, it has no contextual value

I'm looking forward to testing this extension again 🔥

Request a new review when you are ready. Feel free to contact me here or at Slack if you have any questions.

Thanks for the review and suggestions.
I replace the former gif file with a smaller one (<1MB), hope it works.
Removed zoo-1.png from metadata.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new extension Label for PRs with new extensions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants