raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.23k stars 2.93k forks source link

The official expansion of ChatGPT, custom API queries have serious errors. #13980

Open eachann1024 opened 1 month ago

eachann1024 commented 1 month ago

Extension

https://www.raycast.com/abielzulio/chatgpt

Raycast Version

1.80.0

macOS Version

15 bate4

Description

There is a serious problem. When I choose a custom API and define the prompts, every time I ask a question, it only responds with my prompts and doesn't bring up my question.

I've tested the API in many places and it's not the problem.

Please see the gif. (Click to view the GIF)

Image 2024-08-12 at 18 44 28

Steps To Reproduce

Refer to the gif animation above

Current Behaviour

No response

Expected Behaviour

No response

raycastbot commented 1 month ago

Thank you for opening this issue!

🔔 @abielzulio @erodactyl @pernielsentikaer @shichongrui @timolins @cruelmoney @abielzulio @abielzulio @k8scat @Nauxscript @aeither @leeonfield you might want to have a look.

💡 Author and Contributors commands The author and contributors of `abielzulio/chatgpt` can trigger bot actions by commenting: - `@raycastbot close this issue` Closes the issue. - `@raycastbot close as not planned` Closes the issue as not planned. - `@raycastbot rename this issue to "Awesome new title"` Renames the issue. - `@raycastbot reopen this issue` Reopens the issue. - `@raycastbot assign me` Assigns yourself to the issue. - `@raycastbot good first issue` Adds the "Good first issue" label to the issue. - `@raycastbot keep this issue open` Make sure the issue won't go stale and will be kept open by the bot.
husniadil commented 1 month ago

This issue also occurs with some of the other extensions that read context from the frontmost app.

ChatGPT Quick Actions

Screenshot 2024-08-12 at 21 31 37

Google Gemini

Screenshot 2024-08-12 at 21 35 42

Groq

Screenshot 2024-08-12 at 21 36 40

I'm unsure whether there have been any breaking changes to the Ray extension host or if this has been occurring for some time. /cc @pernielsentikaer

-- EDIT

This issue occurs only when the setting below is activated and the extension cannot find any text available to read from the frontmost app. I believe this is somewhat acceptable, as the flow still functions perfectly and users can continue to ask questions to the AI.

Screenshot 2024-08-13 at 01 45 49
husniadil commented 1 month ago

Here are some ways to reproduce the issue:

  1. Open a PDF file and attempt to execute one of the commands from the extensions, such as "Ask Question" from ChatGPT, "Fix Spelling and Grammar" from Groq, or "Fix Spelling and Grammar" from Google Gemini.
  2. Open the official ChatGPT app from OpenAI and try launching those commands.
  3. Open other apps, ensuring they focus on non-text content, for example, the Apple Photos app, etc.
husniadil commented 1 month ago

@eachann1024 Although there is an error displayed in this extension (ChatGPT), it still provides accurate responses. I can obtain the answer using the same prompt, and the response appears above the question.

Screenshot 2024-08-12 at 22 05 33

Your question: hello your version AI answer: Understood. How can I assist you today?

If that is what you mean by "the problem," I don't think it's related to either Raycast or the ChatGPT extension.

Please take a look on this official ChatGPT app:

Screenshot 2024-08-12 at 22 08 49

I requested the ChatGPT official app to respond in a shorter and less detailed manner, and that was the output. It answered with:

"Hi! What do you need help with?"

Basically, the same pattern with yours:

Understood. How can I assist you today?

eachann1024 commented 1 month ago

@eachann1024 Although there is an error displayed in this extension (ChatGPT), it still provides accurate responses. I can obtain the answer using the same prompt, and the response appears above the question.

Screenshot 2024-08-12 at 22 05 33

Your question: hello your version AI answer: Understood. How can I assist you today?

If that is what you mean by "the problem," I don't think it's related to either Raycast or the ChatGPT extension.

Please take a look on this official ChatGPT app:

Screenshot 2024-08-12 at 22 08 49

I requested the ChatGPT official app to respond in a shorter and less detailed manner, and that was the output. It answered with:

"Hi! What do you need help with?"

Basically, the same pattern with yours:

Understood. How can I assist you today?

https://github.com/user-attachments/assets/9852ab28-3dd1-4a40-9dfb-199cdb0380f8

Same answer if you ask a different question.