radames / LLM-automator

Create keyboard shortcuts for an LLM using OpenAI GPT, Ollama, HuggingFace with Automator on macOS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wonderful tool

dafraile opened this issue · comments

Would you consider adding also a GPT-4 API version of this? Thanks

Hi @dafraile, thanks for testing. The OpenAI workflow is now available, please pull the new version. Thanks

Thanks! This is a great. A few things perhaps you need to specify in the README.md file:

I had a bit of an issue with my installed python (conda) and had to do a fresh reinstall so Automator finds it in the correct path.

Related to that, the "default" python needs to have the correct packages installed: for the Hugginface's Mixtral implemmentation needs "requests" library. for the OpenAI one, it needs openai library installed.

Also, I don't have access to "gpt-4-1106-preview" through my current API access so I had to downgrade it to "gpt-4" version instead.

Last, somehow I get different behaviour from Mixtral and OpenAI. So when I ask OpenAI version to correct a badly spelled text such as:

"I want to write this crayz letter that need to sound like it will get e ajob in acdemia but pleas ecorrect myt grammar and all the stuff"

OpenAI Answer:
I wish to compose an outstanding letter that will secure me a position in academia. Please correct the grammatical errors and enhance my content.

Mixtral:
"Certainly! Here's your corrected letter:

Dear Hiring Committee,

I am writing to express my interest in the open academic position at your esteemed institution. I am confident that my unique experiences, exceptional work ethic, and unwavering passion for my field make me an ideal candidate for this role.

Throughout my academic career, I have consistently demonstrated a commitment to excellence. I have published numerous articles in respected journals, presented at conferences both nationally and internationally, and have received numerous accolades for my research and teaching.

My research interests lie at the intersection of [insert specific areas of interest], and I am eager to continue exploring these topics in a rigorous and collaborative academic environment. I am confident that my expertise and innovative approach will make a valuable contribution to your department.

In addition to my research, I am a dedicated and engaging teacher. I have experience teaching a variety of courses at both the undergraduate and graduate levels, and have received consistently high student evaluations. I believe that effective teaching is built on a foundation of strong relationships, clear communication, and a commitment to student success.

I am excited about the possibility of joining your institution and contributing to your mission of academic excellence. Thank you for considering my application. I look forward to the opportunity to discuss my qualifications further.

Sincerely,
[Your Name]"

So it seems, Mixtral overwrites the prompt and guesses what I want instead. Both things are useful although you may want to fix this in the prompt or allow the user to choose what it wants to do (one automator action for grammar and composing check, and one for automating tasks).

Thanks again mate, awesome job!