Azure-Samples / rag-postgres-openai-python

A RAG app to ask questions about rows in a database table. Deployable on Azure Container Apps with PostgreSQL Flexible Server.
MIT License
211 stars 78 forks source link

Add token refresh #13

Open pamelafox opened 4 months ago

pamelafox commented 4 months ago

Entra token connection strings expire every 24, we should refresh every 6. Example:

https://github.com/microsoft/azure-openai-service-proxy/blob/7f9f035c79fefd371b1e6e395b2628363c28b53c/src/proxy/app/db_manager.py#L130