balupton Posted March 15 Share Posted March 15 (edited) # [Kagi FastGPT for Alfred](https://github.com/bevry-labs/alfred-workflows/tree/main/FastGPT) Get access to [Kagi's FastGPT](https://kagi.com/fastgpt) directly within Alfred. You will need to: 1. configure it with [your API Key and buy credits](https://help.kagi.com/kagi/api/fastgpt.html#quick-start). 2. have curl and jq installed, you can do this by installing [Dorothy](https://github.com/bevry/dorothy) [Download.](https://github.com/bevry-labs/alfred-workflows/blob/main/FastGPT/FastGPT.alfredworkflow) Edited March 15 by balupton embed the image JJJJ and oldman8371763 2 Link to comment
vitor Posted March 15 Share Posted March 15 Welcome @balupton, and thank you for sharing. Using the Universal Actions panel in this manner is somewhat atypical. Have you looked at the new Text View object in the Alfred 5.5 beta? It’s designed for cases like this where you want to present a lot of text to users. Link to comment
balupton Posted March 15 Author Share Posted March 15 (edited) Didn't know about that, will be sure to use that when the feature goes into stable. Thanks for the tip! Glad that doing such things doesn't require that unconventional approach anymore. Edited March 15 by balupton Link to comment
oldman8371763 Posted July 5 Share Posted July 5 Thank you for this! Having a blast with Kagi and now I can use FastGPT in the app. I just wish I knew enough to add repeat questions to the text box - but all good, thank you very much for this :D Link to comment
antiduplicity Posted Monday at 08:23 PM Share Posted Monday at 08:23 PM (edited) I have tried this. I regularly get permission denied when debugging the workflow on the jq directory. I am trying to run this on an M1 mac with Macos Sequoia. I cannot install dorothy because it says my OS is too old to be supported. all this to say, I would like to run fastgpt, because I am a paid kagi user, but your workflow breaks. any help would be appreciated. I am using alfred release 5.5 this is the debug view: [13:30:34.360] FastGPT[Keyword] Processing complete [13:30:34.363] FastGPT[Keyword] Passing output 'is kagi awesome?' to Run Script [13:30:34.363] FastGPT[Keyword] Passing output 'is kagi awesome?' to Arg and Vars [13:30:34.364] FastGPT[Arg and Vars] Processing complete [13:30:34.365] FastGPT[Arg and Vars] Passing output 'Generating your Kagi FastGPT response...' to Text View [13:30:34.956] ERROR: FastGPT[Run Script] zsh:3: no such file or directory: /Users/balupton/.local/bin/jq curl: (56) The requested URL returned error: 401 [13:30:34.962] FastGPT[Run Script] Processing complete [13:30:34.963] FastGPT[Run Script] Passing output '' to Text View Edited Monday at 08:31 PM by antiduplicity Link to comment
vitor Posted Tuesday at 12:10 PM Share Posted Tuesday at 12:10 PM @balupton The current version of the workflow isn’t suitable for sharing, because it hard codes /Users/balupton/.local/bin/jq making it not work for anyone else. curl has shipped with macOS since forever and jq started shipping with it since Sequoia. @antiduplicity You might get it to work by editing the Run Script object and replacing everything in it with: curl --fail --silent --show-error --location --header "Authorization: Bot $KAGI_API_TOKEN" --header 'Content-Type: application/json' --data '{"query": "{query}"}' https://kagi.com/api/v0/fastgpt | jq -r .data.output This is untested, as I don’t have Kagi. antiduplicity 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now