INNER CODE UNIT · TypeScript

password

xiangsx/gpt4free-ts · model/airoom/index.ts:58

      const password = randomStr(10 + Math.floor(Math.random() * 10));
      this.update({ email, password });
      await this.signup();
      await this.login();
      if (!this.info.roomMap) {
        this.update({
          roomMap: {
            [ModelType.GPT3p5_16k]: [],
            [ModelType.GPT41106Preview]: [],
          },
        });
      }
      await this.newRoom(ModelType.GPT41106Preview, true);
      await this.newRoom(ModelType.GPT3p5_16k, true);
    } catch (e: any) {
      if (e?.response?.status === 403 || e?.response?.status === 401) {
        this.destroy({ delFile: true, delMem: true });
      }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…