Skip to content

Server Update 2024-12-08

(This message is synchronized from Discord.)

MJAPI服务器软件进行了较大更新,已经添加finetuned系列模型。这些新模型是经过测试较强的,但是只会给出最佳动作,不会有其他动作的排序或权重。其中一些模型为限时开放,大约20天后将不再继续公开,只会提供给部分经过授权的用户。

The MJAPI server's software has gotten a major update, where the finetuned series of models have been added. The performance of these new models has been thoroughly tested, but they will only suggest best actions, without any weights or ordering of other actions. Some of these models are publicly available only for a limited period of time. They will no longer be generally available after about 20 days, only accessible to authorized users then.

本次更新后,服务器支持基于IP的临时账号,每24小时共5个配额。一个IP初次请求账号后,在24小时内保证访问。24小时后,如果有更多超过配额的临时账号申请,可能会被强制下线。如果没有其他超过配额的临时账号申请,再次经过24小时后,则会再次得到24小时内保证访问。临时账号的session id比较重要,如果申请后丢失,则需要等到之前申请的session id过期后才能再次申请。session id在没有活跃请求时,过期时限约为1小时。在session中登出后,同一个IP可以立即申请新的session id。这是为了避免多个设备共享公共IP时出现其他设备登录而使当前session失效。

After this update, the server supports temporary accounts based on IP. For every 24 hours, the quota is 5 temporary accounts. Once a device with an IP requests a new account for the first time, it is guaranteed access for 24 hours. After 24 hours, if there are new temporary account requests from other IP exceeding the quota, this IP may be forced to log out. If there are no excessive temporary account requests from other IP, this IP can have continued access, and after another 24 hours, it will get guaranteed access for next 24 hours again. The session id's of temporary accounts are important. If you lose it, you need to wait until previous sessions expire before requesting new session id's. The expiration time of sessions is about 1 hour if they are inactive (without active API requests). If you log out actively in a session, you can request new session id's immediately. These rules are to avoid sessions to be invalidated when there are other devices with the same IP requesting temporary accounts.

临时账号请求方法:在API端点/user/trial,输入试用代码FREE_TRIAL_SPONSORED_BY_MJAPI_DiscordID_9ns4esyx. 临时账号每24小时mjai事件请求数限制为2000,并且目前只能使用canary-v1baseline模型。其中canary-v1为限时开放。之后,应该会有一个新模型专门提供给临时账号使用,并且配额数量可能会提高。

The method to request temporary accounts: at API endpoint /user/trial, use the trial code FREE_TRIAL_SPONSORED_BY_MJAPI_DiscordID_9ns4esyx. The limit of the number of mjai event requests is 2000 every 24 hours. Only the canary-v1 and baseline models are accessible, of which the canary-v1 model is available only for a limited time. There should be a new model dedicated for temporary accounts later and the quota may be increased.