yohasebe / openai-chat-api-workflow

🎩 An Alfred 5 Workflow for using OpenAI Chat API to interact with GPT-4o 🤖💬 It also allows image generation 🖼️, image understanding 👀, speech-to-text conversion 🎤, and text-to-speech synthesis 🔈
https://github.com/yohasebe/openai-text-completion-workflow
MIT License
299 stars 8 forks source link

Workflow Not Running (Debug Log Provided) #4

Open hsy0528 opened 1 year ago

hsy0528 commented 1 year ago

Hello, I'm having trouble running this workflow. I've followed all the instructions for configuring the settings, but it still isn't working. My Alfred version is 5.03, and I've entered my OpenAI API and installed Pandoc using Homebrew. I've included the debug log below, but I don't understand what's going wrong. Can you please help me troubleshoot this issue?

[21:52:55.559] OpenAI[Keyword] Processing complete [21:52:55.560] OpenAI[Keyword] Passing output '' to Conditional [21:52:55.560] OpenAI[Conditional] Processing complete [21:52:55.561] OpenAI[Conditional] Passing output '' to Arg and Vars [21:52:55.562] OpenAI[Arg and Vars] Processing complete [21:52:55.562] OpenAI[Arg and Vars] Passing output '' to List Filter [21:52:56.005] OpenAI[List Filter] Processing complete [21:52:56.016] OpenAI[List Filter] Passing output 'direct' to Conditional [21:52:56.017] OpenAI[Conditional] Processing complete [21:52:56.018] OpenAI[Conditional] Passing output 'direct' to Arg and Vars [21:52:56.019] OpenAI[Arg and Vars] Processing complete [21:52:56.019] OpenAI[Arg and Vars] Passing output '' to Junction [21:52:56.020] OpenAI[Junction] Processing complete [21:52:56.021] OpenAI[Junction] Passing output '' to Conditional [21:52:56.022] OpenAI[Conditional] Processing complete [21:52:56.022] OpenAI[Conditional] Passing output '' to Large Type [21:52:56.023] OpenAI[Junction] Passing output '' to Run Script [21:53:56.235] OpenAI[Run Script] Processing complete [21:53:56.244] OpenAI[Run Script] Passing output '❗️ ERROR: something went wrong' to Conditional [21:53:56.248] OpenAI[Conditional] Processing complete [21:53:56.249] OpenAI[Conditional] Passing output '❗️ ERROR: something went wrong' to Conditional [21:53:56.251] OpenAI[Conditional] Passing output '❗️ ERROR: something went wrong' to Large Type

yohasebe commented 1 year ago

Hi, I have released version 1.6.6. This version adds a "debug mode" checkbox to the user settings. It allows the workflow to output more detailed information about what went wrong.

Would you mind trying it and share your debug output with me? It doesn't contain any API key information and is basically safe to share.

hsy0528 commented 1 year ago

Hi, I have released version 1.6.6. This version adds a "debug mode" checkbox to the user settings. It allows the workflow to output more detailed information about what went wrong.

Would you mind trying it and share your debug output with me? It doesn't contain any API key information and is basically safe to share.

