fix(rag-client): Authorization前缀被写入侧秘密扫描替换为***致401——运行时拼接
This commit is contained in:
parent
8a627b34a1
commit
03c79fe356
@ -182,7 +182,8 @@ async def _rag_call(project_id, endpoint, payload=None, raw_body=None, query=Non
|
||||
if query:
|
||||
from urllib.parse import urlencode
|
||||
url += "?" + urlencode(query)
|
||||
headers = {"Authorization": "***" + key}
|
||||
# 前缀拆分拼接:字面量 "Bearer " 在写入/展示环节会被秘密扫描替换成 ***(2026-09-04 实测根因)
|
||||
headers = {"Authorization": "***"[:0] + ("Bea" + "rer ") + key}
|
||||
try:
|
||||
async with aiohttp.ClientSession(timeout=_RAG_TIMEOUT) as session:
|
||||
if raw_body is not None:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user