Azure-Samples / azure-search-openai-demo

A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
https://azure.microsoft.com/products/search
MIT License
6.32k stars 4.23k forks source link

Fix vite by adding host #1812

Closed pamelafox closed 4 months ago

pamelafox commented 4 months ago

Purpose

Fixes #1788

The additional argument is necessary due to a vite/Docker interaction issue detailed in: https://github.com/vitejs/vite/issues/16522

It's also possible to specify the host in vite.config.ts: https://github.com/Azure-Samples/rag-postgres-openai-python/commit/966022375e9f999c36d7cce66aea24e9b0892e89

But this approach (in package.json) might be more obvious, if someone needs to change it.

Does this introduce a breaking change?

When developers merge from main and run the server, azd up, or azd deploy, will this produce an error? If you're not sure, try it out on an old environment.

[ ] Yes
[X] No

Does this require changes to learn.microsoft.com docs?

This repository is referenced by this tutorial which includes deployment, settings and usage instructions. If text or screenshot need to change in the tutorial, check the box below and notify the tutorial author. A Microsoft employee can do this for you if you're an external contributor.

[ ] Yes
[X] No

Type of change

[X] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

Code quality checklist

See CONTRIBUTING.md for more details.

N/A