Skip to content

Commit

Permalink
update api
Browse files Browse the repository at this point in the history
  • Loading branch information
dairoot committed Nov 9, 2024
1 parent 9b8a212 commit fb9a390
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions backend/app/accounts/views/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
Expand Down
6 changes: 5 additions & 1 deletion docs/chatapi-gateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 名称列表 |




### 免登地址
Expand Down

0 comments on commit fb9a390

Please sign in to comment.