diff --git a/backend/app/accounts/views/__init__.py b/backend/app/accounts/views/__init__.py index d3d01e5..eef2f35 100644 --- a/backend/app/accounts/views/__init__.py +++ b/backend/app/accounts/views/__init__.py @@ -22,6 +22,8 @@ def get(self, request): user_account_list = ChatgptAccount.get_by_gptcar_list(user.gptcar_list) chatgpt_username_list = [i.chatgpt_username for i in user_account_list] res = req_gateway("post", "/api/get-mirror-token", json={ + "isolated_session": user.isolated_session, + "limits": user.model_limit, "chatgpt_list": chatgpt_username_list, "user_name": user.username, }) diff --git a/docs/chatapi-gateway.md b/docs/chatapi-gateway.md index 50de9d9..2207d62 100644 --- a/docs/chatapi-gateway.md +++ b/docs/chatapi-gateway.md @@ -121,7 +121,11 @@ POST: /api/get-mirror-token | 字段 | 类型 | 描述 | | ----- | ------ | ----------------------- | | `user_name` | `string` | 用户名称 | - | `chatgpt_list` | `string[]` | ChatGPT 列表 | + | `isolated_session` | `bool` | 独立会话 | + | `limits` | `obj[]` | 模型限制 | + | `chatgpt_list` | `string[]` | ChatGPT 名称列表 | + + ### 免登地址