Repository navigation
Demo: Chat-Message Streaming and Chat-Prompt Suggestions imporved err… - #35507
Open
DuckTieCorpMember wants to merge 1 commit into
Open
DuckTieCorpMember wants to merge 1 commit into
DuckTieCorpMember wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The changes consistently implement immediate, accurate error reporting across all supported demo frameworks.
Review effort: Balanced
Findings: None
What changed in this PR
Updates the Chat demos to display actual AI service errors instead of a fixed request-limit message.
Changes:
- Extracts and displays thrown error messages across all frameworks.
- Disables automatic retries so errors appear immediately.
- Preserves cancellation handling for streaming requests.
| File | Description |
|---|---|
PromptSuggestions/Vue/service.ts |
Disables AI request retries. |
PromptSuggestions/Vue/App.vue |
Displays actual errors. |
PromptSuggestions/ReactJs/useApi.js |
Displays actual errors. |
PromptSuggestions/ReactJs/service.js |
Disables retries. |
PromptSuggestions/React/useApi.ts |
Displays actual errors. |
PromptSuggestions/React/service.ts |
Disables retries. |
PromptSuggestions/jQuery/index.js |
Adds immediate error reporting. |
PromptSuggestions/Angular/app/app.service.ts |
Displays actual errors. |
PromptSuggestions/Angular/app/ai/ai.service.ts |
Disables retries. |
MessageStreaming/Vue/service.ts |
Disables stream retries. |
MessageStreaming/Vue/App.vue |
Reports non-cancellation errors. |
MessageStreaming/ReactJs/useApi.js |
Reports non-cancellation errors. |
MessageStreaming/ReactJs/service.js |
Disables stream retries. |
MessageStreaming/React/useApi.ts |
Reports non-cancellation errors. |
MessageStreaming/React/service.ts |
Disables stream retries. |
MessageStreaming/jQuery/index.js |
Adds immediate stream-error reporting. |
MessageStreaming/Angular/app/app.service.ts |
Reports non-cancellation errors. |
MessageStreaming/Angular/app/ai/ai.service.ts |
Disables stream retries. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
show real error messages in the Chat alert block for demos:
Chat - Message Streaming
Chat - Prompt Suggestions