pseudometa Posted January 13 Share Posted January 13 Autocorrection and synonym suggestions for the word under the cursor. Rephrasing of the selected text. The workflow offers four hotkeys: Autocorrect the word under the cursor. Suggest synonyms for the word under the cursor. Rephrase the selected text via ChatGPT, improving its language (requires OpenAI API key). Same as 3, but use Markdown markup to show the changes: Additions are displayed as ==highlights==. Deletions are displayed as ~~strikethroughs~~. There is a workflow configuration to alternatively format the changes as Critic Markup. Unfortunately, the forum keeps on failing when I try to upload the demo .gif file. The demo is available at the workflow's GitHub page though: ➡️ https://github.com/chrisgrieser/alfred-writing-assistant JJJJ and iandol 2 Link to comment
iandol Posted January 15 Share Posted January 15 Chris, you are on a workflow roll!!! Thank you for yet another great workflow 😍 pseudometa 1 Link to comment
pseudometa Posted January 15 Author Share Posted January 15 9 hours ago, iandol said: Chris, you are on a workflow roll!!! Thank you for yet another great workflow 😍 Thanks! I am actually just publishing my "backlog" of Alfred workflow I have created for personal use over the years 😅 10 hours ago, dfay said: Your download link results in a 404. Sorry, fixed! Link to comment
dfay Posted February 2 Share Posted February 2 This is cool -- but I can't get the rephrasing function to produce anything new. For example, if I run it on the line above, Alfred returns: ~~This is cool -- but I can"t get the rephrasing function to produce anything new. ~~ i.e. it deletes the text but offers nothing new. Also, in case this is an easy fix, it misses common English contractions like "isn't" -- if I type isnt' e.g., it returns isntree ... Overall though it's great! Link to comment
pseudometa Posted February 2 Author Share Posted February 2 (edited) @dfay Thank you! Regarding the first one, I think that occurs when there is an issue with the OpenAI API, either it times out or you hit the rate limit for your account or something like that. I added some error logging, you could try v1.0.4 and run the rephraser with the debugging log in Alfred open, then it should tell you what's going on. With the second one, I am not totally sure what you mean. There was an issue where it turns single quotes into double quotes that I have just fixed for 1.0.4 as well, in case that helps? https://github.com/chrisgrieser/alfred-writing-assistant/releases/download/1.0.4/alfred-writing-assistant.alfredworkflow Edited February 2 by pseudometa forgot @ Link to comment
JJJJ Posted February 6 Share Posted February 6 On 2/2/2024 at 3:04 PM, pseudometa said: @dfay Thank you! Regarding the first one, I think that occurs when there is an issue with the OpenAI API, either it times out or you hit the rate limit for your account or something like that. I added some error logging, you could try v1.0.4 and run the rephraser with the debugging log in Alfred open, then it should tell you what's going on. With the second one, I am not totally sure what you mean. There was an issue where it turns single quotes into double quotes that I have just fixed for 1.0.4 as well, in case that helps? https://github.com/chrisgrieser/alfred-writing-assistant/releases/download/1.0.4/alfred-writing-assistant.alfredworkflow Thanks for the very useful workflow! I could use the rephrase function in v1.0.3 but I got "ERROR: No response by OpenAI API." error in v.1.0.4. I just tried downloading and trying v1.0.3 and rephrasing works for me again. Link to comment
pseudometa Posted February 6 Author Share Posted February 6 1 hour ago, JJJJ said: Thanks for the very useful workflow! I could use the rephrase function in v1.0.3 but I got "ERROR: No response by OpenAI API." error in v.1.0.4. I just tried downloading and trying v1.0.3 and rephrasing works for me again. Found the issue, fixed in 1.0.5: https://github.com/chrisgrieser/alfred-writing-assistant/releases/download/1.0.5/alfred-writing-assistant.alfredworkflow JJJJ 1 Link to comment
arowla Posted May 31 Share Posted May 31 Cool workflow! I'm having trouble getting the rephrase function working, but my error is different from those above (I'm on v1.3.3) ERROR: We could not parse the JSON body of your request. (HINT: This likely means you aren't using your HTTP library correctly. The OpenAI API expects a JSON payload, but what was sent was not valid JSON. If you have trouble figuring out how to fix this, please contact us through our help center at help.openai.com.) Link to comment
dood Posted June 5 Share Posted June 5 Thanks so much for this workflow, @pseudometa! Beyond the core features, I configured additional scripts to run my most-used ChatGPT commands on the selected text. Super handy, and it takes Alfred's in-line ChatGPT capabilities to the next level, even surpassing other paid apps. Great work! pseudometa 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