Azure-Samples / Azure-Samples/rag-postgres-openai-python

Add token refresh

未关闭
#13 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
505
派生
1.1k
平均合并
3 天 13 小时
30 天内合并 PR
1

描述

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

贡献指南

打开贡献指南

调研方向

首先检查应用程序的数据库连接设置,并将其与 src/proxy/app/db_manager.py 第 130 行链接的示例进行比较。跟踪 Entra 令牌连接字符串的创建和使用方式,然后确定相关测试,或添加覆盖范围以每六小时刷新一次,同时保持数据库连接可用。

由索引模型根据 Issue 内容生成。

评估

技术栈
azure, postgresql, python
领域
authentication, backend, cloud
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。