Jump to content

ChatGPT / DALL-E - OpenAI integrations


Recommended Posts

Setup

  1. Create an OpenAI account and log in.
  2. On the API keys page, click + Create new secret key.
  3. Name your new secret key and click Create secret key.
  4. Copy your secret key and add it to the Workflow’s Configuration.

Hot tip: Using earlier models (e.g. ChatGPT 3.5 and DALL·E 2) is the most cost-effective way to use these OpenAI tools and stretch your credit a long way!


Usage


Query ChatGPT via the chatgpt keyword.


chatgptkeyword.png


chatgpttextview.png

  • ↩ Ask a new question.
  • ⌘↩ Clear and restart chat.
  • ⌥↩ Copy last answer.
  • ⌃↩ Copy full chat.
  • ⇧↩ Stop generating answer.

Query DALL·E via the dalle keyword.


dallekeyword.png


dalletextview.png

  • ↩ Send a new prompt.
  • ⌥↩ Reveal the most recent image in the Finder.

⤓ Install on the Alfred Gallery | Source

Link to comment

Frequently Asked Questions (FAQ)


How do I set up an alternative AI model?


The workflow offers the ability to change the API end points and override model names in the Workflow Environment Variables. This requires advanced configuration and is not something we can provide support for, but our community are doing it with great success and can help you on a different thread.


How do I access the service behind a proxy?


Add a new https_proxy key in Workflow Environment Variables. Or configure the proxy for all workflows under Alfred Preferences → Advanced → Network.


Why can’t I use the workflow with a ChatGPT Plus subscription?


The ChatGPT Plus subscription does not include access to the ChatGPT API and are billed separately.


Is there a video which shows how to use the workflow?


Yes, on YouTube.


How do I report an issue?


Accurate and thorough information is crucial for a proper diagnosis. When reporting issues, please include your exact installed versions of:

  • The Workflow.
  • Alfred.
  • macOS.

In addition to:

  • The debugger output. Perform the failing action, click “Copy” on the top right and paste it here.
  • Details on what you did, what happened, and what you expected to happen. A short video of the steps with the debugger open may help to find the problem faster.
Link to comment
  • Vero changed the title to ChatGPT / DALL-E - OpenAI integrations

Thanks vitor for the great work, this generative AI finally arrives in Alfred!

 

Since OpenAI is not available in some countries/regions, would it be possible to enhance this workflow to have a dedicated network proxy setting, or is that possible to configure a proxy only for this workflow? E.g. https/socks. Although Alfred can utilize the system proxy in macOS, setting a system proxy would affect all other apps.

 

Thanks!

Link to comment

Thanks @vitor, this workflow is truly a game-changer and I've already been using it quite a bit. 

One issue I found: if you open the Alfred prompt, start querying ChatGPT with the set keyword (I changed mine to "c"), and then hit CMD-Enter (which should start a new chat session), the Alfred prompt disappears and doesn't show any results. If I had invoked it normally (with just "Enter") it works fine, but with "Cmd-Enter" it does not. 

Link to comment

@Vero Thanks for getting back to me. I was actually wondering if there was rough data on what average consumer usage was for sending API requests via the workflow. No worries if this is not available, just thought I would check. Take care.

Link to comment

I have accidentally cleared convo so many times. To me command enter for delete is risky as it is also new line in a lot of other interfaces. 

 

Also, why not just GPT as a keyword?

 

Realize I can customize this but was feedback for the default flow!

 

Finally - would be great to have a shorcut to copy code block from response.

Edited by Benjamin Thomas
Link to comment
4 hours ago, Benjamin Thomas said:

To me command enter for delete is risky as it is also new line in a lot of other interfaces.

 

In the macOS paradigm, ⌘↩ is a submit. Try it e.g. on a comment box on GitHub or this forum. It submits what you have in the textarea. Newlines are typically ⌥↩ and/or ⇧↩.

 

4 hours ago, Benjamin Thomas said:

Also, why not just GPT as a keyword?

 

Realize I can customize this

 

ChatGPT is the name of the service. A GPT is a related but different thing. This makes the keyword more obvious. And as you noted, you can customise it to your liking very easily. Some people use just c.

Link to comment
23 hours ago, Buffer said:

I was actually wondering if there was rough data on what average consumer usage was for sending API requests via the workflow.

 

@Buffer Just to clarify, we don't track your data so Alfred doesn't hold any knowledge of your API usage. Your privacy has always been a priority for us, so we don't keep aggregate data of users' Alfred usage, don't track your searches and don't host your preferences. 

 

You could create a quick keyword-based shortcut to launch the API usage page of the OpenAI site so you can easily pop it up to see how much data you've used. It won't take long for you to get a feel for your own usage level, I'm sure! :) 

Link to comment

Thank you everyone, great ideas about individual usage tracking! I'll keep up the hunt for consumer use cases as well. It would be interesting to see what user groups as a whole vs individuals are consuming API requests.

 

8 hours ago, Vero said:

 

@Buffer Just to clarify, we don't track your data so Alfred doesn't hold any knowledge of your API usage. Your privacy has always been a priority for us, so we don't keep aggregate data of users' Alfred usage, don't track your searches and don't host your preferences. 

 

You could create a quick keyword-based shortcut to launch the API usage page of the OpenAI site so you can easily pop it up to see how much data you've used. It won't take long for you to get a feel for your own usage level, I'm sure! :) 

 

@Vero I love that y'all take privacy seriously. Just another reason I recommend Alfred so often. :) Thanks again!

Link to comment

Hello, so far only gpt3.5 and gpt4 models are being offered on the workflow. However, gpt4 is the older but more expensive model. Are there any plans to bring the newer and cheaper gpt4turbo model to the workflow? Or is there any way for us to change ourselves?

Link to comment
12 hours ago, Vero said:

Curious to see how easy and quick the ChatGPT / DALL-E workflow is to use? I've created a quick video introducing the workflow and its configuration.

 

 

Hope this helps you discover this most awesome workflow :) 

 

Super amazing workflow and thank you for this video!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...