Thanks for your reply. I have tried the latest version(1.66), and the debug output is as below: [09:03:07.368] OpenAI[Keyword] Processing complete [09:03:07.368] OpenAI[Keyword] Passing output '' to Conditional [09:03:07.369] OpenAI[Conditional] Processing complete [09:03:07.370] OpenAI[Conditional] Passing output '' to Arg and Vars [09:03:07.370] OpenAI[Arg and Vars] Processing complete [09:03:07.371] OpenAI[Arg and Vars] Passing output '' to List Filter [09:03:09.839] OpenAI[List Filter] Processing complete [09:03:09.839] OpenAI[List Filter] Passing output 'direct' to Conditional [09:03:09.840] OpenAI[Conditional] Processing complete [09:03:09.841] OpenAI[Conditional] Passing output 'direct' to Arg and Vars [09:03:09.841] OpenAI[Arg and Vars] Processing complete [09:03:09.842] OpenAI[Arg and Vars] Passing output '' to Junction [09:03:09.842] OpenAI[Junction] Processing complete [09:03:09.842] OpenAI[Junction] Passing output '' to Conditional [09:03:09.843] OpenAI[Conditional] Processing complete [09:03:09.844] OpenAI[Conditional] Passing output '' to Large Type [09:03:09.845] OpenAI[Junction] Passing output '' to Run Script [09:03:11.117] OpenAI[Run Script] Processing complete [09:03:11.118] OpenAI[Run Script] Passing output '❗️ ERROR: Input text is empty' to Conditional [09:03:11.119] OpenAI[Conditional] Processing complete [09:03:11.120] OpenAI[Conditional] Passing output '❗️ ERROR: Input text is empty' to Conditional [09:03:11.121] OpenAI[Conditional] Passing output '❗️ ERROR: Input text is empty' to Large Type [09:03:30.417] OpenAI[Keyword] Processing complete [09:03:30.419] OpenAI[Keyword] Passing output '' to Conditional [09:03:30.419] OpenAI[Conditional] Processing complete [09:03:30.420] OpenAI[Conditional] Passing output '' to Arg and Vars [09:03:30.421] OpenAI[Arg and Vars] Processing complete [09:03:30.421] OpenAI[Arg and Vars] Passing output '' to List Filter [09:03:37.524] OpenAI[List Filter] Processing complete [09:03:37.525] OpenAI[List Filter] Passing output 'question_in_your_language' to Conditional [09:03:37.526] OpenAI[Conditional] Processing complete [09:03:37.527] OpenAI[Conditional] Passing output 'question_in_your_language' to Arg and Vars [09:03:37.527] OpenAI[Arg and Vars] Processing complete [09:03:37.528] OpenAI[Arg and Vars] Passing output '' to Junction [09:03:37.529] OpenAI[Junction] Processing complete [09:03:37.529] OpenAI[Junction] Passing output '' to Conditional [09:03:37.530] OpenAI[Conditional] Processing complete [09:03:37.531] OpenAI[Conditional] Passing output '' to Large Type [09:03:37.531] OpenAI[Junction] Passing output '' to Run Script [09:03:38.754] OpenAI[Run Script] Processing complete [09:03:38.755] OpenAI[Run Script] Passing output '❗️ ERROR: Input text is empty' to Conditional [09:03:38.756] OpenAI[Conditional] Processing complete [09:03:38.757] OpenAI[Conditional] Passing output '❗️ ERROR: Input text is empty' to Conditional [09:03:38.758] OpenAI[Conditional] Passing output '❗️ ERROR: Input text is empty' to Large Type [09:06:21.601] Logging Started...

yohasebe commented 1 year ago

I've made a few tweaks, would you try 1.6.7 and let me know the results?

hsy0528 commented 1 year ago

I've made a few tweaks, would you try 1.6.7 and let me know the results?

[16:14:29.089] Logging Stopped. [16:14:46.065] Logging Started... [16:14:51.637] OpenAI[Keyword] Processing complete [16:14:51.638] OpenAI[Keyword] Passing output '' to Conditional [16:14:51.638] OpenAI[Conditional] Processing complete [16:14:51.639] OpenAI[Conditional] Passing output '' to Arg and Vars [16:14:51.640] OpenAI[Arg and Vars] Processing complete [16:14:51.640] OpenAI[Arg and Vars] Passing output '' to List Filter [16:14:55.550] OpenAI[List Filter] Processing complete [16:14:55.551] OpenAI[List Filter] Passing output 'direct' to Conditional [16:14:55.552] OpenAI[Conditional] Processing complete [16:14:55.552] OpenAI[Conditional] Passing output 'direct' to Arg and Vars [16:14:55.553] OpenAI[Arg and Vars] Processing complete [16:14:55.553] OpenAI[Arg and Vars] Passing output '' to Junction [16:14:55.554] OpenAI[Junction] Processing complete [16:14:55.554] OpenAI[Junction] Passing output '' to Conditional [16:14:55.555] OpenAI[Conditional] Processing complete [16:14:55.556] OpenAI[Conditional] Passing output '' to Large Type [16:14:55.556] OpenAI[Junction] Passing output '' to Run Script [16:14:56.717] OpenAI[Run Script] Processing complete [16:14:56.718] OpenAI[Run Script] Passing output '❗️ ERROR: Input text is empty' to Conditional [16:14:56.719] OpenAI[Conditional] Processing complete [16:14:56.720] OpenAI[Conditional] Passing output '❗️ ERROR: Input text is empty' to Conditional [16:14:56.720] OpenAI[Conditional] Passing output '❗️ ERROR: Input text is empty' to Large Type [16:15:31.744] OpenAI[Keyword] Processing complete [16:15:31.744] OpenAI[Keyword] Passing output '' to Open URL [16:15:47.196] OpenAI[Keyword] Processing complete [16:15:47.197] OpenAI[Keyword] Passing output '' to Run Script

yohasebe commented 1 year ago

What prompt did you enter and how did you run the query?

yohasebe commented 1 year ago

From the error message, I suspect that no input text has been entered. If you just want to open a textbox in your default web browser, please enter the keyword openai-textbox. See how to execute this workflow section of the README. Thanks!

yohasebe commented 1 year ago

Setting a HOTKEY trigger will help, as mentioned in #5.