-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
Description
When /quick ai is used with Gemini and the provider returns an error payload instead of generated candidate text, the AI flow fails.
The current implementation assumes the Gemini response always contains text at:
response.data.candidates[0].content.parts[0].text
In practice, Gemini can return an error object instead of candidates, for example when the model is overloaded or temporarily unavailable. In those cases, /quick ai does not handle the response shape safely.
Expected behavior
/quick aishould safely handle Gemini responses that do not includecandidates- if Gemini returns an explicit error payload, the app should surface the provider message instead of failing
- if Gemini returns an unexpected shape without generated text, the app should log the error in gemini response.
Actual behaviour
/quick aiassumes the Gemini response always contains generated text atresponse.data.candidates[0].content.parts[0].text- when Gemini returns an error payload instead of
candidates, the AI flow fails - proper logs are not generated
- the modal falls back to a generic failure message instead of handling the provider response safely
Steps to reproduce
- Install the Quick Replies app
- Configure Gemini as the AI provider
- Trigger
/quick ai - Enter a prompt and click
Generate - Hit a Gemini error response such as overload / temporary unavailability
- Observe that the response does not contain generated candidate text
Relevant ScreenShots
Version
v8.2.1
What browsers are you seeing the problem on?
Firefox
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working