Fix(encryption)/aiconfig, exchange config and the encryption setup (#735)

This commit is contained in:
Diego
2025-11-07 19:41:28 -05:00
committed by GitHub
parent 079995e458
commit 8cb19df6de
5 changed files with 164 additions and 146 deletions

View File

@@ -160,8 +160,7 @@ export const api = {
sessionId
)
// 发送加密数据
const res = await fetch(`${API_BASE}/models/encrypted`, {
const res = await fetch(`${API_BASE}/models`, {
method: 'PUT',
headers: getAuthHeaders(),
body: JSON.stringify(encryptedPayload),
@@ -217,8 +216,8 @@ export const api = {
sessionId
)
// 发送加密数据
const res = await fetch(`${API_BASE}/exchanges/encrypted`, {
// 发送加密数据到普通端点
const res = await fetch(`${API_BASE}/exchanges`, {
method: 'PUT',
headers: getAuthHeaders(),
body: JSON.stringify(encryptedPayload),