mirror of
https://github.com/lanqian528/chat2api.git
synced 2026-06-05 21:03:53 +08:00
v1.8.7-beta1 update UI
This commit is contained in:
parent
4cdcbcf84f
commit
7cb6e57143
@ -262,6 +262,49 @@ async def get_me(request: Request):
|
||||
return Response(content=json.dumps(me, indent=4), media_type="application/json")
|
||||
|
||||
|
||||
@app.get("/backend-api/tasks")
|
||||
async def get_me(request: Request):
|
||||
token = request.headers.get("Authorization", "").replace("Bearer ", "")
|
||||
if len(token) == 45 or token.startswith("eyJhbGciOi"):
|
||||
return await chatgpt_reverse_proxy(request, "backend-api/tasks")
|
||||
else:
|
||||
tasks = {
|
||||
"tasks": [],
|
||||
"cursor": None
|
||||
}
|
||||
return Response(content=json.dumps(tasks, indent=4), media_type="application/json")
|
||||
|
||||
|
||||
@app.get("/backend-api/user_system_messages")
|
||||
async def get_me(request: Request):
|
||||
token = request.headers.get("Authorization", "").replace("Bearer ", "")
|
||||
if len(token) == 45 or token.startswith("eyJhbGciOi"):
|
||||
return await chatgpt_reverse_proxy(request, "backend-api/user_system_messages")
|
||||
else:
|
||||
user_system_messages = {
|
||||
"object": "user_system_message_detail",
|
||||
"enabled": True,
|
||||
"about_user_message": "",
|
||||
"about_model_message": "",
|
||||
"name_user_message": "",
|
||||
"role_user_message": "",
|
||||
"traits_model_message": "",
|
||||
"other_user_message": "",
|
||||
"disabled_tools": []
|
||||
}
|
||||
return Response(content=json.dumps(user_system_messages, indent=4), media_type="application/json")
|
||||
|
||||
|
||||
@app.get("/backend-api/memories")
|
||||
async def get_me(request: Request):
|
||||
token = request.headers.get("Authorization", "").replace("Bearer ", "")
|
||||
if len(token) == 45 or token.startswith("eyJhbGciOi"):
|
||||
return await chatgpt_reverse_proxy(request, "backend-api/memories")
|
||||
else:
|
||||
memories = {"memories":[],"memory_max_tokens":10000,"memory_num_tokens":0}
|
||||
return Response(content=json.dumps(memories, indent=4), media_type="application/json")
|
||||
|
||||
|
||||
@app.post("/backend-api/edge")
|
||||
async def edge():
|
||||
return Response(status_code=204)
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -1,48 +1,46 @@
|
||||
[
|
||||
{
|
||||
"_1461": 1462,
|
||||
"_1463": 1464,
|
||||
"_1553": 1468
|
||||
"_1871": 1872,
|
||||
"_1873": 1874,
|
||||
"_1964": 43
|
||||
},
|
||||
"__type",
|
||||
"AccountState",
|
||||
"accountItems",
|
||||
[
|
||||
1465
|
||||
1875
|
||||
],
|
||||
[
|
||||
"SingleFetchClassInstance",
|
||||
1466
|
||||
1876
|
||||
],
|
||||
{
|
||||
"_7": 1467
|
||||
"_1877": 1878
|
||||
},
|
||||
"data",
|
||||
{
|
||||
"_11": 1468,
|
||||
"_1469": 1470,
|
||||
"_1471": 1472,
|
||||
"_13": -5,
|
||||
"_1473": -5,
|
||||
"_1474": -5,
|
||||
"_1475": 1476,
|
||||
"_1477": 1478,
|
||||
"_1479": -5,
|
||||
"_1480": 1481,
|
||||
"_1482": 24,
|
||||
"_1483": 1484,
|
||||
"_1509": 1510,
|
||||
"_1551": 72,
|
||||
"_1552": -5
|
||||
"_21": 43,
|
||||
"_1879": 1880,
|
||||
"_1881": 1882,
|
||||
"_23": -5,
|
||||
"_1883": -5,
|
||||
"_1884": -5,
|
||||
"_46": 47,
|
||||
"_1885": 1886,
|
||||
"_1887": -5,
|
||||
"_1888": 1889,
|
||||
"_1890": 34,
|
||||
"_1891": 1892,
|
||||
"_1918": 1919,
|
||||
"_1962": 71,
|
||||
"_1963": -5
|
||||
},
|
||||
"e8d5afdb-3e65-49ee-8dd2-3877339119d7",
|
||||
"residencyRegion",
|
||||
"no_constraint",
|
||||
"accountUserId",
|
||||
"user-chatgpt__chatgpt",
|
||||
"profilePictureId",
|
||||
"profilePictureUrl",
|
||||
"structure",
|
||||
"personal",
|
||||
"role",
|
||||
"account-owner",
|
||||
"organizationId",
|
||||
@ -51,93 +49,97 @@
|
||||
"deactivated",
|
||||
"subscriptionStatus",
|
||||
{
|
||||
"_1485": -5,
|
||||
"_1486": 72,
|
||||
"_1487": 24,
|
||||
"_1488": 1489,
|
||||
"_1490": 1491,
|
||||
"_1492": 1493,
|
||||
"_1494": 1495,
|
||||
"_1496": -7,
|
||||
"_1497": 72,
|
||||
"_1498": 24,
|
||||
"_1499": -5,
|
||||
"_1500": 1501,
|
||||
"_1507": 24,
|
||||
"_1508": -5
|
||||
"_1893": 1894,
|
||||
"_1895": 71,
|
||||
"_1896": 34,
|
||||
"_1897": 1898,
|
||||
"_1899": 1900,
|
||||
"_44": 45,
|
||||
"_1901": 1902,
|
||||
"_1903": -7,
|
||||
"_1904": 71,
|
||||
"_1905": 71,
|
||||
"_1906": 1907,
|
||||
"_1908": 1909,
|
||||
"_1915": 34,
|
||||
"_1916": -5,
|
||||
"_1917": 34
|
||||
},
|
||||
"billingPeriod",
|
||||
"monthly",
|
||||
"hasPaidSubscription",
|
||||
"isActiveSubscriptionGratis",
|
||||
"billingCurrency",
|
||||
"USD",
|
||||
"subscriptionPlan",
|
||||
"chatgptproplan",
|
||||
"planType",
|
||||
"pro",
|
||||
"subscriptionExpiresAt",
|
||||
"2524579200",
|
||||
"scheduledPlanChange",
|
||||
"wasPaidCustomer",
|
||||
"hasCustomerObject",
|
||||
"processorEntity",
|
||||
"openai_llc",
|
||||
"lastActiveSubscription",
|
||||
{
|
||||
"_1502": 1503,
|
||||
"_1504": 1505,
|
||||
"_1506": 72
|
||||
"_1910": 1911,
|
||||
"_1912": 1913,
|
||||
"_1914": 71
|
||||
},
|
||||
"subscription_id",
|
||||
"31f9d1fd-e8dd-4c4e-815f-b07ec45ca171",
|
||||
"c3f25801-20a7-436e-a143-b42924a6e5ea",
|
||||
"purchase_origin_platform",
|
||||
"chatgpt_mobile_ios",
|
||||
"chatgpt_web",
|
||||
"will_renew",
|
||||
"isResellerHosted",
|
||||
"discount",
|
||||
"isEligibleForCancellationPromotion",
|
||||
"features",
|
||||
[
|
||||
1511,
|
||||
1512,
|
||||
1513,
|
||||
1514,
|
||||
922,
|
||||
1515,
|
||||
1516,
|
||||
1517,
|
||||
1518,
|
||||
1519,
|
||||
1520,
|
||||
1521,
|
||||
1522,
|
||||
1523,
|
||||
1524,
|
||||
1525,
|
||||
1526,
|
||||
1527,
|
||||
1528,
|
||||
1529,
|
||||
1530,
|
||||
1531,
|
||||
1532,
|
||||
23,
|
||||
1533,
|
||||
1534,
|
||||
1535,
|
||||
1536,
|
||||
1537,
|
||||
1538,
|
||||
1539,
|
||||
1540,
|
||||
1541,
|
||||
1542,
|
||||
1543,
|
||||
1544,
|
||||
1545,
|
||||
1546,
|
||||
1547,
|
||||
1548,
|
||||
1549,
|
||||
1550
|
||||
1920,
|
||||
1921,
|
||||
1922,
|
||||
1923,
|
||||
1462,
|
||||
1924,
|
||||
1925,
|
||||
1926,
|
||||
1927,
|
||||
1928,
|
||||
1929,
|
||||
1930,
|
||||
1931,
|
||||
1932,
|
||||
1933,
|
||||
1934,
|
||||
1935,
|
||||
1936,
|
||||
1937,
|
||||
1938,
|
||||
1939,
|
||||
1940,
|
||||
1941,
|
||||
1942,
|
||||
1943,
|
||||
33,
|
||||
1944,
|
||||
1945,
|
||||
1946,
|
||||
1947,
|
||||
1948,
|
||||
1949,
|
||||
1950,
|
||||
1951,
|
||||
1952,
|
||||
1953,
|
||||
1954,
|
||||
1955,
|
||||
1956,
|
||||
1957,
|
||||
1958,
|
||||
1959,
|
||||
1960,
|
||||
1961
|
||||
],
|
||||
"beta_features",
|
||||
"bizmo_settings",
|
||||
@ -159,7 +161,9 @@
|
||||
"gizmo_canvas_toggle",
|
||||
"gizmo_reviews",
|
||||
"gizmo_support_emails",
|
||||
"gpt_4_5",
|
||||
"graphite",
|
||||
"image_gen_tool_enabled",
|
||||
"jawbone_model_access",
|
||||
"model_ab_use_v2",
|
||||
"model_switcher",
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1 +1 @@
|
||||
1.8.6-beta2
|
||||
1.8.7-beta1
|
||||
Loading…
Reference in New Issue
Block a user