alfredapp / openai-workflow

OpenAI integrations
BSD 3-Clause "New" or "Revised" License
67 stars 32 forks source link

Getting `[Connection Stalled]` - cannot query both ChatGPT and Dalle #34

Closed Avivbens closed 7 months ago

Avivbens commented 7 months ago

Frequently Asked Questions

Workflow version

v2024.9 - latest

Alfred version

Alfred 5.5 [2257] - latest

macOS version

14.4.1 (23E224)

Debugger output

[12:24:09.893] ChatGPT / DALL-E[Text View] Running with argument 'How can I use time command in order to measure time for bash commands?'
[12:24:10.037] ChatGPT / DALL-E[Text View] Script with argv 'How can I use time command in order to measure time for bash commands?' finished
[12:24:10.043] ChatGPT / DALL-E[Text View] {"rerun":0.1,"variables":{"streaming_now":true,"stream_marker":true},"response":"### How can I set a type in typescript, that changes the options by inner property provided\n\n[Answer Interrupted]\n\n### hi\n\n[Answer Interrupted]\n\n### How can I use time command in order to measure time for bash commands?\n\n[Answer Interrupted]\n\n### How can I use time command in order to measure time for bash commands?\n\n[Answer Interrupted]\n\n### How can I use time command in order to measure time for bash commands?\n\n"}
[12:24:10.145] ChatGPT / DALL-E[Text View] Running with argument 'How can I use time command in order to measure time for bash commands?'
[12:24:10.209] ChatGPT / DALL-E[Text View] Script with argv 'How can I use time command in order to measure time for bash commands?' finished
[12:24:10.216] ChatGPT / DALL-E[Text View] {"rerun":0.1,"variables":{"streaming_now":true},"response":"…","behaviour":{"response":"append"}}
[12:24:10.316] ChatGPT / DALL-E[Text View] Running with argument 'How can I use time command in order to measure time for bash commands?'
[12:24:10.449] ChatGPT / DALL-E[Text View] Script with argv 'How can I use time command in order to measure time for bash commands?' finished
[12:24:10.456] ChatGPT / DALL-E[Text View] {"rerun":0.1,"variables":{"streaming_now":true}}
[12:24:10.553] ChatGPT / DALL-E[Text View] Running with argument 'How can I use time command in order to measure time for bash commands?'
[12:24:10.622] ChatGPT / DALL-E[Text View] Script with argv 'How can I use time command in order to measure time for bash commands?' finished
[12:24:10.628] ChatGPT / DALL-E[Text View] {"rerun":0.1,"variables":{"streaming_now":true}}
[12:24:10.728] ChatGPT / DALL-E[Text View] Running with argument 'How can I use time command in order to measure time for bash commands?'
[12:24:10.778] ChatGPT / DALL-E[Text View] Script with argv 'How can I use time command in order to measure time for bash commands?' finished
[12:24:10.784] ChatGPT / DALL-E[Text View] {"rerun":0.1,"variables":{"streaming_now":true}}
[12:24:10.883] ChatGPT / DALL-E[Text View] Running with argument 'How can I use time command in order to measure time for bash commands?'
[12:24:11.022] ChatGPT / DALL-E[Text View] Script with argv 'How can I use time command in order to measure time for bash commands?' finished
[12:24:11.030] ChatGPT / DALL-E[Text View] {"rerun":0.1,"variables":{"streaming_now":true}}
[12:24:11.128] ChatGPT / DALL-E[Text View] Running with argument 'How can I use time command in order to measure time for bash commands?'
[12:24:11.199] ChatGPT / DALL-E[Text View] Script with argv 'How can I use time command in order to measure time for bash commands?' finished
[12:24:11.206] ChatGPT / DALL-E[Text View] {"rerun":0.1,"variables":{"streaming_now":true}}
[12:24:11.308] ChatGPT / DALL-E[Text View] Running with argument 'How can I use time command in order to measure time for bash commands?'
[12:24:11.384] ChatGPT / DALL-E[Text View] Script with argv 'How can I use time command in order to measure time for bash commands?' finished
[12:24:11.391] ChatGPT / DALL-E[Text View] {"rerun":0.1,"variables":{"streaming_now":true}}
[12:24:11.490] ChatGPT / DALL-E[Text View] Running with argument 'How can I use time command in order to measure time for bash commands?'
[12:24:11.626] ChatGPT / DALL-E[Text View] Script with argv 'How can I use time command in order to measure time for bash commands?' finished
[12:24:11.633] ChatGPT / DALL-E[Text View] {"rerun":0.1,"variables":{"streaming_now":true}}
[12:24:11.729] ChatGPT / DALL-E[Text View] Running with argument 'How can I use time command in order to measure time for bash commands?'
[12:24:11.865] ChatGPT / DALL-E[Text View] Script with argv 'How can I use time command in order to measure time for bash commands?' finished
[12:24:11.872] ChatGPT / DALL-E[Text View] {"rerun":0.1,"variables":{"streaming_now":true}}
[12:24:11.969] ChatGPT / DALL-E[Text View] Running with argument 'How can I use time command in order to measure time for bash commands?'
[12:24:12.033] ChatGPT / DALL-E[Text View] Script with argv 'How can I use time command in order to measure time for bash commands?' finished
[12:24:12.040] ChatGPT / DALL-E[Text View] {"rerun":0.1,"variables":{"streaming_now":true}}
[12:24:12.141] ChatGPT / DALL-E[Text View] Running with argument 'How can I use time command in order to measure time for bash commands?'
[12:24:12.274] ChatGPT / DALL-E[Text View] Script with argv 'How can I use time command in order to measure time for bash commands?' finished
[12:24:12.282] ChatGPT / DALL-E[Text View] {"rerun":0.1,"variables":{"streaming_now":true}}
[12:24:12.376] ChatGPT / DALL-E[Text View] Running with argument 'How can I use time command in order to measure time for bash commands?'
[12:24:12.449] ChatGPT / DALL-E[Text View] Script with argv 'How can I use time command in order to measure time for bash commands?' finished
[12:24:12.455] ChatGPT / DALL-E[Text View] {"rerun":0.1,"variables":{"streaming_now":true}}
[12:24:12.553] ChatGPT / DALL-E[Text View] Running with argument 'How can I use time command in order to measure time for bash commands?'
[12:24:12.621] ChatGPT / DALL-E[Text View] Script with argv 'How can I use time command in order to measure time for bash commands?' finished
[12:24:12.627] ChatGPT / DALL-E[Text View] {"rerun":0.1,"variables":{"streaming_now":true}}
[12:24:12.729] ChatGPT / DALL-E[Text View] Running with argument 'How can I use time command in order to measure time for bash commands?'
[12:24:12.849] ChatGPT / DALL-E[Text View] Script with argv 'How can I use time command in order to measure time for bash commands?' finished
[12:24:12.856] ChatGPT / DALL-E[Text View] {"rerun":0.1,"variables":{"streaming_now":true}}
[12:24:12.953] ChatGPT / DALL-E[Text View] Running with argument 'How can I use time command in order to measure time for bash commands?'
[12:24:13.023] ChatGPT / DALL-E[Text View] Script with argv 'How can I use time command in order to measure time for bash commands?' finished
[12:24:13.030] ChatGPT / DALL-E[Text View] {"rerun":0.1,"variables":{"streaming_now":true}}
[12:24:13.131] ChatGPT / DALL-E[Text View] Running with argument 'How can I use time command in order to measure time for bash commands?'
[12:24:13.177] ChatGPT / DALL-E[Text View] Script with argv 'How can I use time command in order to measure time for bash commands?' finished
[12:24:13.185] ChatGPT / DALL-E[Text View] {"rerun":0.1,"variables":{"streaming_now":true}}
[12:24:13.283] ChatGPT / DALL-E[Text View] Running with argument 'How can I use time command in order to measure time for bash commands?'
[12:24:13.341] ChatGPT / DALL-E[Text View] Script with argv 'How can I use time command in order to measure time for bash commands?' finished
[12:24:13.348] ChatGPT / DALL-E[Text View] {"rerun":0.1,"variables":{"streaming_now":true}}
[12:24:13.449] ChatGPT / DALL-E[Text View] Running with argument 'How can I use time command in order to measure time for bash commands?'
[12:24:13.591] ChatGPT / DALL-E[Text View] Script with argv 'How can I use time command in order to measure time for bash commands?' finished
[12:24:13.598] ChatGPT / DALL-E[Text View] {"rerun":0.1,"variables":{"streaming_now":true}}
[12:24:13.694] ChatGPT / DALL-E[Text View] Running with argument 'How can I use time command in order to measure time for bash commands?'
[12:24:13.818] ChatGPT / DALL-E[Text View] Script with argv 'How can I use time command in order to measure time for bash commands?' finished
[12:24:13.826] ChatGPT / DALL-E[Text View] {"rerun":0.1,"variables":{"streaming_now":true}}
[12:24:13.924] ChatGPT / DALL-E[Text View] Running with argument 'How can I use time command in order to measure time for bash commands?'
[12:24:13.991] ChatGPT / DALL-E[Text View] Script with argv 'How can I use time command in order to measure time for bash commands?' finished
[12:24:13.998] ChatGPT / DALL-E[Text View] {"rerun":0.1,"variables":{"streaming_now":true}}
[12:24:14.099] ChatGPT / DALL-E[Text View] Running with argument 'How can I use time command in order to measure time for bash commands?'
[12:24:14.161] ChatGPT / DALL-E[Text View] Script with argv 'How can I use time command in order to measure time for bash commands?' finished
[12:24:14.169] ChatGPT / DALL-E[Text View] {"rerun":0.1,"variables":{"streaming_now":true}}
[12:24:14.268] ChatGPT / DALL-E[Text View] Running with argument 'How can I use time command in order to measure time for bash commands?'
[12:24:14.324] ChatGPT / DALL-E[Text View] Script with argv 'How can I use time command in order to measure time for bash commands?' finished
[12:24:14.329] ChatGPT / DALL-E[Text View] {"rerun":0.1,"variables":{"streaming_now":true}}
[12:24:14.432] ChatGPT / DALL-E[Text View] Running with argument 'How can I use time command in order to measure time for bash commands?'
[12:24:14.490] ChatGPT / DALL-E[Text View] Script with argv 'How can I use time command in order to measure time for bash commands?' finished
[12:24:14.497] ChatGPT / DALL-E[Text View] {"rerun":0.1,"variables":{"streaming_now":true}}
[12:24:14.594] ChatGPT / DALL-E[Text View] Running with argument 'How can I use time command in order to measure time for bash commands?'
[12:24:14.669] ChatGPT / DALL-E[Text View] Script with argv 'How can I use time command in order to measure time for bash commands?' finished
[12:24:14.676] ChatGPT / DALL-E[Text View] {"rerun":0.1,"variables":{"streaming_now":true}}
[12:24:14.773] ChatGPT / DALL-E[Text View] Running with argument 'How can I use time command in order to measure time for bash commands?'
[12:24:14.843] ChatGPT / DALL-E[Text View] Script with argv 'How can I use time command in order to measure time for bash commands?' finished
[12:24:14.850] ChatGPT / DALL-E[Text View] {"rerun":0.1,"variables":{"streaming_now":true}}
[12:24:14.947] ChatGPT / DALL-E[Text View] Running with argument 'How can I use time command in order to measure time for bash commands?'
[12:24:15.079] ChatGPT / DALL-E[Text View] Script with argv 'How can I use time command in order to measure time for bash commands?' finished
[12:24:15.086] ChatGPT / DALL-E[Text View] {"response":" [Connection Stalled]","footer":"You can ask ChatGPT to continue the answer","behaviour":{"response":"replacelast","scroll":"end"}}

