Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Improve Chart Generation Experience in Chat #151

Merged
merged 3 commits into from
Jan 30, 2025
Merged

Conversation

Bangarraju-Microsoft
Copy link

@Bangarraju-Microsoft Bangarraju-Microsoft commented Jan 30, 2025

This pull request introduces a new feature to display charts by default in the chat application. The changes span across backend and frontend files to support this feature. The most important changes include adding a new environment variable, creating an API endpoint, updating the frontend to fetch the new configuration, and modifying the chat component to handle chart display logic.

Backend changes:

  • App/.env.sample: Added a new environment variable DISPLAY_CHART_DEFAULT to enable or disable the default chart display.
  • App/app.py: Introduced a new API endpoint /api/display-chart-default to fetch the DISPLAY_CHART_DEFAULT configuration.

Frontend changes:

User Story : https://dev.azure.com/CSACTOSOL/KnowledgeMining/_workitems/edit/12962

The chart will be displayed immediately once the response is rendered, without requiring a second API call.

@Bangarraju-Microsoft Bangarraju-Microsoft changed the title fix : Improve Chart Generation Experience in Chat fix: Improve Chart Generation Experience in Chat Jan 30, 2025
@Avijit-Microsoft Avijit-Microsoft merged commit c39b77f into dev Jan 30, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants