Skip to content

Commit cae8e82

Browse files
committed
bugfix: modify postgres password to keep security
1 parent e165cc5 commit cae8e82

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
SECRET_KEY=shizhiyuan_hanxujie_liushiao
33
ACCESS_TOKEN_EXPIRE_MINUTES=1440
44
POSTGRES_USER=postgres
5-
POSTGRES_PASSWORD=postgres
5+
POSTGRES_PASSWORD=shizhiyuan_hanxujie_liushiao
66
POSTGRES_HOST=127.0.0.1
77
POSTGRES_PORT=5432
88
POSTGRES_DB=papers

backend/app/api/v1/endpoints/papers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ async def _handle_paper_qa(
862862
论文内容如下:
863863
{context_text}
864864
865-
请基于以上内容回答用户的问题。如果问题与论文内容无关或无法从论文中找到答案,请礼貌地说明。"""
865+
请基于以上内容回答用户的问题。如果用户提问是英文,则用英文作答;如果提问是中文或其他语言,则使用同样的语言回答。若问题与论文内容无关或无法从论文中找到答案,请礼貌地说明理由。"""
866866
}
867867
]
868868

0 commit comments

Comments
 (0)