More details

When trying to query ChatGPT, I'm not getting any response but this:

CleanShot 2024-04-20 at 12 28 32@2x

vitorgalvao commented 7 months ago

Please provide the video with the debugger open, as per the FAQ. I need to see it happening live.

Avivbens commented 7 months ago

Sure 👍

Here is a video

https://github.com/alfredapp/openai-workflow/assets/77183871/68e2c920-6150-4491-8453-6e1d84ace786

vitorgalvao commented 7 months ago

Now I need to see your values for the Workflow Environment Variables.

Avivbens commented 7 months ago

Here it is:

CleanShot 2024-04-22 at 13 23 49@2x

@vitorgalvao

vitorgalvao commented 7 months ago

You don’t need to ping me, I get notifications on replies.

Try this version. What’s the behaviour?

Avivbens commented 7 months ago

Just the same

CleanShot 2024-04-22 at 13 40 59@2x

vitorgalvao commented 7 months ago

Open a terminal and run the following (replace the YOUR_API_KEY text within the quotes with your API key):

openai_key="YOUR_API_KEY"
time /usr/bin/curl "https://api.openai.com/v1/chat/completions" --header "Authorization: Bearer ${openai_key}" --header "Content-Type: application/json" --data '{ "model": "gpt-3.5-turbo", "messages": [{ "role": "user", "content": "What is red?" }], "stream": true }'

What do you get?

Avivbens commented 7 months ago

OK, seems like an SSL cert issue:

CleanShot 2024-04-22 at 14 27 27@2x

Solution

Update the ~/.curlrc to have an absolute path, like: /Users/<USER_NAME>/<PATH_TO_SSL>

Result

CleanShot 2024-04-22 at 14 26 24@2x

Avivbens commented 7 months ago

Thanks for the help! 🎉