RockteMQ-AI commented on issue #2178:
URL: 
https://github.com/apache/rocketmq-dashboard/issues/2178#issuecomment-5292619664

   **Issue Evaluation**
   
   Category: `type/bug` | Status: **Confirmed**
   
   The SSE stream parser only reads `choices[0].delta.content` and ignores 
error envelopes within HTTP 200 responses. When a provider sends `data: 
{"error":{"message":"..."}}`, the stream completes silently without surfacing 
the error.
   
   **Root Cause:** Missing error envelope detection in the SSE event handler 
for OpenAI-compatible streaming responses.
   **Impact:** Provider-side errors (quota exceeded, rate limits, auth 
failures) are silently swallowed, making debugging impossible for end users.
   **Severity:** medium
   
   Suggested fix: Check each SSE event for an `error` field before processing 
`choices`, and return a structured gateway error when detected.
   
   An automated fix proposal can be generated. Reply `/approve` to proceed with 
PR generation.
   
   ---
   *Automated evaluation by RockteMQ-AI*


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to