It is a Python application that serves as the frontend for Azure Open AI's ChatGPT. It is assumed to be deployed on Azure App Service.
Deploy Python Stack Web Apps
Web Apps > Deployment Center > Setting
- Source : External Git
- Repository : https://github.com/07JP27/openai-client
- Branch : main
- Repository Type : Public
And click Save button.
Web Apps > Configuration > General settings > Startup Command
python -m streamlit run app.py --server.port 8000 --server.address 0.0.0.0
And click Save button.
Web Apps > Configuration > Application settings
- OPENAI_API_ENDPOINT : Your Azure Open AI API endpoint URL
- OPENAI_API_KEY : Your Azure Open AI API key
- OPENAI_API_VERSION : API Vearsion (2023-03-15-preview)
- OPENAI_ENGINE : The model name you deployed
And click Save button.
If you want to set up authentication to client app, Please refer to following document. https://learn.microsoft.com/en-us/azure/app-service/scenario-secure-app-authentication-app-service