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

How to remove Show Chat History button from UI? #765

Closed
kagoolastha23 opened this issue Apr 8, 2024 · 10 comments
Closed

How to remove Show Chat History button from UI? #765

kagoolastha23 opened this issue Apr 8, 2024 · 10 comments
Labels
bug Something isn't working stale

Comments

@kagoolastha23
Copy link

Describe the bug
I want the chat history to be enabled but I don't want the chat history button to be seen on right hand side.

To Reproduce
Steps to reproduce the behavior:
I want to customize the default contoso app and remove the chat history button .Which functions I'll have to delete it?
I have no knowledge of UI and need assistance which functions or modules have to be removed from the folder to make it happen?

Configuration: Please provide the following

  • Azure OpenAI model name and version (e.g. 'gpt-4-32k')
  • Is chat history enabled? Yes
  • Are you using data? If so, what data source? (e.g. Azure AI Search)

Additional context
This is a custom requirement question.

@kagoolastha23 kagoolastha23 added the bug Something isn't working label Apr 8, 2024
@Hadi2525
Copy link

@kagoolastha23 If you only want to remove the chat history button, comment lines 82, 83, 84 of

{(appStateContext?.state.isCosmosDBAvailable?.status !== CosmosDBStatus.NotConfigured) &&

@Hadi2525
Copy link

Hadi2525 commented Apr 12, 2024

@kagoolastha23 FYI, #771 is a PR that helps with your request on hiding the chat history. Remember that once you hide the chat history and publish it to web services then it cannot be accessed from the UI. You still can retrieve chat history in CosmosDB.

@kagoolastha23
Copy link
Author

kagoolastha23 commented Apr 15, 2024

@kagoolastha23 If you only want to remove the chat history button, comment lines 82, 83, 84 of

{(appStateContext?.state.isCosmosDBAvailable?.status !== CosmosDBStatus.NotConfigured) &&

I want to make this change and deploy the app? It is mentioned I need to run start.cmd before deploying the app.I didn't understand that part. I am cloning the repo and using Azure CLI to deploy it to web app.How will I run that in Azure Cloud Shell?

I tried commenting and then running the code. It gives me Application error.

@Hadi2525
Copy link

start.cmd is for running the app locally. To deploy it to Azure follow instructions in this section:
https://github.com/microsoft/sample-app-aoai-chatGPT/blob/main/README.md#deploy-with-the-azure-cli

@kagoolastha23
Copy link
Author

start.cmd is for running the app locally. To deploy it to Azure follow instructions in this section: https://github.com/microsoft/sample-app-aoai-chatGPT/blob/main/README.md#deploy-with-the-azure-cli

NOTE: If you've made code changes, be sure to build the app code with start.cmd or start.sh before you deploy, otherwise your changes will not be picked up. If you've updated any files in the frontend folder, make sure you see updates to the files in the static folder before you deploy. How do I do this step?

@Hadi2525
Copy link

from your command terminal run ./start.cmd it builds the full-stack package (python for backend / typescript for the frontend). Have you tried running it from CLI?

@kagoolastha23
Copy link
Author

sampleissue1 I am getting this error when I commented line 82 83 84 and then executed ./start.sh and deployed the app.

@kagoolastha23
Copy link
Author

Here is what I am seeing on my application logs
sampleissue1

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jun 26, 2024
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants