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
300 stars 8 forks source link

¿Porqué no contesta? #24

Open jesusdeveloper opened 12 months ago

jesusdeveloper commented 12 months ago

Hello!

Thank you for the work of this beautiful plugin for Alfred. I have configured my API and I am new but when, for example, I make a direct query, the screen looks like this:

SCR-20231126-kxev

Could you help me?

Thank you!!!!

yohasebe commented 12 months ago

Hi, if that is a glitch that happens because of the latency of the API response, there may be no problems when you try again later. But if the issue persists, can you enable the debug mode in the configuration settings and share the error message shown, if any? Also, it would be helpful if you tell me what browser you are using.

CleanShot 2023-11-26 at 20 22 19@2x CleanShot 2023-11-26 at 20 23 38@2x

jesusdeveloper commented 12 months ago

Hi, if that is a glitch that happens because of the latency of the API response, there may be no problems when you try again later. But if the issue persists, can you enable the debug mode in the configuration settings and share the error message shown, if any? Also, it would be helpful if you tell me what browser you are using.

CleanShot 2023-11-26 at 20 22 19@2x CleanShot 2023-11-26 at 20 23 38@2x

Thanks!

I have activated the debugger mode and I have executed the problem (which is still happening) but it does not show anything:

SCR-20231126-mglz

What would I have to do?

Thank you!

EDIT: I want to add more images :

SCR-20231126-mhnx
yohasebe commented 12 months ago

It seems that you have enabled Alfred's debugger mode. Instead, can you click the 'Configure Workflow' button, check the 'Debug Mode' checkbox, and save? After that, please see what appears on the browser after the query.

jesusdeveloper commented 12 months ago

It seems that you have enabled Alfred's debugger mode. Instead, can you click the 'Configure Workflow' button, check the 'Debug Mode' checkbox, and save? After that, please see what appears on the browser after the query.

Not, I activated this in the workflow settings and everything is the same :(

SCR-20231126-mtys
jesusdeveloper commented 12 months ago

It seems that you have enabled Alfred's debugger mode. Instead, can you click the 'Configure Workflow' button, check the 'Debug Mode' checkbox, and save? After that, please see what appears on the browser after the query.

SCR-20231126-mvak
yohasebe commented 12 months ago

I see. Which browser are you using? Did you have the expected results before? Or did the issue occur from the beginning?

jesusdeveloper commented 12 months ago

I see. Which browser are you using? Did you have the expected results before? Or did the issue occur from the beginning?

I am trying it for the first time, the browser is Safari (all latest version) but in Chrome I get the same result :(

Thanks!

yohasebe commented 12 months ago

Could you disable the "Stream output" option in the config settings and check if it works?

CleanShot 2023-11-26 at 23 23 29@2x

jesusdeveloper commented 12 months ago

Could you disable the "Stream output" option in the config settings and check if it works?

CleanShot 2023-11-26 at 23 23 29@2x

Hello!

If I uncheck that then it doesn't open the web browser window but it shows this:

SCR-20231126-osbf
yohasebe commented 12 months ago

I modified the code so that the possible cause of the issue should be removed.

Would you try the workflow of the latest version (2.7.1)?

jesusdeveloper commented 12 months ago

I modified the code so that the possible cause of the issue should be removed.

Would you try the workflow of the latest version (2.7.1)?

Thank you very much for your help!

I have been trying different things and it seems that now he does answer, although he does the same thing in the browser (Safari and Chrome) but he does issue an answer.

I'll show you what I've tried:

With this configuration:

SCR-20231127-nahl

I get this:

SCR-20231127-mxzo

With this configuration:

SCR-20231127-naxt

I get this:

SCR-20231127-nbgy

With this config I get....

SCR-20231127-nbqk SCR-20231127-nbwd

And with this config, I get...

SCR-20231127-nclw SCR-20231127-ncpn

Para lo último he probado en Safari y en Chrome y también he desactivado Adguard y reiniciado navegadores pero obtengo mismo resultado.

Thanks!

yohasebe commented 12 months ago

Hi. I made a few modifications to the workflow (version 2.7.2).

To investigate the issue further, could you share the versions of your macOS and Alfred? For your information, here are the versions of my environment:

jesusdeveloper commented 11 months ago

Hi. I made a few modifications to the workflow (version 2.7.2).

To investigate the issue further, could you share the versions of your macOS and Alfred? For your information, here are the versions of my environment:

  • macOS: Sonoma 14.1.1
  • Alfred: 5.1.4 [2195]

Hello!

I have updated but the error continues.

Of course! =) macOS: Sonoma 14.1.2 (23B92) Alfred: 5.1.4 [2195]

Is there any way to see a log or something like that? Maybe that would help :)

yohasebe commented 11 months ago

Hi. Another refinement has been made to the workflow (version 2.8.0).

In this version, the web UI is served by a server running within the workflow, which means the WebSocket connection is made in essentially the same way as many ordinary web apps. I hope this works as well in your environment! 🤞

jesusdeveloper commented 11 months ago

Hi. Another refinement has been made to the workflow (version 2.8.0).

In this version, the web UI is served by a server running within the workflow, which means the WebSocket connection is made in essentially the same way as many ordinary web apps. I hope this works as well in your environment! 🤞

Hello, friend!

It seems that this doesn't want to work :( The only thing I'm thinking is that how this is communicated through the port http://localhost:**8087**/openai/ Would it be necessary to open this port on the router? I don't think so, but no matter how much I think, I don't know what it can be. Anyway, don't worry, I'll use another alternative, at least, we've tried! THANK YOU!!!

yohasebe commented 11 months ago

You don't need to change the router settings since the interaction using port 8087 only happens inside your local computer, between the browser and the server running within the Alfred workflow. Just make sure that you're not running any third-party security software while using this workflow. (By the way, 8087 can be changed to something else in the server_port environmental variable.)

I uploaded 2.8.1 with a new option to select the loopback address either 127.0.0.1 (new default) or localhost. I hope this will work for you.

yohasebe commented 11 months ago

By the way, please note that the first time you make a query from the web UI, you will be asked for confirmation as shown below. If the response to this confirmation is negative, the connection between the browser and Alfred will not be established.

CleanShot 2023-12-04 at 20 32 29@2x