%- include("partials/shared_header", { title: "Import Users - OAI Reverse Proxy Admin" }) %>
Import users from JSON. The JSON should be an array of objects under the key
users. Each object should have the following fields:
token (required): a unique identifier for the usernickname (optional): a nickname for the user, max 80 charsip (optional): IP addresses the user has connected fromtype (optional): either normal or
special
promptCount (optional): the number of times the user has sent a
prompt
tokenCounts (optional): the number of tokens the user has
consumed. This should be an object with keys turbo,
gpt4, and claude.
tokenLimits (optional): the number of tokens the user can
consume. This should be an object with keys turbo,
gpt4, and claude.
createdAt (optional): the timestamp when the user was created
disabledAt (optional): the timestamp when the user was disabled
disabledReason (optional): the reason the user was disabled
If a user with the same token already exists, the existing user will be updated with the new values.
<%- include("partials/admin-footer") %>