From ee692abecd481206ffa4b5eef305cdfbaa40fccb Mon Sep 17 00:00:00 2001 From: Aedial Date: Tue, 23 May 2023 23:17:09 +0000 Subject: [PATCH] deploy: 962e6d7ee7b2fdf80b33fc24c336616e0f2aa501 --- .buildinfo | 2 +- _modules/example/boilerplate.html | 6 +++--- _modules/index.html | 6 +++--- _modules/novelai_api/BanList.html | 6 +++--- _modules/novelai_api/BiasGroup.html | 6 +++--- _modules/novelai_api/GlobalSettings.html | 6 +++--- _modules/novelai_api/Idstore.html | 6 +++--- _modules/novelai_api/ImagePreset.html | 6 +++--- _modules/novelai_api/Keystore.html | 6 +++--- _modules/novelai_api/NovelAIError.html | 6 +++--- _modules/novelai_api/NovelAI_API.html | 6 +++--- _modules/novelai_api/Preset.html | 8 +++++--- _modules/novelai_api/SchemaValidator.html | 6 +++--- _modules/novelai_api/StoryHandler.html | 6 +++--- _modules/novelai_api/Tokenizer.html | 7 ++++--- _modules/novelai_api/utils.html | 6 +++--- _modules/tests/api/boilerplate.html | 10 ++++++---- .../test_decrypt_encrypt_integrity_check.html | 6 +++--- _modules/tests/api/test_textgen_presets.html | 6 +++--- _static/documentation_options.js | 2 +- example/example.boilerplate.html | 6 +++--- example/example.html | 6 +++--- genindex.html | 12 +++++++----- index.html | 8 ++++---- novelai_api/novelai_api.BanList.html | 6 +++--- novelai_api/novelai_api.BiasGroup.html | 6 +++--- novelai_api/novelai_api.GlobalSettings.html | 6 +++--- novelai_api/novelai_api.Idstore.html | 6 +++--- novelai_api/novelai_api.ImagePreset.html | 6 +++--- novelai_api/novelai_api.Keystore.html | 6 +++--- novelai_api/novelai_api.NovelAIError.html | 6 +++--- novelai_api/novelai_api.NovelAI_API.html | 6 +++--- novelai_api/novelai_api.Preset.html | 14 ++++++++++---- novelai_api/novelai_api.SchemaValidator.html | 6 +++--- novelai_api/novelai_api.StoryHandler.html | 6 +++--- novelai_api/novelai_api.Tokenizer.html | 6 +++--- novelai_api/novelai_api.html | 6 +++--- novelai_api/novelai_api.utils.html | 6 +++--- objects.inv | Bin 3035 -> 3042 bytes py-modindex.html | 6 +++--- search.html | 6 +++--- searchindex.js | 2 +- tests/api/api.boilerplate.html | 6 +++--- tests/api/api.html | 6 +++--- tests/mock/mock.html | 6 +++--- 45 files changed, 144 insertions(+), 131 deletions(-) diff --git a/.buildinfo b/.buildinfo index e02dc62..dd2fc0e 100644 --- a/.buildinfo +++ b/.buildinfo @@ -1,4 +1,4 @@ # Sphinx build info version 1 # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. -config: b9cba9b3479a3189dfd28818bd5ddec6 +config: 5420c43918c284ea32121936885b66d9 tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/_modules/example/boilerplate.html b/_modules/example/boilerplate.html index 393c0b6..f5fc7a4 100644 --- a/_modules/example/boilerplate.html +++ b/_modules/example/boilerplate.html @@ -5,7 +5,7 @@ - example.boilerplate — NovelAI API 0.12.2 documentation + example.boilerplate — NovelAI API 0.13.0 documentation @@ -43,7 +43,7 @@

Navigation

  • modules |
  • - + @@ -159,7 +159,7 @@

    Navigation

  • modules |
  • - + diff --git a/_modules/index.html b/_modules/index.html index c0e35b8..bd1e1cc 100644 --- a/_modules/index.html +++ b/_modules/index.html @@ -5,7 +5,7 @@ - Overview: module code — NovelAI API 0.12.2 documentation + Overview: module code — NovelAI API 0.13.0 documentation @@ -43,7 +43,7 @@

    Navigation

  • modules |
  • - + @@ -102,7 +102,7 @@

    Navigation

  • modules |
  • - + diff --git a/_modules/novelai_api/BanList.html b/_modules/novelai_api/BanList.html index b12c02c..3353f90 100644 --- a/_modules/novelai_api/BanList.html +++ b/_modules/novelai_api/BanList.html @@ -5,7 +5,7 @@ - novelai_api.BanList — NovelAI API 0.12.2 documentation + novelai_api.BanList — NovelAI API 0.13.0 documentation @@ -43,7 +43,7 @@

    Navigation

  • modules |
  • - + @@ -171,7 +171,7 @@

    Navigation

  • modules |
  • - + diff --git a/_modules/novelai_api/BiasGroup.html b/_modules/novelai_api/BiasGroup.html index 3132fbe..ae9c564 100644 --- a/_modules/novelai_api/BiasGroup.html +++ b/_modules/novelai_api/BiasGroup.html @@ -5,7 +5,7 @@ - novelai_api.BiasGroup — NovelAI API 0.12.2 documentation + novelai_api.BiasGroup — NovelAI API 0.13.0 documentation @@ -43,7 +43,7 @@

    Navigation

  • modules |
  • - + @@ -242,7 +242,7 @@

    Navigation

  • modules |
  • - + diff --git a/_modules/novelai_api/GlobalSettings.html b/_modules/novelai_api/GlobalSettings.html index 8b79412..c9f79c1 100644 --- a/_modules/novelai_api/GlobalSettings.html +++ b/_modules/novelai_api/GlobalSettings.html @@ -5,7 +5,7 @@ - novelai_api.GlobalSettings — NovelAI API 0.12.2 documentation + novelai_api.GlobalSettings — NovelAI API 0.13.0 documentation @@ -43,7 +43,7 @@

    Navigation

  • modules |
  • - + @@ -782,7 +782,7 @@

    Navigation

  • modules |
  • - + diff --git a/_modules/novelai_api/Idstore.html b/_modules/novelai_api/Idstore.html index ae77b4d..1890310 100644 --- a/_modules/novelai_api/Idstore.html +++ b/_modules/novelai_api/Idstore.html @@ -5,7 +5,7 @@ - novelai_api.Idstore — NovelAI API 0.12.2 documentation + novelai_api.Idstore — NovelAI API 0.13.0 documentation @@ -43,7 +43,7 @@

    Navigation

  • modules |
  • - + @@ -126,7 +126,7 @@

    Navigation

  • modules |
  • - + diff --git a/_modules/novelai_api/ImagePreset.html b/_modules/novelai_api/ImagePreset.html index 30f2732..8c8ef6a 100644 --- a/_modules/novelai_api/ImagePreset.html +++ b/_modules/novelai_api/ImagePreset.html @@ -5,7 +5,7 @@ - novelai_api.ImagePreset — NovelAI API 0.12.2 documentation + novelai_api.ImagePreset — NovelAI API 0.13.0 documentation @@ -43,7 +43,7 @@

    Navigation

  • modules |
  • - + @@ -503,7 +503,7 @@

    Navigation

  • modules |
  • - + diff --git a/_modules/novelai_api/Keystore.html b/_modules/novelai_api/Keystore.html index 3461a49..abf1f97 100644 --- a/_modules/novelai_api/Keystore.html +++ b/_modules/novelai_api/Keystore.html @@ -5,7 +5,7 @@ - novelai_api.Keystore — NovelAI API 0.12.2 documentation + novelai_api.Keystore — NovelAI API 0.13.0 documentation @@ -43,7 +43,7 @@

    Navigation

  • modules |
  • - + @@ -258,7 +258,7 @@

    Navigation

  • modules |
  • - + diff --git a/_modules/novelai_api/NovelAIError.html b/_modules/novelai_api/NovelAIError.html index 10abc01..92f025c 100644 --- a/_modules/novelai_api/NovelAIError.html +++ b/_modules/novelai_api/NovelAIError.html @@ -5,7 +5,7 @@ - novelai_api.NovelAIError — NovelAI API 0.12.2 documentation + novelai_api.NovelAIError — NovelAI API 0.13.0 documentation @@ -43,7 +43,7 @@

    Navigation

  • modules |
  • - + @@ -102,7 +102,7 @@

    Navigation

  • modules |
  • - + diff --git a/_modules/novelai_api/NovelAI_API.html b/_modules/novelai_api/NovelAI_API.html index 7420eb4..458e038 100644 --- a/_modules/novelai_api/NovelAI_API.html +++ b/_modules/novelai_api/NovelAI_API.html @@ -5,7 +5,7 @@ - novelai_api.NovelAI_API — NovelAI API 0.12.2 documentation + novelai_api.NovelAI_API — NovelAI API 0.13.0 documentation @@ -43,7 +43,7 @@

    Navigation

  • modules |
  • - + @@ -169,7 +169,7 @@

    Navigation

  • modules |
  • - + diff --git a/_modules/novelai_api/Preset.html b/_modules/novelai_api/Preset.html index 2745434..dad7388 100644 --- a/_modules/novelai_api/Preset.html +++ b/_modules/novelai_api/Preset.html @@ -5,7 +5,7 @@ - novelai_api.Preset — NovelAI API 0.12.2 documentation + novelai_api.Preset — NovelAI API 0.13.0 documentation @@ -43,7 +43,7 @@

    Navigation

  • modules |
  • - + @@ -148,6 +148,8 @@

    Source code for novelai_api.Preset

         Euterpe = "euterpe-v2"
         Krake = "krake-v2"
     
    +    Clio = "clio-v1"
    +
         Genji = "genji-jp-6b-v2"
         Snek = "genji-python-6b"
     
    @@ -629,7 +631,7 @@ 

    Navigation

  • modules |
  • - + diff --git a/_modules/novelai_api/SchemaValidator.html b/_modules/novelai_api/SchemaValidator.html index 814b8bc..4b9b821 100644 --- a/_modules/novelai_api/SchemaValidator.html +++ b/_modules/novelai_api/SchemaValidator.html @@ -5,7 +5,7 @@ - novelai_api.SchemaValidator — NovelAI API 0.12.2 documentation + novelai_api.SchemaValidator — NovelAI API 0.13.0 documentation @@ -43,7 +43,7 @@

    Navigation

  • modules |
  • - + @@ -121,7 +121,7 @@

    Navigation

  • modules |
  • - + diff --git a/_modules/novelai_api/StoryHandler.html b/_modules/novelai_api/StoryHandler.html index 27791ab..6e8a695 100644 --- a/_modules/novelai_api/StoryHandler.html +++ b/_modules/novelai_api/StoryHandler.html @@ -5,7 +5,7 @@ - novelai_api.StoryHandler — NovelAI API 0.12.2 documentation + novelai_api.StoryHandler — NovelAI API 0.13.0 documentation @@ -43,7 +43,7 @@

    Navigation

  • modules |
  • - + @@ -551,7 +551,7 @@

    Navigation

  • modules |
  • - + diff --git a/_modules/novelai_api/Tokenizer.html b/_modules/novelai_api/Tokenizer.html index f5c79a4..2a7bef4 100644 --- a/_modules/novelai_api/Tokenizer.html +++ b/_modules/novelai_api/Tokenizer.html @@ -5,7 +5,7 @@ - novelai_api.Tokenizer — NovelAI API 0.12.2 documentation + novelai_api.Tokenizer — NovelAI API 0.13.0 documentation @@ -43,7 +43,7 @@

    Navigation

  • modules |
  • - + @@ -127,6 +127,7 @@

    Source code for novelai_api.Tokenizer

             Model.Genji: "gpt2-genji",
             Model.HypeBot: "gpt2",
             Model.Inline: "gpt2",
    +        Model.Clio: "nerdstash_v1",
             ImageModel.Anime_Curated: "clip",
             ImageModel.Anime_Full: "clip",
             ImageModel.Furry: "clip",
    @@ -237,7 +238,7 @@ 

    Navigation

  • modules |
  • - + diff --git a/_modules/novelai_api/utils.html b/_modules/novelai_api/utils.html index d258258..d21d71e 100644 --- a/_modules/novelai_api/utils.html +++ b/_modules/novelai_api/utils.html @@ -5,7 +5,7 @@ - novelai_api.utils — NovelAI API 0.12.2 documentation + novelai_api.utils — NovelAI API 0.13.0 documentation @@ -43,7 +43,7 @@

    Navigation

  • modules |
  • - + @@ -428,7 +428,7 @@

    Navigation

  • modules |
  • - + diff --git a/_modules/tests/api/boilerplate.html b/_modules/tests/api/boilerplate.html index e3dd611..15df5a8 100644 --- a/_modules/tests/api/boilerplate.html +++ b/_modules/tests/api/boilerplate.html @@ -5,7 +5,7 @@ - tests.api.boilerplate — NovelAI API 0.12.2 documentation + tests.api.boilerplate — NovelAI API 0.13.0 documentation @@ -43,7 +43,7 @@

    Navigation

  • modules |
  • - + @@ -130,7 +130,7 @@

    Source code for tests.api.boilerplate

             @functools.wraps(func)
             async def wrap(*args, **kwargs):
                 err: Exception = RuntimeError("Error placeholder. Shouldn't happen")
    -            for _ in range(attempts):
    +            for attempt in range(attempts):
                     try:
                         res = await func(*args, **kwargs)
                         await asyncio.sleep(wait)
    @@ -153,6 +153,8 @@ 

    Source code for tests.api.boilerplate

                     if not retry:
                         break
     
    +                print(f"Error: {err}. Try {attempt + 1}/{attempts}")
    +
                     # 10s wait between each retry
                     await asyncio.sleep(10)
     
    @@ -249,7 +251,7 @@ 

    Navigation

  • modules |
  • - + diff --git a/_modules/tests/api/test_decrypt_encrypt_integrity_check.html b/_modules/tests/api/test_decrypt_encrypt_integrity_check.html index 474dd67..35305b2 100644 --- a/_modules/tests/api/test_decrypt_encrypt_integrity_check.html +++ b/_modules/tests/api/test_decrypt_encrypt_integrity_check.html @@ -5,7 +5,7 @@ - tests.api.test_decrypt_encrypt_integrity_check — NovelAI API 0.12.2 documentation + tests.api.test_decrypt_encrypt_integrity_check — NovelAI API 0.13.0 documentation @@ -43,7 +43,7 @@

    Navigation

  • modules |
  • - + @@ -307,7 +307,7 @@

    Navigation

  • modules |
  • - + diff --git a/_modules/tests/api/test_textgen_presets.html b/_modules/tests/api/test_textgen_presets.html index f1578e7..be33e74 100644 --- a/_modules/tests/api/test_textgen_presets.html +++ b/_modules/tests/api/test_textgen_presets.html @@ -5,7 +5,7 @@ - tests.api.test_textgen_presets — NovelAI API 0.12.2 documentation + tests.api.test_textgen_presets — NovelAI API 0.13.0 documentation @@ -43,7 +43,7 @@

    Navigation

  • modules |
  • - + @@ -144,7 +144,7 @@

    Navigation

  • modules |
  • - + diff --git a/_static/documentation_options.js b/_static/documentation_options.js index e54697d..00c110d 100644 --- a/_static/documentation_options.js +++ b/_static/documentation_options.js @@ -1,6 +1,6 @@ var DOCUMENTATION_OPTIONS = { URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'), - VERSION: '0.12.2', + VERSION: '0.13.0', LANGUAGE: 'en', COLLAPSE_INDEX: false, BUILDER: 'html', diff --git a/example/example.boilerplate.html b/example/example.boilerplate.html index 7b7afab..1a2b778 100644 --- a/example/example.boilerplate.html +++ b/example/example.boilerplate.html @@ -6,7 +6,7 @@ - boilerplate — NovelAI API 0.12.2 documentation + boilerplate — NovelAI API 0.13.0 documentation @@ -52,7 +52,7 @@

    Navigation

  • previous |
  • - + @@ -186,7 +186,7 @@

    Navigation

  • previous |
  • - + diff --git a/example/example.html b/example/example.html index 5bd3462..9f5fc02 100644 --- a/example/example.html +++ b/example/example.html @@ -6,7 +6,7 @@ - example directory — NovelAI API 0.12.2 documentation + example directory — NovelAI API 0.13.0 documentation @@ -52,7 +52,7 @@

    Navigation

  • previous |
  • - +
    @@ -284,7 +284,7 @@

    Navigation

  • previous |
  • - +
    diff --git a/genindex.html b/genindex.html index bb33e66..55bc195 100644 --- a/genindex.html +++ b/genindex.html @@ -5,7 +5,7 @@ - Index — NovelAI API 0.12.2 documentation + Index — NovelAI API 0.13.0 documentation @@ -43,7 +43,7 @@

    Navigation

  • modules |
  • - +
    @@ -204,6 +204,8 @@

    C

  • calculate_cost() (ImagePreset method)
  • choose() (NovelAIStory method) +
  • +
  • Clio (Model attribute)
  • collapse_model() (in module novelai_api.Preset)
  • @@ -214,11 +216,11 @@

    C

  • controlnet_condition (ImagePreset attribute)
  • controlnet_model (ImagePreset attribute) -
  • -
  • controlnet_strength (ImagePreset attribute)
  • diff --git a/index.html b/index.html index 40c0770..e8db6dc 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ - novelai-api — NovelAI API 0.12.2 documentation + novelai-api — NovelAI API 0.13.0 documentation @@ -48,7 +48,7 @@

    Navigation

  • next |
  • - + @@ -79,7 +79,7 @@

    novelai-apiGitHub top language Libraries.io dependency status for GitHub repo GitHub repo size Pypi package size GitHub issues GitHub pull requests

    Activity

    -

    GitHub last commit GitHub commits since tagged version GitHub commit activity

    +

    GitHub last commit GitHub commits since tagged version GitHub commit activity

    @@ -354,7 +354,7 @@

    Navigation

  • next |
  • - + diff --git a/novelai_api/novelai_api.BanList.html b/novelai_api/novelai_api.BanList.html index 81441ed..c8beae7 100644 --- a/novelai_api/novelai_api.BanList.html +++ b/novelai_api/novelai_api.BanList.html @@ -6,7 +6,7 @@ - novelai_api.BanList — NovelAI API 0.12.2 documentation + novelai_api.BanList — NovelAI API 0.13.0 documentation @@ -52,7 +52,7 @@

    Navigation

  • previous |
  • - + @@ -177,7 +177,7 @@

    Navigation

  • previous |
  • - + diff --git a/novelai_api/novelai_api.BiasGroup.html b/novelai_api/novelai_api.BiasGroup.html index 125d3f5..0f6d256 100644 --- a/novelai_api/novelai_api.BiasGroup.html +++ b/novelai_api/novelai_api.BiasGroup.html @@ -6,7 +6,7 @@ - novelai_api.BiasGroup — NovelAI API 0.12.2 documentation + novelai_api.BiasGroup — NovelAI API 0.13.0 documentation @@ -52,7 +52,7 @@

    Navigation

  • previous |
  • - + @@ -206,7 +206,7 @@

    Navigation

  • previous |
  • - + diff --git a/novelai_api/novelai_api.GlobalSettings.html b/novelai_api/novelai_api.GlobalSettings.html index 776de77..d6c7abf 100644 --- a/novelai_api/novelai_api.GlobalSettings.html +++ b/novelai_api/novelai_api.GlobalSettings.html @@ -6,7 +6,7 @@ - novelai_api.GlobalSettings — NovelAI API 0.12.2 documentation + novelai_api.GlobalSettings — NovelAI API 0.13.0 documentation @@ -52,7 +52,7 @@

    Navigation

  • previous |
  • - + @@ -206,7 +206,7 @@

    Navigation

  • previous |
  • - + diff --git a/novelai_api/novelai_api.Idstore.html b/novelai_api/novelai_api.Idstore.html index cc0cc3d..168abce 100644 --- a/novelai_api/novelai_api.Idstore.html +++ b/novelai_api/novelai_api.Idstore.html @@ -6,7 +6,7 @@ - novelai_api.Idstore — NovelAI API 0.12.2 documentation + novelai_api.Idstore — NovelAI API 0.13.0 documentation @@ -52,7 +52,7 @@

    Navigation

  • previous |
  • - + @@ -163,7 +163,7 @@

    Navigation

  • previous |
  • - + diff --git a/novelai_api/novelai_api.ImagePreset.html b/novelai_api/novelai_api.ImagePreset.html index ba57108..d191566 100644 --- a/novelai_api/novelai_api.ImagePreset.html +++ b/novelai_api/novelai_api.ImagePreset.html @@ -6,7 +6,7 @@ - novelai_api.ImagePreset — NovelAI API 0.12.2 documentation + novelai_api.ImagePreset — NovelAI API 0.13.0 documentation @@ -52,7 +52,7 @@

    Navigation

  • previous |
  • - + @@ -640,7 +640,7 @@

    Navigation

  • previous |
  • - + diff --git a/novelai_api/novelai_api.Keystore.html b/novelai_api/novelai_api.Keystore.html index c81e925..6028af0 100644 --- a/novelai_api/novelai_api.Keystore.html +++ b/novelai_api/novelai_api.Keystore.html @@ -6,7 +6,7 @@ - novelai_api.Keystore — NovelAI API 0.12.2 documentation + novelai_api.Keystore — NovelAI API 0.13.0 documentation @@ -52,7 +52,7 @@

    Navigation

  • previous |
  • - + @@ -181,7 +181,7 @@

    Navigation

  • previous |
  • - + diff --git a/novelai_api/novelai_api.NovelAIError.html b/novelai_api/novelai_api.NovelAIError.html index 65a4693..6123f53 100644 --- a/novelai_api/novelai_api.NovelAIError.html +++ b/novelai_api/novelai_api.NovelAIError.html @@ -6,7 +6,7 @@ - novelai_api.NovelAIError — NovelAI API 0.12.2 documentation + novelai_api.NovelAIError — NovelAI API 0.13.0 documentation @@ -52,7 +52,7 @@

    Navigation

  • previous |
  • - + @@ -159,7 +159,7 @@

    Navigation

  • previous |
  • - + diff --git a/novelai_api/novelai_api.NovelAI_API.html b/novelai_api/novelai_api.NovelAI_API.html index 84edd5a..ca97875 100644 --- a/novelai_api/novelai_api.NovelAI_API.html +++ b/novelai_api/novelai_api.NovelAI_API.html @@ -6,7 +6,7 @@ - novelai_api.NovelAI_API — NovelAI API 0.12.2 documentation + novelai_api.NovelAI_API — NovelAI API 0.13.0 documentation @@ -52,7 +52,7 @@

    Navigation

  • previous |
  • - + @@ -225,7 +225,7 @@

    Navigation

  • previous |
  • - + diff --git a/novelai_api/novelai_api.Preset.html b/novelai_api/novelai_api.Preset.html index 5722d25..e8eece6 100644 --- a/novelai_api/novelai_api.Preset.html +++ b/novelai_api/novelai_api.Preset.html @@ -6,7 +6,7 @@ - novelai_api.Preset — NovelAI API 0.12.2 documentation + novelai_api.Preset — NovelAI API 0.13.0 documentation @@ -52,7 +52,7 @@

    Navigation

  • previous |
  • - + @@ -157,6 +157,11 @@

    Navigation

    Krake = 'krake-v2'¶
    +
    +
    +Clio = 'clio-v1'¶
    +
    +
    Genji = 'genji-jp-6b-v2'¶
    @@ -179,7 +184,7 @@

    Navigation

    -enum_member_values = {'6B': Model.Sigurd, 'euterpe': Model.Euterpe, 'genji-jp-6b': Model.Genji, 'genji-python-6b': Model.Snek, 'hypebot': Model.HypeBot, 'infillmodel': Model.Inline, 'krake': Model.Krake}¶
    +enum_member_values = {'6B': Model.Sigurd, 'clio': Model.Clio, 'euterpe': Model.Euterpe, 'genji-jp-6b': Model.Genji, 'genji-python-6b': Model.Snek, 'hypebot': Model.HypeBot, 'infillmodel': Model.Inline, 'krake': Model.Krake}¶
    @@ -490,6 +495,7 @@

    Table of Contents

  • Model.Sigurd
  • Model.Euterpe
  • Model.Krake
  • +
  • Model.Clio
  • Model.Genji
  • Model.Snek
  • Model.HypeBot
  • @@ -592,7 +598,7 @@

    Navigation

  • previous |
  • - + diff --git a/novelai_api/novelai_api.SchemaValidator.html b/novelai_api/novelai_api.SchemaValidator.html index 3f5bcba..4150b5d 100644 --- a/novelai_api/novelai_api.SchemaValidator.html +++ b/novelai_api/novelai_api.SchemaValidator.html @@ -6,7 +6,7 @@ - novelai_api.SchemaValidator — NovelAI API 0.12.2 documentation + novelai_api.SchemaValidator — NovelAI API 0.13.0 documentation @@ -52,7 +52,7 @@

    Navigation

  • previous |
  • - + @@ -150,7 +150,7 @@

    Navigation

  • previous |
  • - + diff --git a/novelai_api/novelai_api.StoryHandler.html b/novelai_api/novelai_api.StoryHandler.html index 026b9a5..1e82706 100644 --- a/novelai_api/novelai_api.StoryHandler.html +++ b/novelai_api/novelai_api.StoryHandler.html @@ -6,7 +6,7 @@ - novelai_api.StoryHandler — NovelAI API 0.12.2 documentation + novelai_api.StoryHandler — NovelAI API 0.13.0 documentation @@ -52,7 +52,7 @@

    Navigation

  • previous |
  • - + @@ -381,7 +381,7 @@

    Navigation

  • previous |
  • - + diff --git a/novelai_api/novelai_api.Tokenizer.html b/novelai_api/novelai_api.Tokenizer.html index 7c354d9..d9d06e2 100644 --- a/novelai_api/novelai_api.Tokenizer.html +++ b/novelai_api/novelai_api.Tokenizer.html @@ -6,7 +6,7 @@ - novelai_api.Tokenizer — NovelAI API 0.12.2 documentation + novelai_api.Tokenizer — NovelAI API 0.13.0 documentation @@ -52,7 +52,7 @@

    Navigation

  • previous |
  • - + @@ -234,7 +234,7 @@

    Navigation

  • previous |
  • - + diff --git a/novelai_api/novelai_api.html b/novelai_api/novelai_api.html index 158705f..b509a74 100644 --- a/novelai_api/novelai_api.html +++ b/novelai_api/novelai_api.html @@ -6,7 +6,7 @@ - novelai-api package — NovelAI API 0.12.2 documentation + novelai-api package — NovelAI API 0.13.0 documentation @@ -52,7 +52,7 @@

    Navigation

  • previous |
  • - + @@ -204,7 +204,7 @@

    Navigation

  • previous |
  • - + diff --git a/novelai_api/novelai_api.utils.html b/novelai_api/novelai_api.utils.html index 2df4a91..a7cdf03 100644 --- a/novelai_api/novelai_api.utils.html +++ b/novelai_api/novelai_api.utils.html @@ -6,7 +6,7 @@ - novelai_api.utils — NovelAI API 0.12.2 documentation + novelai_api.utils — NovelAI API 0.13.0 documentation @@ -52,7 +52,7 @@

    Navigation

  • previous |
  • - + @@ -251,7 +251,7 @@

    Navigation

  • previous |
  • - + diff --git a/objects.inv b/objects.inv index 523594de8b0f9817eeed0e9c4aa78133d3e17bca..6ddde0d71c851d28cf4d7dbe27e56040f88b40c6 100644 GIT binary patch delta 1161 zcmV;41a|w|7vdMN7X}pjLJ7CEthMM|>j?W1U2EMtGoRm+BnBaW4EzkTB?$C}X<=Wv zS|FZ8YB!8-t2KN5w(uRl*(+qZnL}C#@UP8tbQ47Ndl1!U|Ejy3B<2I0M`il~FKe;c z*ZH@bKOSBe-lOT(2)CDAa#=0MLL~JcY3nJ4_L3=i(=A;yx|RdO)P7XY9#Jhe^&D>q zYUpY)Y0qXJo}{gRC(AhM^3{qYr24?&Tf3UCV!y=JUY?edl)^cnnNmufCPKMsn}&4& zWx~S6+GW1f^|{O5e{L79BsqM<^g2uo>2g4hncw6qCW||d+l-=!9bm(QrdURW1+;H z6`3a+B%D&5OE@e`Ywf)^Lbn{yF^kYJVbX)_BH2KOe_~3sOId#2?L0F$8ru!q!@Fed zUYsMx%@MsW5Z|gR@JQ5mcE4km)^pu1XH@Hf;aqA5tjFui->mZIgkmk<49lP&PhaQO z>$;Qh2PhSpH3VjfnQ3{-C@g{{#37j-H>zDhlPw4(e``|&kU~iz1Tck^?u~^9mK!Y{ z^*Ta3V7-HM1k8ToWN4OC!*>iQ7qB89kw^|J7{`zVq&&EvOZ*o8Ws*(%EVRi=P-}PW z(7dK73e724cvmog>ZzXro6$8TTEnv8#c5wQG>19f9%%9Fs)kI`SXD_wj97a$NVENZ ztgI}zfBG-KJPOEoJQp%t84D(LOFL1qXa)0_fv@!*#dd=l`_O|U8i!Dede_ru0*O^Y z+yPiByA{4yGEy+7gM=gi^G`U+UvJhwT!pa8;VP&_j`rvlsQK(YmQ*N0?e^s^Lk_-4 zRR}EBoS_Y_c3!s_bZ!avD=z=_Po47CmeW2&9TT3JzJx@D)aGnvnD|gOP8LwxEY%94 z={>Uby0VjP2_g#TYxz*7gl(HMl#`hWB!B28X?j{`PnRo0{99TQ?OU(S^ran90=12CDtn&%E#F-*Fq^87B3Seuq1QiGR5= z0sA3_z?k}I!N8RI?7`5K`f$SVlxB2yB&ys6cMYunq(LXQHLtxnljeE_^O@7crSGuG zF+#PAq3*7{QwxLyao+E(hYCMz delta 1065 zcmV+^1lIfF7uy%G7X}TRYhw!g!B=bDJ2Um(lPd-xe`NU#vLy)ghG}764_Y9eL~1wU zZL2kV{kHHOzu7BfxtZ=+2=K4Xb956#^?MN2XaB0ZoFwL3nMY;&u_hjf!B&7Nl;aj_!T4KK%)?S{L^NGSapqc$io#rgLX`4210A<3$#oA?p zw7o3DAq>Hr28&Yzff5HC4^hv% zPFQtO&Jhk_h8%6f$mRiL>z+{nX@^O(lX(XpB&;B7ZId@bw;a$h>%}l((u3?G*+7PW zVoJ12S$>J_JTo|O+LOEo8X?otE@xEhf#F=Y(P{-wey3A5UNB)=RLH z_Xj8yL^T9viJ576$|x*?CBz|_%`vJCJd-pCC4a$E1du{WAp|gml$+Q^R)*C>O9IACX87iw(z+1f)E;pG*7}{$-L)`z*A{N>FPf>(IQW zC<@IfSa?@3f9hG90h`e^C0fI>;l*iRHZ+In*dA!{>#BxK(pXhVLyTB^HAu5leypr4 zcYozCzdQ=acsv&}Tp0@{bxS)@v1kSJn1QeLcEWap8vD?LBN~TLi+Y37X99^;LEHgY zD!UcFS29vC2YG}f0P{~c%3p8RKU{^d%Hb-gMUJ-97O45`J(g4`LhZKDE<+B!NmU3e z)|{aYt~N=x7<6t4_bV>{^-rDh*6z?gL>&{JnZATXh1BM3W|;U;Hcl2$+pMYzqUk-d z^%Ag?bO|B~M`8I;ri5*q1xR{2f_K!>pckWYGM8Vx?y12_Z<)Sporv-CB9_)POQ6H z49xo0I+kLLXnBlUQ(HF`A<>1$TA0by$p)&e($Bo_=ihM~;Tb0N>3fGegNZh|G6DM` zhQOHm6u`ig`k27bl=>XO@RVkBcO7W5IX>ok1@oEH#HH_C$dh>r z9~+$RH=E#=Ad)33b;|202OQz9TSemNO9P?NI?N?jbHXQSOdZ*SUjV{-9yFDuH? zQDD>FTNAsJb!>1wXYowW-=ADKAI65*K1ycVb7Nw$QI8d;v#-ze%+1NAO - Python Module Index — NovelAI API 0.12.2 documentation + Python Module Index — NovelAI API 0.13.0 documentation @@ -46,7 +46,7 @@

    Navigation

  • modules |
  • - + @@ -300,7 +300,7 @@

    Navigation

  • modules |
  • - + diff --git a/search.html b/search.html index fc1f12d..d4f92fe 100644 --- a/search.html +++ b/search.html @@ -5,7 +5,7 @@ - Search — NovelAI API 0.12.2 documentation + Search — NovelAI API 0.13.0 documentation @@ -49,7 +49,7 @@

    Navigation

  • modules |
  • - + @@ -109,7 +109,7 @@

    Navigation

  • modules |
  • - + diff --git a/searchindex.js b/searchindex.js index 4385737..0929caa 100644 --- a/searchindex.js +++ b/searchindex.js @@ -1 +1 @@ -Search.setIndex({"docnames": ["example/example", "example/example.boilerplate", "index", "novelai_api/novelai_api", "novelai_api/novelai_api.BanList", "novelai_api/novelai_api.BiasGroup", "novelai_api/novelai_api.GlobalSettings", "novelai_api/novelai_api.Idstore", "novelai_api/novelai_api.ImagePreset", "novelai_api/novelai_api.Keystore", "novelai_api/novelai_api.NovelAIError", "novelai_api/novelai_api.NovelAI_API", "novelai_api/novelai_api.Preset", "novelai_api/novelai_api.SchemaValidator", "novelai_api/novelai_api.StoryHandler", "novelai_api/novelai_api.Tokenizer", "novelai_api/novelai_api.utils", "tests/api/api", "tests/api/api.boilerplate", "tests/mock/mock"], "filenames": ["example/example.rst", "example/example.boilerplate.rst", "index.rst", "novelai_api/novelai_api.rst", "novelai_api/novelai_api.BanList.rst", "novelai_api/novelai_api.BiasGroup.rst", "novelai_api/novelai_api.GlobalSettings.rst", "novelai_api/novelai_api.Idstore.rst", "novelai_api/novelai_api.ImagePreset.rst", "novelai_api/novelai_api.Keystore.rst", "novelai_api/novelai_api.NovelAIError.rst", "novelai_api/novelai_api.NovelAI_API.rst", "novelai_api/novelai_api.Preset.rst", "novelai_api/novelai_api.SchemaValidator.rst", "novelai_api/novelai_api.StoryHandler.rst", "novelai_api/novelai_api.Tokenizer.rst", "novelai_api/novelai_api.utils.rst", "tests/api/api.rst", "tests/api/api.boilerplate.rst", "tests/mock/mock.rst"], "titles": ["example directory", "boilerplate", "novelai-api", "novelai-api package", "novelai_api.BanList", "novelai_api.BiasGroup", "novelai_api.GlobalSettings", "novelai_api.Idstore", "novelai_api.ImagePreset", "novelai_api.Keystore", "novelai_api.NovelAIError", "novelai_api.NovelAI_API", "novelai_api.Preset", "novelai_api.SchemaValidator", "novelai_api.StoryHandler", "novelai_api.Tokenizer", "novelai_api.utils", "API directory", "boilerplate", "Mock directory"], "terms": {"nai_usernam": [0, 17], "nai_password": [0, 17], "valu": [0, 5, 6, 8, 12, 17], "provid": [0, 7, 8, 10, 12, 15, 17, 18], "via": [0, 17], "environ": [0, 17], "variabl": [0, 17], "thei": [0, 17], "can": [0, 2, 4, 5, 17], "through": [0, 2, 17], "env": [0, 17], "file": [0, 8, 12, 17], "root": [0, 17], "project": [0, 17], "The": [0, 2, 8, 9, 12, 17, 18], "nai_proxi": [0, 17], "i": [0, 2, 4, 5, 6, 8, 9, 12, 15, 17, 18], "also": [0, 8, 17], "support": [0, 1, 17, 18], "inject": [0, 17], "proxi": [0, 11, 14, 17], "address": [0, 17], "If": [0, 16], "you": [0, 2], "have": [0, 16], "novelai": [0, 8, 11], "api": [0, 1, 10, 11, 12, 14, 18], "packag": [0, 2], "instal": [0, 2, 17], "pip": [0, 2], "python": [0, 2, 12], "filenam": [0, 17], "don": 0, "t": [0, 2, 7, 14, 15, 16], "re": 0, "activ": [0, 2], "develop": 0, "poetri": [0, 2, 17], "run": [0, 2, 17, 18], "rememb": [0, 17], "befor": [0, 2, 17, 18], "alreadi": [0, 16, 17], "done": [0, 17], "how": 0, "download": [0, 2, 17], "decrypt": [0, 2, 9, 16, 17], "modul": 0, "from": [0, 2, 5, 6, 8, 9, 12, 14], "account": [0, 2, 6, 8], "decompress": [0, 16, 17], "shelv": [0, 17], "stori": [0, 2, 14, 16, 17], "queri": 0, "controlnet": [0, 2, 8], "mask": [0, 2, 8], "an": [0, 5, 6, 8, 12, 16, 18], "imag": [0, 8], "It": [0, 2], "expect": [0, 10], "result": [0, 17], "png": [0, 8], "exist": [0, 14], "gener": [0, 6, 8, 12, 14, 17], "thi": [0, 2, 14, 15, 17], "same": [0, 12], "folder": [0, 17], "note": 0, "current": [0, 6, 8, 11, 12, 17], "return": [0, 4, 5, 6, 7, 8, 12, 14, 15], "wrong": 0, "due": 0, "convers": 0, "frontend": [0, 2, 17], "see": 0, "issu": 0, "15": 0, "place": 0, "name": [0, 12, 13, 15, 17], "test": [0, 17, 18], "which": [0, 17], "sampler": [0, 8, 17], "work": [0, 8, 11, 12, 17], "creat": [0, 4, 5, 6, 7, 8, 9, 14], "one": [0, 2, 8, 12], "per": 0, "control": 0, "net": [0, 2, 8, 11], "img2img": [0, 8], "text": [0, 2, 6, 15], "direct": 0, "standard": 0, "error": [0, 10, 18], "output": [0, 2], "stderr": 0, "voic": 0, "tt": 0, "To": [0, 2], "speech": 0, "audio": 0, "sampl": [0, 8, 12], "input": [0, 2], "limit": 0, "1000": 0, "charact": 0, "cut": 0, "backend": [0, 2], "tag": 0, "suggest": 0, "gen": 0, "upscal": 0, "should": [0, 2, 9, 12, 14], "512x768": 0, "default": [0, 1, 8, 12, 18], "modifi": 0, "image_s": 0, "chang": 0, "boilerpl": [0, 17], "jsonencod": [0, 1, 17, 18], "dump": [0, 1, 17, 18], "class": [1, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 17, 18], "sourc": [1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "base": [1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18], "object": [1, 2, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 17, 18], "redund": 1, "part": 1, "__init__": [1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18], "logger": [1, 11, 18], "log": [1, 11, 18], "option": [1, 8, 9, 11, 12, 14, 16, 18], "novelai_api": [1, 2, 3, 18], "novelaiapi": [1, 2, 3, 11, 14, 18], "properti": [1, 11, 18], "encryption_kei": [1, 18], "json": [1, 18], "encod": [1, 2, 8, 15, 18], "extend": [1, 18], "byte": [1, 9, 12, 14, 16, 18], "o": [1, 12, 15, 16, 18], "ani": [1, 2, 5, 6, 8, 9, 12, 13, 14, 16, 18], "e": [1, 18], "str": [1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18], "shortcut": [1, 18], "configur": [1, 8, 18], "consist": [1, 17, 18], "rest": 2, "intend": 2, "helper": [2, 11], "": [2, 15, 17], "categori": 2, "badg": 2, "pypi": 2, "qualiti": 2, "stat": 2, "login": 2, "endpoint": 2, "m": 2, "get_access_kei": [2, 3, 16], "usernam": 2, "password": [2, 16], "valid": [2, 12, 13], "30": 2, "dai": 2, "requir": 2, "most": 2, "get_access_token": 2, "user": 2, "content": 2, "print": 2, "what": 2, "couldn": 2, "sanity_check": 2, "b64": [2, 8, 16], "model": [2, 3, 4, 5, 6, 8, 12, 14, 15, 16], "data": [2, 5, 9, 12, 16], "A": 2, "full": 2, "list": [2, 4, 5, 12, 14, 15, 16], "avail": 2, "directori": 2, "split": 2, "2": [2, 8, 12, 14], "group": [2, 5], "low": 2, "level": 2, "interfac": 2, "strict": 2, "implement": 2, "offici": [2, 12], "http": [2, 8, 11, 12], "onli": [2, 5, 12, 17], "type": [2, 8], "assert": 2, "schema": 2, "is_schema_validation_en": 2, "true": [2, 4, 5, 12], "high": [2, 8], "build": 2, "easier": 2, "handl": [2, 15, 18], "complex": 2, "set": [2, 6, 8, 12], "mani": 2, "task": 2, "all": [2, 17], "relev": [2, 12], "ar": [2, 12], "venv": 2, "manag": [2, 8], "featur": 2, "enhanc": 2, "pr": 2, "pass": 2, "pre": 2, "commit": 2, "submiss": 2, "hook": 2, "nai": [2, 8, 10, 17], "warn": 2, "wip": 2, "doe": [2, 14, 16], "yet": [2, 7], "local": 2, "viewabl": 2, "html": [2, 8], "index": [2, 14], "ci": 2, "context": 2, "flake2pylint": 2, "banlist": [2, 3, 14], "biasgroup": [2, 3, 14], "globalset": [2, 3, 14], "idstor": [2, 3, 14], "imagepreset": [2, 3, 15], "keystor": [2, 3, 14, 16, 17], "novelaierror": [2, 3], "preset": [2, 3, 4, 5, 6, 8, 14, 15, 16, 17], "schemavalid": [2, 3], "storyhandl": [2, 3], "util": [2, 3, 9], "imagemodel": [3, 8, 15], "controlnetmodel": [3, 8], "imageresolut": [3, 8], "imagesampl": [3, 8], "ucpreset": [3, 8], "imagegenerationtyp": [3, 8], "order": [3, 12], "enum_contain": [3, 12], "collapse_model": [3, 12], "strenum": [3, 12], "presetview": [3, 12], "novelaistori": [3, 14], "novelaistorystorag": [3, 14], "token": [3, 4, 5, 6, 12, 16], "sentencepiec": [3, 15], "argon_hash": [3, 16], "get_encryption_kei": [3, 9, 16], "decrypt_data": [3, 16], "encrypt_data": [3, 16], "decompress_user_data": [3, 16], "compress_user_data": [3, 16], "decrypt_user_data": [3, 16], "encrypt_user_data": [3, 16], "link_content_to_stori": [3, 16], "unlink_content_from_stori": [3, 16], "get_decrypted_user_data": [3, 16], "tokens_to_b64": [3, 16], "b64_to_token": [3, 16], "extract_preset_data": [3, 16], "tokenize_if_not": [3, 16], "sequenc": [4, 5, 12], "union": [4, 5, 8, 11, 12, 15, 16], "int": [4, 5, 6, 8, 10, 12, 14, 15, 16, 18], "enabl": [4, 5, 8, 12], "bool": [4, 5, 6, 8, 12, 14, 16, 18], "ban": 4, "given": [4, 12], "element": [4, 5], "string": [4, 5], "us": [4, 5, 6, 8, 12, 15, 17, 18], "recommend": [4, 5], "flexibl": [4, 5], "between": [4, 5], "paramet": [4, 5, 6, 8, 9, 12, 14, 15, 16, 18], "add": [4, 5, 15, 18], "dict": [4, 5, 6, 8, 9, 12, 14, 16], "get_tokenized_entri": [4, 5], "iter": [4, 5, 16], "bia": 5, "float": [5, 8, 11, 12], "ensure_sequence_finish": 5, "fals": [5, 12, 14, 16, 18], "generate_onc": 5, "neg": 5, "downbia": 5, "posit": 5, "upbia": 5, "ensur": [5, 17], "complet": 5, "bias": [5, 6, 14], "first": [5, 18], "occurr": 5, "classmethod": [5, 8, 12, 13, 15], "from_data": 5, "store": [6, 8, 12], "global": 6, "generate_until_sent": 6, "up": 6, "20": 6, "after": [6, 18], "max_length": [6, 12], "end": [6, 14], "sentenc": 6, "found": [6, 12], "within": 6, "num_logprob": 6, "number": [6, 8, 12, 18], "logprob": 6, "each": [6, 15, 16, 18], "no_logprob": 6, "disabl": [6, 12], "ban_bracket": 6, "appli": 6, "bracket": 6, "bias_dinkus_aster": 6, "dinkus_aster": 6, "ban_ambiguous_genji_token": 6, "genji_ambiguous_token": 6, "genji": [6, 12], "1": [6, 8, 10, 12, 17], "copi": [6, 8, 12], "new": [6, 7, 8, 9, 12], "to_set": [6, 8, 12], "regist": 7, "arg": 7, "id": [7, 14], "everi": 7, "item": [7, 16], "must": [7, 16, 18], "retriev": [7, 16], "download_user_cont": 7, "uniqu": 7, "hasn": 7, "been": [7, 16], "enum": [8, 12], "low_level": [8, 11], "suggest_tag": 8, "generate_imag": 8, "anime_cur": 8, "safe": 8, "diffus": 8, "anime_ful": 8, "furri": 8, "anime_inpaint": 8, "anim": 8, "inpaint": 8, "controlnet_model": 8, "generate_controlnet_mask": 8, "palette_swap": 8, "hed": 8, "form_lock": 8, "mida": 8, "scribl": 8, "fake_scribbl": 8, "building_control": 8, "mlsd": 8, "lanscap": 8, "uniform": 8, "resolut": 8, "small_portrait": 8, "384": 8, "640": 8, "small_landscap": 8, "small_squar": 8, "512": 8, "normal_portrait": 8, "768": 8, "normal_landscap": 8, "normal_squar": 8, "large_portrait": 8, "1024": 8, "large_landscap": 8, "large_squar": 8, "k_lm": 8, "k_euler": 8, "k_euler_ancestr": 8, "k_heun": 8, "plm": 8, "ddim": 8, "nai_smea": 8, "nai_smea_dyn": 8, "k_dpmpp_2m": 8, "k_dpmpp_2s_ancestr": 8, "k_dpmpp_sde": 8, "k_dpm_2": 8, "k_dpm_2_ancestr": 8, "k_dpm_adapt": 8, "k_dpm_fast": 8, "uc": 8, "uc_preset": 8, "preset_low_quality_bad_anatomi": 8, "0": [8, 12], "preset_low_qu": 8, "preset_bad_anatomi": 8, "preset_non": 8, "3": [8, 12], "normal": 8, "quality_toggl": 8, "doc": [8, 12], "qualitytag": 8, "tupl": [8, 16], "width": 8, "height": 8, "prepend": 8, "n_sampl": 8, "seed": 8, "random": [8, 9, 12], "ith": 8, "ha": [8, 16], "nois": 8, "strengthnois": 8, "strength": 8, "scale": 8, "stepsguid": 8, "call": [8, 18], "prompt": 8, "guidanc": 8, "step": 8, "undesiredcont": 8, "smea": 8, "make": [8, 11], "larg": 8, "smea_dyn": 8, "dyn": 8, "best": 8, "wallpap": 8, "controlnet_condit": 8, "gotten": 8, "method": [8, 15, 16], "controlnet_strength": 8, "influenc": 8, "chosen": [8, 12, 15], "decrisp": 8, "reduc": 8, "deepfri": 8, "effect": 8, "twitter": 8, "com": [8, 12], "birchlab": 8, "statu": [8, 10], "1582165379832348672": 8, "last_se": 8, "when": [8, 10], "metadata": 8, "might": 8, "hassl": 8, "updat": [8, 12], "none": [8, 10, 11, 12, 14, 16, 18], "kwarg": [8, 12], "like": [8, 12], "instanc": [8, 14], "function": [8, 12, 18], "get": [8, 12, 15], "get_max_n_sampl": 8, "allow": [8, 12], "max": 8, "calculate_cost": 8, "is_opu": 8, "calcul": 8, "cost": 8, "anla": 8, "subscript": 8, "tier": 8, "opu": 8, "free": [8, 14], "so": 8, "from_fil": [8, 12], "path": [8, 12], "write": [8, 12], "read": 8, "to_fil": [8, 12], "load": [8, 14], "meta": [9, 14], "assign": 9, "nonc": [9, 16], "kei": [9, 12, 14, 16], "encrypt": [9, 16, 17], "comput": 9, "except": 10, "rais": [10, 18], "problem": [10, 17], "occur": 10, "messag": 10, "code": 10, "wa": [10, 12], "base_address": 11, "lib_root": 11, "home": 11, "runner": 11, "session": 11, "aiohttp": 11, "client": 11, "clientsess": 11, "header": 11, "multidict": 11, "_multidict": 11, "cimultidict": 11, "cooki": 11, "simplecooki": 11, "yarl": 11, "url": 11, "proxy_auth": 11, "basicauth": 11, "_low_level": 11, "lowlevel": 11, "high_level": 11, "_high_level": 11, "highlevel": 11, "attach_sess": 11, "attach": 11, "request": 11, "asynchron": 11, "detach_sess": 11, "detach": 11, "synchron": 11, "timeout": 11, "second": [11, 16, 18], "intenum": 12, "enumer": 12, "temperatur": 12, "top_k": 12, "top_p": 12, "tf": 12, "top_a": 12, "4": 12, "typical_p": 12, "5": [12, 18], "enum_class": 12, "enummeta": 12, "check": [12, 17], "collaps": 12, "multipl": 12, "version": 12, "last": 12, "sigurd": 12, "6b": 12, "v4": 12, "euterp": [12, 14], "v2": [12, 14], "krake": 12, "jp": 12, "snek": 12, "hypebot": 12, "inlin": 12, "infillmodel": 12, "enum_member_valu": 12, "officials_valu": 12, "diversity_penalti": 12, "length_penalti": 12, "40": 12, "min_length": 12, "repetition_penalti": 12, "repetition_penalty_frequ": 12, "repetition_penalty_pres": 12, "repetition_penalty_rang": 12, "repetition_penalty_slop": 12, "repetition_penalty_whitelist": 12, "stop_sequ": 12, "tail_free_sampl": 12, "textgenerationsettingsvers": 12, "naidb": 12, "mirahez": 12, "org": 12, "wiki": 12, "generation_set": 12, "randomness_": 12, "respons": 12, "length": 12, "interrupt": 12, "stop": 12, "minimum": 12, "top": 12, "k_sampl": 12, "a_sampl": 12, "nucleus_sampl": 12, "typical_sampl": 12, "arxiv": 12, "pdf": 12, "2202": 12, "00666": 12, "tail": 12, "free_sampl": 12, "1909": 12, "05858": 12, "rang": 12, "repetit": 12, "penalti": 12, "cover": 12, "platform": 12, "openai": 12, "refer": 12, "detail": 12, "exclud": 12, "color": 12, "huggingfac": 12, "co": 12, "transform": 12, "main_class": 12, "text_gener": 12, "generationconfig": 12, "pad_token_id": 12, "bos_token_id": 12, "eos_token_id": 12, "max_tim": 12, "process": 12, "noreturn": 12, "instanti": 12, "from_preset_data": 12, "pathlik": 12, "from_offici": [12, 17], "mean": 12, "from_default": [12, 17], "obj": 13, "text_generation_settings_vers": 14, "default_model": 14, "prefix": 14, "global_set": 14, "storycont": [14, 17], "tree": 14, "context_s": 14, "build_context": 14, "async": [14, 17, 18], "edit": 14, "start": 14, "replac": 14, "undo": 14, "redo": 14, "save": 14, "upload": 14, "choos": 14, "flatten": 14, "delet": 14, "get_current_tre": 14, "storag": 14, "here": 14, "load_from_remot": 14, "select": 14, "story_id": 14, "previous": 14, "ones": 14, "handler": 14, "unload": 14, "ing": 14, "novelai_storyproxi": 14, "sentencepieceprocessor": 15, "wrapper": 15, "around": 15, "decod": 15, "model_path": 15, "workaround": 15, "need": 15, "becaus": 15, "cannot": 15, "endoftext": 15, "abstract": 15, "behind": 15, "get_tokenizer_nam": 15, "email": 16, "size": 16, "domain": 16, "is_compress": 16, "ref": 16, "doesn": 16, "utf8": 16, "translat": 16, "compress": [16, 17], "won": 16, "time": [16, 18], "get_keystor": 16, "story_cont": 16, "For": 17, "under": 17, "specif": 17, "pytest": [17, 18], "scheme": 17, "n": 17, "keystore_integr": 17, "verifi": 17, "integr": 17, "stories_integr": 17, "storycontent_integr": 17, "presets_integr": 17, "aimodules_integr": 17, "aimodul": 17, "shelves_integr": 17, "sync": [17, 18], "capabl": 17, "without": [17, 18], "right": 17, "job": 17, "other": 17, "pertain": 17, "test_preset": 17, "preset_from_default": 17, "constructor": 17, "preset_from_offici": 17, "error_handl": [17, 18], "api_handl": [17, 18], "api_handle_sync": [17, 18], "func_ext": 18, "callabl": 18, "await": 18, "attempt": 18, "wait": 18, "decor": 18, "accept": 18, "argument": 18, "substitut": 18, "func": 18, "do": 18, "directli": 18, "fixtur": 18}, "objects": {"example": [[1, 0, 0, "-", "boilerplate"], [0, 0, 0, "-", "download_modules"], [0, 0, 0, "-", "download_presets"], [0, 0, 0, "-", "download_shelves"], [0, 0, 0, "-", "download_stories_and_content"], [0, 0, 0, "-", "generate_controlnet_masks"], [0, 0, 0, "-", "generate_image"], [0, 0, 0, "-", "generate_image_test_samplers"], [0, 0, 0, "-", "generate_image_with_controlnet"], [0, 0, 0, "-", "generate_image_with_img2img"], [0, 0, 0, "-", "generate_text"], [0, 0, 0, "-", "generate_voice"], [0, 0, 0, "-", "login"], [0, 0, 0, "-", "login_with_proxy"], [0, 0, 0, "-", "suggest_tags"], [0, 0, 0, "-", "upscale_image"]], "example.boilerplate": [[1, 1, 1, "", "API"], [1, 1, 1, "", "JSONEncoder"], [1, 5, 1, "", "dumps"]], "example.boilerplate.API": [[1, 2, 1, "", "__init__"], [1, 3, 1, "", "api"], [1, 4, 1, "", "encryption_key"], [1, 3, 1, "", "logger"]], "example.boilerplate.JSONEncoder": [[1, 2, 1, "", "default"]], "novelai_api": [[4, 0, 0, "-", "BanList"], [5, 0, 0, "-", "BiasGroup"], [6, 0, 0, "-", "GlobalSettings"], [7, 0, 0, "-", "Idstore"], [8, 0, 0, "-", "ImagePreset"], [9, 0, 0, "-", "Keystore"], [10, 0, 0, "-", "NovelAIError"], [11, 0, 0, "-", "NovelAI_API"], [12, 0, 0, "-", "Preset"], [13, 0, 0, "-", "SchemaValidator"], [14, 0, 0, "-", "StoryHandler"], [15, 0, 0, "-", "Tokenizer"], [16, 0, 0, "-", "utils"]], "novelai_api.BanList": [[4, 1, 1, "", "BanList"]], "novelai_api.BanList.BanList": [[4, 2, 1, "", "__init__"], [4, 2, 1, "", "add"], [4, 3, 1, "", "enabled"], [4, 2, 1, "", "get_tokenized_entries"]], "novelai_api.BiasGroup": [[5, 1, 1, "", "BiasGroup"]], "novelai_api.BiasGroup.BiasGroup": [[5, 2, 1, "", "__init__"], [5, 2, 1, "", "add"], [5, 3, 1, "", "bias"], [5, 3, 1, "", "enabled"], [5, 3, 1, "", "ensure_sequence_finish"], [5, 2, 1, "", "from_data"], [5, 3, 1, "", "generate_once"], [5, 2, 1, "", "get_tokenized_entries"]], "novelai_api.GlobalSettings": [[6, 1, 1, "", "GlobalSettings"]], "novelai_api.GlobalSettings.GlobalSettings": [[6, 3, 1, "", "NO_LOGPROBS"], [6, 2, 1, "", "__init__"], [6, 3, 1, "", "ban_ambiguous_genji_tokens"], [6, 3, 1, "", "ban_brackets"], [6, 3, 1, "", "bias_dinkus_asterism"], [6, 2, 1, "", "copy"], [6, 3, 1, "", "generate_until_sentence"], [6, 3, 1, "", "num_logprobs"], [6, 2, 1, "", "to_settings"]], "novelai_api.Idstore": [[7, 1, 1, "", "Idstore"]], "novelai_api.Idstore.Idstore": [[7, 2, 1, "", "__init__"], [7, 2, 1, "", "create"], [7, 2, 1, "", "register"]], "novelai_api.ImagePreset": [[8, 1, 1, "", "ControlNetModel"], [8, 1, 1, "", "ImageGenerationType"], [8, 1, 1, "", "ImageModel"], [8, 1, 1, "", "ImagePreset"], [8, 1, 1, "", "ImageResolution"], [8, 1, 1, "", "ImageSampler"], [8, 1, 1, "", "UCPreset"]], "novelai_api.ImagePreset.ControlNetModel": [[8, 3, 1, "", "Building_Control"], [8, 3, 1, "", "Form_Lock"], [8, 3, 1, "", "Lanscaper"], [8, 3, 1, "", "Palette_Swap"], [8, 3, 1, "", "Scrible"]], "novelai_api.ImagePreset.ImageGenerationType": [[8, 3, 1, "", "IMG2IMG"], [8, 3, 1, "", "NORMAL"]], "novelai_api.ImagePreset.ImageModel": [[8, 3, 1, "", "Anime_Curated"], [8, 3, 1, "", "Anime_Full"], [8, 3, 1, "", "Anime_Inpainting"], [8, 3, 1, "", "Furry"]], "novelai_api.ImagePreset.ImagePreset": [[8, 2, 1, "", "__init__"], [8, 2, 1, "", "calculate_cost"], [8, 3, 1, "", "controlnet_condition"], [8, 3, 1, "", "controlnet_model"], [8, 3, 1, "", "controlnet_strength"], [8, 2, 1, "", "copy"], [8, 3, 1, "", "decrisper"], [8, 2, 1, "", "from_file"], [8, 2, 1, "", "get_max_n_samples"], [8, 3, 1, "", "image"], [8, 3, 1, "", "last_seed"], [8, 3, 1, "", "n_samples"], [8, 3, 1, "", "noise"], [8, 3, 1, "", "quality_toggle"], [8, 3, 1, "", "resolution"], [8, 3, 1, "", "sampler"], [8, 3, 1, "", "scale"], [8, 3, 1, "", "seed"], [8, 3, 1, "", "smea"], [8, 3, 1, "", "smea_dyn"], [8, 3, 1, "", "steps"], [8, 3, 1, "", "strength"], [8, 2, 1, "", "to_file"], [8, 2, 1, "", "to_settings"], [8, 3, 1, "", "uc"], [8, 3, 1, "", "uc_preset"], [8, 2, 1, "", "update"]], "novelai_api.ImagePreset.ImageResolution": [[8, 3, 1, "", "Large_Landscape"], [8, 3, 1, "", "Large_Portrait"], [8, 3, 1, "", "Large_Square"], [8, 3, 1, "", "Normal_Landscape"], [8, 3, 1, "", "Normal_Portrait"], [8, 3, 1, "", "Normal_Square"], [8, 3, 1, "", "Small_Landscape"], [8, 3, 1, "", "Small_Portrait"], [8, 3, 1, "", "Small_Square"]], "novelai_api.ImagePreset.ImageSampler": [[8, 3, 1, "", "ddim"], [8, 3, 1, "", "k_dpm_2"], [8, 3, 1, "", "k_dpm_2_ancestral"], [8, 3, 1, "", "k_dpm_adaptive"], [8, 3, 1, "", "k_dpm_fast"], [8, 3, 1, "", "k_dpmpp_2m"], [8, 3, 1, "", "k_dpmpp_2s_ancestral"], [8, 3, 1, "", "k_dpmpp_sde"], [8, 3, 1, "", "k_euler"], [8, 3, 1, "", "k_euler_ancestral"], [8, 3, 1, "", "k_heun"], [8, 3, 1, "", "k_lms"], [8, 3, 1, "", "nai_smea"], [8, 3, 1, "", "nai_smea_dyn"], [8, 3, 1, "", "plms"]], "novelai_api.ImagePreset.UCPreset": [[8, 3, 1, "", "Preset_Bad_Anatomy"], [8, 3, 1, "", "Preset_Low_Quality"], [8, 3, 1, "", "Preset_Low_Quality_Bad_Anatomy"], [8, 3, 1, "", "Preset_None"]], "novelai_api.Keystore": [[9, 1, 1, "", "Keystore"]], "novelai_api.Keystore.Keystore": [[9, 2, 1, "", "__init__"], [9, 2, 1, "", "create"], [9, 3, 1, "", "data"], [9, 2, 1, "", "decrypt"], [9, 2, 1, "", "encrypt"]], "novelai_api.NovelAIError": [[10, 6, 1, "", "NovelAIError"]], "novelai_api.NovelAIError.NovelAIError": [[10, 2, 1, "", "__init__"], [10, 3, 1, "", "message"], [10, 3, 1, "", "status"]], "novelai_api.NovelAI_API": [[11, 1, 1, "", "NovelAIAPI"]], "novelai_api.NovelAI_API.NovelAIAPI": [[11, 3, 1, "", "BASE_ADDRESS"], [11, 3, 1, "", "LIB_ROOT"], [11, 2, 1, "", "__init__"], [11, 2, 1, "", "attach_session"], [11, 3, 1, "", "cookies"], [11, 2, 1, "", "detach_session"], [11, 3, 1, "", "headers"], [11, 3, 1, "", "high_level"], [11, 3, 1, "", "logger"], [11, 3, 1, "", "low_level"], [11, 3, 1, "", "proxy"], [11, 3, 1, "", "proxy_auth"], [11, 3, 1, "", "session"], [11, 4, 1, "", "timeout"]], "novelai_api.Preset": [[12, 1, 1, "", "Model"], [12, 1, 1, "", "Order"], [12, 1, 1, "", "Preset"], [12, 1, 1, "", "PresetView"], [12, 1, 1, "", "StrEnum"], [12, 5, 1, "", "collapse_model"], [12, 5, 1, "", "enum_contains"]], "novelai_api.Preset.Model": [[12, 3, 1, "", "Euterpe"], [12, 3, 1, "", "Genji"], [12, 3, 1, "", "HypeBot"], [12, 3, 1, "", "Inline"], [12, 3, 1, "", "Krake"], [12, 3, 1, "", "Sigurd"], [12, 3, 1, "", "Snek"], [12, 3, 1, "", "enum_member_values"]], "novelai_api.Preset.Order": [[12, 3, 1, "", "TFS"], [12, 3, 1, "", "Temperature"], [12, 3, 1, "", "Top_A"], [12, 3, 1, "", "Top_K"], [12, 3, 1, "", "Top_P"], [12, 3, 1, "", "Typical_P"]], "novelai_api.Preset.Preset": [[12, 3, 1, "", "DEFAULTS"], [12, 2, 1, "", "__init__"], [12, 3, 1, "", "bos_token_id"], [12, 2, 1, "", "copy"], [12, 3, 1, "", "diversity_penalty"], [12, 2, 1, "", "enable"], [12, 3, 1, "", "eos_token_id"], [12, 2, 1, "", "from_default"], [12, 2, 1, "", "from_file"], [12, 2, 1, "", "from_official"], [12, 2, 1, "", "from_preset_data"], [12, 3, 1, "", "length_penalty"], [12, 3, 1, "", "max_length"], [12, 3, 1, "", "max_time"], [12, 3, 1, "", "min_length"], [12, 3, 1, "", "model"], [12, 3, 1, "", "name"], [12, 3, 1, "", "order"], [12, 3, 1, "", "pad_token_id"], [12, 3, 1, "", "repetition_penalty"], [12, 3, 1, "", "repetition_penalty_frequency"], [12, 3, 1, "", "repetition_penalty_presence"], [12, 3, 1, "", "repetition_penalty_range"], [12, 3, 1, "", "repetition_penalty_slope"], [12, 3, 1, "", "repetition_penalty_whitelist"], [12, 2, 1, "", "set"], [12, 3, 1, "", "tail_free_sampling"], [12, 3, 1, "", "temperature"], [12, 3, 1, "", "textGenerationSettingsVersion"], [12, 2, 1, "", "to_file"], [12, 2, 1, "", "to_settings"], [12, 3, 1, "", "top_a"], [12, 3, 1, "", "top_k"], [12, 3, 1, "", "top_p"], [12, 3, 1, "", "typical_p"], [12, 2, 1, "", "update"]], "novelai_api.Preset.PresetView": [[12, 2, 1, "", "__init__"], [12, 3, 1, "", "model"]], "novelai_api.SchemaValidator": [[13, 1, 1, "", "SchemaValidator"]], "novelai_api.SchemaValidator.SchemaValidator": [[13, 2, 1, "", "__init__"], [13, 2, 1, "", "validate"]], "novelai_api.StoryHandler": [[14, 1, 1, "", "NovelAIStory"], [14, 1, 1, "", "NovelAIStoryStorage"]], "novelai_api.StoryHandler.NovelAIStory": [[14, 3, 1, "", "DEFAULT_MODEL"], [14, 3, 1, "", "TEXT_GENERATION_SETTINGS_VERSION"], [14, 2, 1, "", "__init__"], [14, 3, 1, "", "api"], [14, 3, 1, "", "banlists"], [14, 3, 1, "", "biases"], [14, 2, 1, "", "build_context"], [14, 2, 1, "", "choose"], [14, 3, 1, "", "context_size"], [14, 2, 1, "", "delete"], [14, 2, 1, "", "edit"], [14, 2, 1, "", "flatten"], [14, 2, 1, "", "generate"], [14, 2, 1, "", "get_current_tree"], [14, 3, 1, "", "global_settings"], [14, 3, 1, "", "key"], [14, 3, 1, "", "keystore"], [14, 3, 1, "", "model"], [14, 3, 1, "", "prefix"], [14, 3, 1, "", "preset"], [14, 2, 1, "", "redo"], [14, 2, 1, "", "save"], [14, 3, 1, "", "story"], [14, 3, 1, "", "storycontent"], [14, 3, 1, "", "tree"], [14, 2, 1, "", "undo"]], "novelai_api.StoryHandler.NovelAIStoryStorage": [[14, 2, 1, "", "__init__"], [14, 3, 1, "", "api"], [14, 2, 1, "", "create"], [14, 3, 1, "", "global_settings"], [14, 3, 1, "", "idstore"], [14, 3, 1, "", "keystore"], [14, 2, 1, "", "load"], [14, 2, 1, "", "load_from_remote"], [14, 2, 1, "", "loads"], [14, 2, 1, "", "select"], [14, 2, 1, "", "unload"]], "novelai_api.Tokenizer": [[15, 1, 1, "", "SentencePiece"], [15, 1, 1, "", "Tokenizer"]], "novelai_api.Tokenizer.SentencePiece": [[15, 2, 1, "", "__init__"], [15, 2, 1, "", "decode"], [15, 2, 1, "", "encode"]], "novelai_api.Tokenizer.Tokenizer": [[15, 2, 1, "", "decode"], [15, 2, 1, "", "encode"], [15, 2, 1, "", "get_tokenizer_name"]], "novelai_api.utils": [[16, 5, 1, "", "argon_hash"], [16, 5, 1, "", "b64_to_tokens"], [16, 5, 1, "", "compress_user_data"], [16, 5, 1, "", "decompress_user_data"], [16, 5, 1, "", "decrypt_data"], [16, 5, 1, "", "decrypt_user_data"], [16, 5, 1, "", "encrypt_data"], [16, 5, 1, "", "encrypt_user_data"], [16, 5, 1, "", "extract_preset_data"], [16, 5, 1, "", "get_access_key"], [16, 5, 1, "", "get_decrypted_user_data"], [16, 5, 1, "", "get_encryption_key"], [16, 5, 1, "", "link_content_to_story"], [16, 5, 1, "", "tokenize_if_not"], [16, 5, 1, "", "tokens_to_b64"], [16, 5, 1, "", "unlink_content_from_story"]], "tests.api": [[18, 0, 0, "-", "boilerplate"], [17, 0, 0, "-", "test_decrypt_encrypt_integrity_check"], [17, 0, 0, "-", "test_imagegen_samplers"], [17, 0, 0, "-", "test_sync_gen"], [17, 0, 0, "-", "test_textgen_presets"], [17, 0, 0, "-", "test_textgen_sanity"]], "tests.api.boilerplate": [[18, 1, 1, "", "API"], [18, 1, 1, "", "JSONEncoder"], [18, 5, 1, "", "api_handle"], [18, 5, 1, "", "api_handle_sync"], [18, 5, 1, "", "dumps"], [18, 5, 1, "", "error_handler"]], "tests.api.boilerplate.API": [[18, 2, 1, "", "__init__"], [18, 3, 1, "", "api"], [18, 4, 1, "", "encryption_key"], [18, 3, 1, "", "logger"]], "tests.api.boilerplate.JSONEncoder": [[18, 2, 1, "", "default"]], "tests.api.test_decrypt_encrypt_integrity_check": [[17, 5, 1, "", "aimodules_integrity"], [17, 5, 1, "", "keystore_integrity"], [17, 5, 1, "", "presets_integrity"], [17, 5, 1, "", "shelves_integrity"], [17, 5, 1, "", "stories_integrity"], [17, 5, 1, "", "storycontent_integrity"]], "tests.api.test_textgen_presets": [[17, 5, 1, "", "preset_from_default"], [17, 5, 1, "", "preset_from_official"], [17, 5, 1, "", "test_presets"]]}, "objtypes": {"0": "py:module", "1": "py:class", "2": "py:method", "3": "py:attribute", "4": "py:property", "5": "py:function", "6": "py:exception"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "class", "Python class"], "2": ["py", "method", "Python method"], "3": ["py", "attribute", "Python attribute"], "4": ["py", "property", "Python property"], "5": ["py", "function", "Python function"], "6": ["py", "exception", "Python exception"]}, "titleterms": {"exampl": [0, 2], "directori": [0, 17, 19], "requir": [0, 17], "usag": [0, 2, 17], "content": [0, 17, 19], "download_modul": 0, "py": [0, 17], "download_preset": 0, "download_shelv": 0, "download_stories_and_cont": 0, "generate_controlnet_mask": 0, "generate_imag": 0, "generate_image_test_sampl": 0, "generate_image_with_controlnet": 0, "generate_image_with_img2img": 0, "generate_text": 0, "generate_voic": 0, "login": 0, "login_with_proxi": 0, "suggest_tag": 0, "upscale_imag": 0, "refer": [0, 2, 17, 19], "boilerpl": [1, 18], "novelai": [2, 3], "api": [2, 3, 17], "us": 2, "modul": 2, "via": 2, "command": 2, "line": 2, "get": 2, "access": 2, "kei": 2, "token": [2, 15], "saniti": 2, "check": 2, "decod": 2, "your": 2, "code": 2, "low_level": 2, "high_level": 2, "develop": 2, "contribut": 2, "test": 2, "against": 2, "mock": [2, 19], "doc": 2, "todo": 2, "fixm": 2, "review": 2, "fix": 2, "work": 2, "progress": 2, "packag": 3, "novelai_api": [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], "banlist": 4, "biasgroup": 5, "globalset": 6, "idstor": 7, "imagepreset": 8, "keystor": 9, "novelaierror": 10, "preset": 12, "schemavalid": 13, "storyhandl": 14, "util": 16, "test_decrypt_encrypt_integrity_check": 17, "test_imagegen_sampl": 17, "test_sync_gen": 17, "test_textgen_preset": 17, "test_textgen_san": 17}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 8, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.intersphinx": 1, "sphinx.ext.viewcode": 1, "sphinx_last_updated_by_git": 1, "sphinx": 57}, "alltitles": {"example directory": [[0, "example-directory"]], "Requirements": [[0, "requirements"], [17, "requirements"]], "Usage": [[0, "usage"], [2, "usage"], [17, "usage"]], "Content": [[0, "module-example.download_modules"], [17, "content"], [19, "content"]], "download_modules.py": [[0, "download-modules-py"]], "download_presets.py": [[0, "download-presets-py"]], "download_shelves.py": [[0, "download-shelves-py"]], "download_stories_and_content.py": [[0, "download-stories-and-content-py"]], "generate_controlnet_masks.py": [[0, "generate-controlnet-masks-py"]], "generate_image.py": [[0, "generate-image-py"]], "generate_image_test_samplers.py": [[0, "generate-image-test-samplers-py"]], "generate_image_with_controlnet.py": [[0, "generate-image-with-controlnet-py"]], "generate_image_with_img2img.py": [[0, "generate-image-with-img2img-py"]], "generate_text.py": [[0, "generate-text-py"]], "generate_voice.py": [[0, "generate-voice-py"]], "login.py": [[0, "login-py"]], "login_with_proxy.py": [[0, "login-with-proxy-py"]], "suggest_tags.py": [[0, "suggest-tags-py"]], "upscale_image.py": [[0, "upscale-image-py"]], "Reference": [[0, "reference"], [2, "reference"], [17, "reference"], [19, "reference"]], "boilerplate": [[1, "module-example.boilerplate"], [18, "module-tests.api.boilerplate"]], "novelai-api": [[2, "novelai-api"], [2, "novelai-api"]], "Using the module via Command Line": [[2, "using-the-module-via-command-line"]], "Get access key": [[2, "get-access-key"]], "Get access token": [[2, "get-access-token"]], "Sanity check": [[2, "sanity-check"]], "Decode": [[2, "decode"]], "Using the module in your code": [[2, "using-the-module-in-your-code"]], "low_level": [[2, "low-level"]], "high_level": [[2, "high-level"]], "Development": [[2, "development"]], "Contributing": [[2, "contributing"]], "Testing against the API": [[2, "testing-against-the-api"]], "Testing against the mocked API": [[2, "testing-against-the-mocked-api"]], "Docs": [[2, "docs"]], "TODO": [[2, "todo"]], "FIXME:": [[2, "fixme"]], "Reviewing/Fixing:": [[2, "reviewing-fixing"]], "Work in Progress:": [[2, "work-in-progress"]], "example": [[2, "example"]], "Test API": [[2, "test-api"]], "Test Mocked API": [[2, "test-mocked-api"]], "novelai-api package": [[3, "novelai-api-package"]], "novelai_api.BanList": [[4, "module-novelai_api.BanList"]], "novelai_api.BiasGroup": [[5, "module-novelai_api.BiasGroup"]], "novelai_api.GlobalSettings": [[6, "module-novelai_api.GlobalSettings"]], "novelai_api.Idstore": [[7, "module-novelai_api.Idstore"]], "novelai_api.ImagePreset": [[8, "module-novelai_api.ImagePreset"]], "novelai_api.Keystore": [[9, "module-novelai_api.Keystore"]], "novelai_api.NovelAIError": [[10, "module-novelai_api.NovelAIError"]], "novelai_api.NovelAI_API": [[11, "module-novelai_api.NovelAI_API"]], "novelai_api.Preset": [[12, "module-novelai_api.Preset"]], "novelai_api.SchemaValidator": [[13, "module-novelai_api.SchemaValidator"]], "novelai_api.StoryHandler": [[14, "module-novelai_api.StoryHandler"]], "novelai_api.Tokenizer": [[15, "module-novelai_api.Tokenizer"]], "novelai_api.utils": [[16, "module-novelai_api.utils"]], "API directory": [[17, "api-directory"]], "test_decrypt_encrypt_integrity_check.py": [[17, "module-tests.api.test_decrypt_encrypt_integrity_check"]], "test_imagegen_samplers.py": [[17, "module-tests.api.test_imagegen_samplers"]], "test_sync_gen.py": [[17, "module-tests.api.test_sync_gen"]], "test_textgen_presets.py": [[17, "module-tests.api.test_textgen_presets"]], "test_textgen_sanity.py": [[17, "module-tests.api.test_textgen_sanity"]], "Mock directory": [[19, "mock-directory"]]}, "indexentries": {"example.download_modules": [[0, "module-example.download_modules"]], "example.download_presets": [[0, "module-example.download_presets"]], "example.download_shelves": [[0, "module-example.download_shelves"]], "example.download_stories_and_content": [[0, "module-example.download_stories_and_content"]], "example.generate_controlnet_masks": [[0, "module-example.generate_controlnet_masks"]], "example.generate_image": [[0, "module-example.generate_image"]], "example.generate_image_test_samplers": [[0, "module-example.generate_image_test_samplers"]], "example.generate_image_with_controlnet": [[0, "module-example.generate_image_with_controlnet"]], "example.generate_image_with_img2img": [[0, "module-example.generate_image_with_img2img"]], "example.generate_text": [[0, "module-example.generate_text"]], "example.generate_voice": [[0, "module-example.generate_voice"]], "example.login": [[0, "module-example.login"]], "example.login_with_proxy": [[0, "module-example.login_with_proxy"]], "example.suggest_tags": [[0, "module-example.suggest_tags"]], "example.upscale_image": [[0, "module-example.upscale_image"]], "module": [[0, "module-example.download_modules"], [0, "module-example.download_presets"], [0, "module-example.download_shelves"], [0, "module-example.download_stories_and_content"], [0, "module-example.generate_controlnet_masks"], [0, "module-example.generate_image"], [0, "module-example.generate_image_test_samplers"], [0, "module-example.generate_image_with_controlnet"], [0, "module-example.generate_image_with_img2img"], [0, "module-example.generate_text"], [0, "module-example.generate_voice"], [0, "module-example.login"], [0, "module-example.login_with_proxy"], [0, "module-example.suggest_tags"], [0, "module-example.upscale_image"], [1, "module-example.boilerplate"], [4, "module-novelai_api.BanList"], [5, "module-novelai_api.BiasGroup"], [6, "module-novelai_api.GlobalSettings"], [7, "module-novelai_api.Idstore"], [8, "module-novelai_api.ImagePreset"], [9, "module-novelai_api.Keystore"], [10, "module-novelai_api.NovelAIError"], [11, "module-novelai_api.NovelAI_API"], [12, "module-novelai_api.Preset"], [13, "module-novelai_api.SchemaValidator"], [14, "module-novelai_api.StoryHandler"], [15, "module-novelai_api.Tokenizer"], [16, "module-novelai_api.utils"], [17, "module-tests.api.test_decrypt_encrypt_integrity_check"], [17, "module-tests.api.test_imagegen_samplers"], [17, "module-tests.api.test_sync_gen"], [17, "module-tests.api.test_textgen_presets"], [17, "module-tests.api.test_textgen_sanity"], [18, "module-tests.api.boilerplate"]], "api (class in example.boilerplate)": [[1, "example.boilerplate.API"]], "jsonencoder (class in example.boilerplate)": [[1, "example.boilerplate.JSONEncoder"]], "__init__() (api method)": [[1, "example.boilerplate.API.__init__"], [18, "tests.api.boilerplate.API.__init__"]], "api (api attribute)": [[1, "example.boilerplate.API.api"], [18, "tests.api.boilerplate.API.api"]], "default() (jsonencoder method)": [[1, "example.boilerplate.JSONEncoder.default"], [18, "tests.api.boilerplate.JSONEncoder.default"]], "dumps() (in module example.boilerplate)": [[1, "example.boilerplate.dumps"]], "encryption_key (api property)": [[1, "example.boilerplate.API.encryption_key"], [18, "tests.api.boilerplate.API.encryption_key"]], "example.boilerplate": [[1, "module-example.boilerplate"]], "logger (api attribute)": [[1, "example.boilerplate.API.logger"], [18, "tests.api.boilerplate.API.logger"]], "banlist (class in novelai_api.banlist)": [[4, "novelai_api.BanList.BanList"]], "__init__() (banlist method)": [[4, "novelai_api.BanList.BanList.__init__"]], "add() (banlist method)": [[4, "novelai_api.BanList.BanList.add"]], "enabled (banlist attribute)": [[4, "novelai_api.BanList.BanList.enabled"]], "get_tokenized_entries() (banlist method)": [[4, "novelai_api.BanList.BanList.get_tokenized_entries"]], "novelai_api.banlist": [[4, "module-novelai_api.BanList"]], "biasgroup (class in novelai_api.biasgroup)": [[5, "novelai_api.BiasGroup.BiasGroup"]], "__init__() (biasgroup method)": [[5, "novelai_api.BiasGroup.BiasGroup.__init__"]], "add() (biasgroup method)": [[5, "novelai_api.BiasGroup.BiasGroup.add"]], "bias (biasgroup attribute)": [[5, "novelai_api.BiasGroup.BiasGroup.bias"]], "enabled (biasgroup attribute)": [[5, "novelai_api.BiasGroup.BiasGroup.enabled"]], "ensure_sequence_finish (biasgroup attribute)": [[5, "novelai_api.BiasGroup.BiasGroup.ensure_sequence_finish"]], "from_data() (biasgroup class method)": [[5, "novelai_api.BiasGroup.BiasGroup.from_data"]], "generate_once (biasgroup attribute)": [[5, "novelai_api.BiasGroup.BiasGroup.generate_once"]], "get_tokenized_entries() (biasgroup method)": [[5, "novelai_api.BiasGroup.BiasGroup.get_tokenized_entries"]], "novelai_api.biasgroup": [[5, "module-novelai_api.BiasGroup"]], "globalsettings (class in novelai_api.globalsettings)": [[6, "novelai_api.GlobalSettings.GlobalSettings"]], "no_logprobs (globalsettings attribute)": [[6, "novelai_api.GlobalSettings.GlobalSettings.NO_LOGPROBS"]], "__init__() (globalsettings method)": [[6, "novelai_api.GlobalSettings.GlobalSettings.__init__"]], "ban_ambiguous_genji_tokens (globalsettings attribute)": [[6, "novelai_api.GlobalSettings.GlobalSettings.ban_ambiguous_genji_tokens"]], "ban_brackets (globalsettings attribute)": [[6, "novelai_api.GlobalSettings.GlobalSettings.ban_brackets"]], "bias_dinkus_asterism (globalsettings attribute)": [[6, "novelai_api.GlobalSettings.GlobalSettings.bias_dinkus_asterism"]], "copy() (globalsettings method)": [[6, "novelai_api.GlobalSettings.GlobalSettings.copy"]], "generate_until_sentence (globalsettings attribute)": [[6, "novelai_api.GlobalSettings.GlobalSettings.generate_until_sentence"]], "novelai_api.globalsettings": [[6, "module-novelai_api.GlobalSettings"]], "num_logprobs (globalsettings attribute)": [[6, "novelai_api.GlobalSettings.GlobalSettings.num_logprobs"]], "to_settings() (globalsettings method)": [[6, "novelai_api.GlobalSettings.GlobalSettings.to_settings"]], "idstore (class in novelai_api.idstore)": [[7, "novelai_api.Idstore.Idstore"]], "__init__() (idstore method)": [[7, "novelai_api.Idstore.Idstore.__init__"]], "create() (idstore method)": [[7, "novelai_api.Idstore.Idstore.create"]], "novelai_api.idstore": [[7, "module-novelai_api.Idstore"]], "register() (idstore method)": [[7, "novelai_api.Idstore.Idstore.register"]], "anime_curated (imagemodel attribute)": [[8, "novelai_api.ImagePreset.ImageModel.Anime_Curated"]], "anime_full (imagemodel attribute)": [[8, "novelai_api.ImagePreset.ImageModel.Anime_Full"]], "anime_inpainting (imagemodel attribute)": [[8, "novelai_api.ImagePreset.ImageModel.Anime_Inpainting"]], "building_control (controlnetmodel attribute)": [[8, "novelai_api.ImagePreset.ControlNetModel.Building_Control"]], "controlnetmodel (class in novelai_api.imagepreset)": [[8, "novelai_api.ImagePreset.ControlNetModel"]], "form_lock (controlnetmodel attribute)": [[8, "novelai_api.ImagePreset.ControlNetModel.Form_Lock"]], "furry (imagemodel attribute)": [[8, "novelai_api.ImagePreset.ImageModel.Furry"]], "img2img (imagegenerationtype attribute)": [[8, "novelai_api.ImagePreset.ImageGenerationType.IMG2IMG"]], "imagegenerationtype (class in novelai_api.imagepreset)": [[8, "novelai_api.ImagePreset.ImageGenerationType"]], "imagemodel (class in novelai_api.imagepreset)": [[8, "novelai_api.ImagePreset.ImageModel"]], "imagepreset (class in novelai_api.imagepreset)": [[8, "novelai_api.ImagePreset.ImagePreset"]], "imageresolution (class in novelai_api.imagepreset)": [[8, "novelai_api.ImagePreset.ImageResolution"]], "imagesampler (class in novelai_api.imagepreset)": [[8, "novelai_api.ImagePreset.ImageSampler"]], "lanscaper (controlnetmodel attribute)": [[8, "novelai_api.ImagePreset.ControlNetModel.Lanscaper"]], "large_landscape (imageresolution attribute)": [[8, "novelai_api.ImagePreset.ImageResolution.Large_Landscape"]], "large_portrait (imageresolution attribute)": [[8, "novelai_api.ImagePreset.ImageResolution.Large_Portrait"]], "large_square (imageresolution attribute)": [[8, "novelai_api.ImagePreset.ImageResolution.Large_Square"]], "normal (imagegenerationtype attribute)": [[8, "novelai_api.ImagePreset.ImageGenerationType.NORMAL"]], "normal_landscape (imageresolution attribute)": [[8, "novelai_api.ImagePreset.ImageResolution.Normal_Landscape"]], "normal_portrait (imageresolution attribute)": [[8, "novelai_api.ImagePreset.ImageResolution.Normal_Portrait"]], "normal_square (imageresolution attribute)": [[8, "novelai_api.ImagePreset.ImageResolution.Normal_Square"]], "palette_swap (controlnetmodel attribute)": [[8, "novelai_api.ImagePreset.ControlNetModel.Palette_Swap"]], "preset_bad_anatomy (ucpreset attribute)": [[8, "novelai_api.ImagePreset.UCPreset.Preset_Bad_Anatomy"]], "preset_low_quality (ucpreset attribute)": [[8, "novelai_api.ImagePreset.UCPreset.Preset_Low_Quality"]], "preset_low_quality_bad_anatomy (ucpreset attribute)": [[8, "novelai_api.ImagePreset.UCPreset.Preset_Low_Quality_Bad_Anatomy"]], "preset_none (ucpreset attribute)": [[8, "novelai_api.ImagePreset.UCPreset.Preset_None"]], "scrible (controlnetmodel attribute)": [[8, "novelai_api.ImagePreset.ControlNetModel.Scrible"]], "small_landscape (imageresolution attribute)": [[8, "novelai_api.ImagePreset.ImageResolution.Small_Landscape"]], "small_portrait (imageresolution attribute)": [[8, "novelai_api.ImagePreset.ImageResolution.Small_Portrait"]], "small_square (imageresolution attribute)": [[8, "novelai_api.ImagePreset.ImageResolution.Small_Square"]], "ucpreset (class in novelai_api.imagepreset)": [[8, "novelai_api.ImagePreset.UCPreset"]], "__init__() (imagepreset method)": [[8, "novelai_api.ImagePreset.ImagePreset.__init__"]], "calculate_cost() (imagepreset method)": [[8, "novelai_api.ImagePreset.ImagePreset.calculate_cost"]], "controlnet_condition (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.controlnet_condition"]], "controlnet_model (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.controlnet_model"]], "controlnet_strength (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.controlnet_strength"]], "copy() (imagepreset method)": [[8, "novelai_api.ImagePreset.ImagePreset.copy"]], "ddim (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.ddim"]], "decrisper (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.decrisper"]], "from_file() (imagepreset class method)": [[8, "novelai_api.ImagePreset.ImagePreset.from_file"]], "get_max_n_samples() (imagepreset method)": [[8, "novelai_api.ImagePreset.ImagePreset.get_max_n_samples"]], "image (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.image"]], "k_dpm_2 (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.k_dpm_2"]], "k_dpm_2_ancestral (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.k_dpm_2_ancestral"]], "k_dpm_adaptive (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.k_dpm_adaptive"]], "k_dpm_fast (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.k_dpm_fast"]], "k_dpmpp_2m (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.k_dpmpp_2m"]], "k_dpmpp_2s_ancestral (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.k_dpmpp_2s_ancestral"]], "k_dpmpp_sde (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.k_dpmpp_sde"]], "k_euler (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.k_euler"]], "k_euler_ancestral (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.k_euler_ancestral"]], "k_heun (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.k_heun"]], "k_lms (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.k_lms"]], "last_seed (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.last_seed"]], "n_samples (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.n_samples"]], "nai_smea (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.nai_smea"]], "nai_smea_dyn (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.nai_smea_dyn"]], "noise (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.noise"]], "novelai_api.imagepreset": [[8, "module-novelai_api.ImagePreset"]], "plms (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.plms"]], "quality_toggle (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.quality_toggle"]], "resolution (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.resolution"]], "sampler (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.sampler"]], "scale (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.scale"]], "seed (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.seed"]], "smea (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.smea"]], "smea_dyn (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.smea_dyn"]], "steps (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.steps"]], "strength (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.strength"]], "to_file() (imagepreset method)": [[8, "novelai_api.ImagePreset.ImagePreset.to_file"]], "to_settings() (imagepreset method)": [[8, "novelai_api.ImagePreset.ImagePreset.to_settings"]], "uc (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.uc"]], "uc_preset (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.uc_preset"]], "update() (imagepreset method)": [[8, "novelai_api.ImagePreset.ImagePreset.update"]], "keystore (class in novelai_api.keystore)": [[9, "novelai_api.Keystore.Keystore"]], "__init__() (keystore method)": [[9, "novelai_api.Keystore.Keystore.__init__"]], "create() (keystore method)": [[9, "novelai_api.Keystore.Keystore.create"]], "data (keystore attribute)": [[9, "novelai_api.Keystore.Keystore.data"]], "decrypt() (keystore method)": [[9, "novelai_api.Keystore.Keystore.decrypt"]], "encrypt() (keystore method)": [[9, "novelai_api.Keystore.Keystore.encrypt"]], "novelai_api.keystore": [[9, "module-novelai_api.Keystore"]], "novelaierror": [[10, "novelai_api.NovelAIError.NovelAIError"]], "__init__() (novelaierror method)": [[10, "novelai_api.NovelAIError.NovelAIError.__init__"]], "message (novelaierror attribute)": [[10, "novelai_api.NovelAIError.NovelAIError.message"]], "novelai_api.novelaierror": [[10, "module-novelai_api.NovelAIError"]], "status (novelaierror attribute)": [[10, "novelai_api.NovelAIError.NovelAIError.status"]], "base_address (novelaiapi attribute)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.BASE_ADDRESS"]], "lib_root (novelaiapi attribute)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.LIB_ROOT"]], "novelaiapi (class in novelai_api.novelai_api)": [[11, "novelai_api.NovelAI_API.NovelAIAPI"]], "__init__() (novelaiapi method)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.__init__"]], "attach_session() (novelaiapi method)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.attach_session"]], "cookies (novelaiapi attribute)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.cookies"]], "detach_session() (novelaiapi method)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.detach_session"]], "headers (novelaiapi attribute)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.headers"]], "high_level (novelaiapi attribute)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.high_level"]], "logger (novelaiapi attribute)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.logger"]], "low_level (novelaiapi attribute)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.low_level"]], "novelai_api.novelai_api": [[11, "module-novelai_api.NovelAI_API"]], "proxy (novelaiapi attribute)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.proxy"]], "proxy_auth (novelaiapi attribute)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.proxy_auth"]], "session (novelaiapi attribute)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.session"]], "timeout (novelaiapi property)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.timeout"]], "defaults (preset attribute)": [[12, "novelai_api.Preset.Preset.DEFAULTS"]], "euterpe (model attribute)": [[12, "novelai_api.Preset.Model.Euterpe"]], "genji (model attribute)": [[12, "novelai_api.Preset.Model.Genji"]], "hypebot (model attribute)": [[12, "novelai_api.Preset.Model.HypeBot"]], "inline (model attribute)": [[12, "novelai_api.Preset.Model.Inline"]], "krake (model attribute)": [[12, "novelai_api.Preset.Model.Krake"]], "model (class in novelai_api.preset)": [[12, "novelai_api.Preset.Model"]], "order (class in novelai_api.preset)": [[12, "novelai_api.Preset.Order"]], "preset (class in novelai_api.preset)": [[12, "novelai_api.Preset.Preset"]], "presetview (class in novelai_api.preset)": [[12, "novelai_api.Preset.PresetView"]], "sigurd (model attribute)": [[12, "novelai_api.Preset.Model.Sigurd"]], "snek (model attribute)": [[12, "novelai_api.Preset.Model.Snek"]], "strenum (class in novelai_api.preset)": [[12, "novelai_api.Preset.StrEnum"]], "tfs (order attribute)": [[12, "novelai_api.Preset.Order.TFS"]], "temperature (order attribute)": [[12, "novelai_api.Preset.Order.Temperature"]], "top_a (order attribute)": [[12, "novelai_api.Preset.Order.Top_A"]], "top_k (order attribute)": [[12, "novelai_api.Preset.Order.Top_K"]], "top_p (order attribute)": [[12, "novelai_api.Preset.Order.Top_P"]], "typical_p (order attribute)": [[12, "novelai_api.Preset.Order.Typical_P"]], "__init__() (preset method)": [[12, "novelai_api.Preset.Preset.__init__"]], "__init__() (presetview method)": [[12, "novelai_api.Preset.PresetView.__init__"]], "bos_token_id (preset attribute)": [[12, "novelai_api.Preset.Preset.bos_token_id"]], "collapse_model() (in module novelai_api.preset)": [[12, "novelai_api.Preset.collapse_model"]], "copy() (preset method)": [[12, "novelai_api.Preset.Preset.copy"]], "diversity_penalty (preset attribute)": [[12, "novelai_api.Preset.Preset.diversity_penalty"]], "enable() (preset method)": [[12, "novelai_api.Preset.Preset.enable"]], "enum_contains() (in module novelai_api.preset)": [[12, "novelai_api.Preset.enum_contains"]], "enum_member_values (model attribute)": [[12, "novelai_api.Preset.Model.enum_member_values"]], "eos_token_id (preset attribute)": [[12, "novelai_api.Preset.Preset.eos_token_id"]], "from_default() (preset class method)": [[12, "novelai_api.Preset.Preset.from_default"]], "from_file() (preset class method)": [[12, "novelai_api.Preset.Preset.from_file"]], "from_official() (preset class method)": [[12, "novelai_api.Preset.Preset.from_official"]], "from_preset_data() (preset class method)": [[12, "novelai_api.Preset.Preset.from_preset_data"]], "length_penalty (preset attribute)": [[12, "novelai_api.Preset.Preset.length_penalty"]], "max_length (preset attribute)": [[12, "novelai_api.Preset.Preset.max_length"]], "max_time (preset attribute)": [[12, "novelai_api.Preset.Preset.max_time"]], "min_length (preset attribute)": [[12, "novelai_api.Preset.Preset.min_length"]], "model (preset attribute)": [[12, "novelai_api.Preset.Preset.model"]], "model (presetview attribute)": [[12, "novelai_api.Preset.PresetView.model"]], "name (preset attribute)": [[12, "novelai_api.Preset.Preset.name"]], "novelai_api.preset": [[12, "module-novelai_api.Preset"]], "order (preset attribute)": [[12, "novelai_api.Preset.Preset.order"]], "pad_token_id (preset attribute)": [[12, "novelai_api.Preset.Preset.pad_token_id"]], "repetition_penalty (preset attribute)": [[12, "novelai_api.Preset.Preset.repetition_penalty"]], "repetition_penalty_frequency (preset attribute)": [[12, "novelai_api.Preset.Preset.repetition_penalty_frequency"]], "repetition_penalty_presence (preset attribute)": [[12, "novelai_api.Preset.Preset.repetition_penalty_presence"]], "repetition_penalty_range (preset attribute)": [[12, "novelai_api.Preset.Preset.repetition_penalty_range"]], "repetition_penalty_slope (preset attribute)": [[12, "novelai_api.Preset.Preset.repetition_penalty_slope"]], "repetition_penalty_whitelist (preset attribute)": [[12, "novelai_api.Preset.Preset.repetition_penalty_whitelist"]], "set() (preset method)": [[12, "novelai_api.Preset.Preset.set"]], "tail_free_sampling (preset attribute)": [[12, "novelai_api.Preset.Preset.tail_free_sampling"]], "temperature (preset attribute)": [[12, "novelai_api.Preset.Preset.temperature"]], "textgenerationsettingsversion (preset attribute)": [[12, "novelai_api.Preset.Preset.textGenerationSettingsVersion"]], "to_file() (preset method)": [[12, "novelai_api.Preset.Preset.to_file"]], "to_settings() (preset method)": [[12, "novelai_api.Preset.Preset.to_settings"]], "top_a (preset attribute)": [[12, "novelai_api.Preset.Preset.top_a"]], "top_k (preset attribute)": [[12, "novelai_api.Preset.Preset.top_k"]], "top_p (preset attribute)": [[12, "novelai_api.Preset.Preset.top_p"]], "typical_p (preset attribute)": [[12, "novelai_api.Preset.Preset.typical_p"]], "update() (preset method)": [[12, "novelai_api.Preset.Preset.update"]], "schemavalidator (class in novelai_api.schemavalidator)": [[13, "novelai_api.SchemaValidator.SchemaValidator"]], "__init__() (schemavalidator method)": [[13, "novelai_api.SchemaValidator.SchemaValidator.__init__"]], "novelai_api.schemavalidator": [[13, "module-novelai_api.SchemaValidator"]], "validate() (schemavalidator class method)": [[13, "novelai_api.SchemaValidator.SchemaValidator.validate"]], "default_model (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.DEFAULT_MODEL"]], "novelaistory (class in novelai_api.storyhandler)": [[14, "novelai_api.StoryHandler.NovelAIStory"]], "novelaistorystorage (class in novelai_api.storyhandler)": [[14, "novelai_api.StoryHandler.NovelAIStoryStorage"]], "text_generation_settings_version (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.TEXT_GENERATION_SETTINGS_VERSION"]], "__init__() (novelaistory method)": [[14, "novelai_api.StoryHandler.NovelAIStory.__init__"]], "__init__() (novelaistorystorage method)": [[14, "novelai_api.StoryHandler.NovelAIStoryStorage.__init__"]], "api (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.api"]], "api (novelaistorystorage attribute)": [[14, "novelai_api.StoryHandler.NovelAIStoryStorage.api"]], "banlists (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.banlists"]], "biases (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.biases"]], "build_context() (novelaistory method)": [[14, "novelai_api.StoryHandler.NovelAIStory.build_context"]], "choose() (novelaistory method)": [[14, "novelai_api.StoryHandler.NovelAIStory.choose"]], "context_size (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.context_size"]], "create() (novelaistorystorage method)": [[14, "novelai_api.StoryHandler.NovelAIStoryStorage.create"]], "delete() (novelaistory method)": [[14, "novelai_api.StoryHandler.NovelAIStory.delete"]], "edit() (novelaistory method)": [[14, "novelai_api.StoryHandler.NovelAIStory.edit"]], "flatten() (novelaistory method)": [[14, "novelai_api.StoryHandler.NovelAIStory.flatten"]], "generate() (novelaistory method)": [[14, "novelai_api.StoryHandler.NovelAIStory.generate"]], "get_current_tree() (novelaistory method)": [[14, "novelai_api.StoryHandler.NovelAIStory.get_current_tree"]], "global_settings (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.global_settings"]], "global_settings (novelaistorystorage attribute)": [[14, "novelai_api.StoryHandler.NovelAIStoryStorage.global_settings"]], "idstore (novelaistorystorage attribute)": [[14, "novelai_api.StoryHandler.NovelAIStoryStorage.idstore"]], "key (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.key"]], "keystore (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.keystore"]], "keystore (novelaistorystorage attribute)": [[14, "novelai_api.StoryHandler.NovelAIStoryStorage.keystore"]], "load() (novelaistorystorage method)": [[14, "novelai_api.StoryHandler.NovelAIStoryStorage.load"]], "load_from_remote() (novelaistorystorage method)": [[14, "novelai_api.StoryHandler.NovelAIStoryStorage.load_from_remote"]], "loads() (novelaistorystorage method)": [[14, "novelai_api.StoryHandler.NovelAIStoryStorage.loads"]], "model (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.model"]], "novelai_api.storyhandler": [[14, "module-novelai_api.StoryHandler"]], "prefix (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.prefix"]], "preset (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.preset"]], "redo() (novelaistory method)": [[14, "novelai_api.StoryHandler.NovelAIStory.redo"]], "save() (novelaistory method)": [[14, "novelai_api.StoryHandler.NovelAIStory.save"]], "select() (novelaistorystorage method)": [[14, "novelai_api.StoryHandler.NovelAIStoryStorage.select"]], "story (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.story"]], "storycontent (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.storycontent"]], "tree (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.tree"]], "undo() (novelaistory method)": [[14, "novelai_api.StoryHandler.NovelAIStory.undo"]], "unload() (novelaistorystorage method)": [[14, "novelai_api.StoryHandler.NovelAIStoryStorage.unload"]], "sentencepiece (class in novelai_api.tokenizer)": [[15, "novelai_api.Tokenizer.SentencePiece"]], "tokenizer (class in novelai_api.tokenizer)": [[15, "novelai_api.Tokenizer.Tokenizer"]], "__init__() (sentencepiece method)": [[15, "novelai_api.Tokenizer.SentencePiece.__init__"]], "decode() (sentencepiece method)": [[15, "novelai_api.Tokenizer.SentencePiece.decode"]], "decode() (tokenizer class method)": [[15, "novelai_api.Tokenizer.Tokenizer.decode"]], "encode() (sentencepiece method)": [[15, "novelai_api.Tokenizer.SentencePiece.encode"]], "encode() (tokenizer class method)": [[15, "novelai_api.Tokenizer.Tokenizer.encode"]], "get_tokenizer_name() (tokenizer class method)": [[15, "novelai_api.Tokenizer.Tokenizer.get_tokenizer_name"]], "novelai_api.tokenizer": [[15, "module-novelai_api.Tokenizer"]], "argon_hash() (in module novelai_api.utils)": [[16, "novelai_api.utils.argon_hash"]], "b64_to_tokens() (in module novelai_api.utils)": [[16, "novelai_api.utils.b64_to_tokens"]], "compress_user_data() (in module novelai_api.utils)": [[16, "novelai_api.utils.compress_user_data"]], "decompress_user_data() (in module novelai_api.utils)": [[16, "novelai_api.utils.decompress_user_data"]], "decrypt_data() (in module novelai_api.utils)": [[16, "novelai_api.utils.decrypt_data"]], "decrypt_user_data() (in module novelai_api.utils)": [[16, "novelai_api.utils.decrypt_user_data"]], "encrypt_data() (in module novelai_api.utils)": [[16, "novelai_api.utils.encrypt_data"]], "encrypt_user_data() (in module novelai_api.utils)": [[16, "novelai_api.utils.encrypt_user_data"]], "extract_preset_data() (in module novelai_api.utils)": [[16, "novelai_api.utils.extract_preset_data"]], "get_access_key() (in module novelai_api.utils)": [[16, "novelai_api.utils.get_access_key"]], "get_decrypted_user_data() (in module novelai_api.utils)": [[16, "novelai_api.utils.get_decrypted_user_data"]], "get_encryption_key() (in module novelai_api.utils)": [[16, "novelai_api.utils.get_encryption_key"]], "link_content_to_story() (in module novelai_api.utils)": [[16, "novelai_api.utils.link_content_to_story"]], "novelai_api.utils": [[16, "module-novelai_api.utils"]], "tokenize_if_not() (in module novelai_api.utils)": [[16, "novelai_api.utils.tokenize_if_not"]], "tokens_to_b64() (in module novelai_api.utils)": [[16, "novelai_api.utils.tokens_to_b64"]], "unlink_content_from_story() (in module novelai_api.utils)": [[16, "novelai_api.utils.unlink_content_from_story"]], "aimodules_integrity() (in module tests.api.test_decrypt_encrypt_integrity_check)": [[17, "tests.api.test_decrypt_encrypt_integrity_check.aimodules_integrity"]], "keystore_integrity() (in module tests.api.test_decrypt_encrypt_integrity_check)": [[17, "tests.api.test_decrypt_encrypt_integrity_check.keystore_integrity"]], "preset_from_default() (in module tests.api.test_textgen_presets)": [[17, "tests.api.test_textgen_presets.preset_from_default"]], "preset_from_official() (in module tests.api.test_textgen_presets)": [[17, "tests.api.test_textgen_presets.preset_from_official"]], "presets_integrity() (in module tests.api.test_decrypt_encrypt_integrity_check)": [[17, "tests.api.test_decrypt_encrypt_integrity_check.presets_integrity"]], "shelves_integrity() (in module tests.api.test_decrypt_encrypt_integrity_check)": [[17, "tests.api.test_decrypt_encrypt_integrity_check.shelves_integrity"]], "stories_integrity() (in module tests.api.test_decrypt_encrypt_integrity_check)": [[17, "tests.api.test_decrypt_encrypt_integrity_check.stories_integrity"]], "storycontent_integrity() (in module tests.api.test_decrypt_encrypt_integrity_check)": [[17, "tests.api.test_decrypt_encrypt_integrity_check.storycontent_integrity"]], "test_presets() (in module tests.api.test_textgen_presets)": [[17, "tests.api.test_textgen_presets.test_presets"]], "tests.api.test_decrypt_encrypt_integrity_check": [[17, "module-tests.api.test_decrypt_encrypt_integrity_check"]], "tests.api.test_imagegen_samplers": [[17, "module-tests.api.test_imagegen_samplers"]], "tests.api.test_sync_gen": [[17, "module-tests.api.test_sync_gen"]], "tests.api.test_textgen_presets": [[17, "module-tests.api.test_textgen_presets"]], "tests.api.test_textgen_sanity": [[17, "module-tests.api.test_textgen_sanity"]], "api (class in tests.api.boilerplate)": [[18, "tests.api.boilerplate.API"]], "jsonencoder (class in tests.api.boilerplate)": [[18, "tests.api.boilerplate.JSONEncoder"]], "api_handle() (in module tests.api.boilerplate)": [[18, "tests.api.boilerplate.api_handle"]], "api_handle_sync() (in module tests.api.boilerplate)": [[18, "tests.api.boilerplate.api_handle_sync"]], "dumps() (in module tests.api.boilerplate)": [[18, "tests.api.boilerplate.dumps"]], "error_handler() (in module tests.api.boilerplate)": [[18, "tests.api.boilerplate.error_handler"]], "tests.api.boilerplate": [[18, "module-tests.api.boilerplate"]]}}) \ No newline at end of file +Search.setIndex({"docnames": ["example/example", "example/example.boilerplate", "index", "novelai_api/novelai_api", "novelai_api/novelai_api.BanList", "novelai_api/novelai_api.BiasGroup", "novelai_api/novelai_api.GlobalSettings", "novelai_api/novelai_api.Idstore", "novelai_api/novelai_api.ImagePreset", "novelai_api/novelai_api.Keystore", "novelai_api/novelai_api.NovelAIError", "novelai_api/novelai_api.NovelAI_API", "novelai_api/novelai_api.Preset", "novelai_api/novelai_api.SchemaValidator", "novelai_api/novelai_api.StoryHandler", "novelai_api/novelai_api.Tokenizer", "novelai_api/novelai_api.utils", "tests/api/api", "tests/api/api.boilerplate", "tests/mock/mock"], "filenames": ["example/example.rst", "example/example.boilerplate.rst", "index.rst", "novelai_api/novelai_api.rst", "novelai_api/novelai_api.BanList.rst", "novelai_api/novelai_api.BiasGroup.rst", "novelai_api/novelai_api.GlobalSettings.rst", "novelai_api/novelai_api.Idstore.rst", "novelai_api/novelai_api.ImagePreset.rst", "novelai_api/novelai_api.Keystore.rst", "novelai_api/novelai_api.NovelAIError.rst", "novelai_api/novelai_api.NovelAI_API.rst", "novelai_api/novelai_api.Preset.rst", "novelai_api/novelai_api.SchemaValidator.rst", "novelai_api/novelai_api.StoryHandler.rst", "novelai_api/novelai_api.Tokenizer.rst", "novelai_api/novelai_api.utils.rst", "tests/api/api.rst", "tests/api/api.boilerplate.rst", "tests/mock/mock.rst"], "titles": ["example directory", "boilerplate", "novelai-api", "novelai-api package", "novelai_api.BanList", "novelai_api.BiasGroup", "novelai_api.GlobalSettings", "novelai_api.Idstore", "novelai_api.ImagePreset", "novelai_api.Keystore", "novelai_api.NovelAIError", "novelai_api.NovelAI_API", "novelai_api.Preset", "novelai_api.SchemaValidator", "novelai_api.StoryHandler", "novelai_api.Tokenizer", "novelai_api.utils", "API directory", "boilerplate", "Mock directory"], "terms": {"nai_usernam": [0, 17], "nai_password": [0, 17], "valu": [0, 5, 6, 8, 12, 17], "provid": [0, 7, 8, 10, 12, 15, 17, 18], "via": [0, 17], "environ": [0, 17], "variabl": [0, 17], "thei": [0, 17], "can": [0, 2, 4, 5, 17], "through": [0, 2, 17], "env": [0, 17], "file": [0, 8, 12, 17], "root": [0, 17], "project": [0, 17], "The": [0, 2, 8, 9, 12, 17, 18], "nai_proxi": [0, 17], "i": [0, 2, 4, 5, 6, 8, 9, 12, 15, 17, 18], "also": [0, 8, 17], "support": [0, 1, 17, 18], "inject": [0, 17], "proxi": [0, 11, 14, 17], "address": [0, 17], "If": [0, 16], "you": [0, 2], "have": [0, 16], "novelai": [0, 8, 11], "api": [0, 1, 10, 11, 12, 14, 18], "packag": [0, 2], "instal": [0, 2, 17], "pip": [0, 2], "python": [0, 2, 12], "filenam": [0, 17], "don": 0, "t": [0, 2, 7, 14, 15, 16], "re": 0, "activ": [0, 2], "develop": 0, "poetri": [0, 2, 17], "run": [0, 2, 17, 18], "rememb": [0, 17], "befor": [0, 2, 17, 18], "alreadi": [0, 16, 17], "done": [0, 17], "how": 0, "download": [0, 2, 17], "decrypt": [0, 2, 9, 16, 17], "modul": 0, "from": [0, 2, 5, 6, 8, 9, 12, 14], "account": [0, 2, 6, 8], "decompress": [0, 16, 17], "shelv": [0, 17], "stori": [0, 2, 14, 16, 17], "queri": 0, "controlnet": [0, 2, 8], "mask": [0, 2, 8], "an": [0, 5, 6, 8, 12, 16, 18], "imag": [0, 8], "It": [0, 2], "expect": [0, 10], "result": [0, 17], "png": [0, 8], "exist": [0, 14], "gener": [0, 6, 8, 12, 14, 17], "thi": [0, 2, 14, 15, 17], "same": [0, 12], "folder": [0, 17], "note": 0, "current": [0, 6, 8, 11, 12, 17], "return": [0, 4, 5, 6, 7, 8, 12, 14, 15], "wrong": 0, "due": 0, "convers": 0, "frontend": [0, 2, 17], "see": 0, "issu": 0, "15": 0, "place": 0, "name": [0, 12, 13, 15, 17], "test": [0, 17, 18], "which": [0, 17], "sampler": [0, 8, 17], "work": [0, 8, 11, 12, 17], "creat": [0, 4, 5, 6, 7, 8, 9, 14], "one": [0, 2, 8, 12], "per": 0, "control": 0, "net": [0, 2, 8, 11], "img2img": [0, 8], "text": [0, 2, 6, 15], "direct": 0, "standard": 0, "error": [0, 10, 18], "output": [0, 2], "stderr": 0, "voic": 0, "tt": 0, "To": [0, 2], "speech": 0, "audio": 0, "sampl": [0, 8, 12], "input": [0, 2], "limit": 0, "1000": 0, "charact": 0, "cut": 0, "backend": [0, 2], "tag": 0, "suggest": 0, "gen": 0, "upscal": 0, "should": [0, 2, 9, 12, 14], "512x768": 0, "default": [0, 1, 8, 12, 18], "modifi": 0, "image_s": 0, "chang": 0, "boilerpl": [0, 17], "jsonencod": [0, 1, 17, 18], "dump": [0, 1, 17, 18], "class": [1, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 17, 18], "sourc": [1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "base": [1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18], "object": [1, 2, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 17, 18], "redund": 1, "part": 1, "__init__": [1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18], "logger": [1, 11, 18], "log": [1, 11, 18], "option": [1, 8, 9, 11, 12, 14, 16, 18], "novelai_api": [1, 2, 3, 18], "novelaiapi": [1, 2, 3, 11, 14, 18], "properti": [1, 11, 18], "encryption_kei": [1, 18], "json": [1, 18], "encod": [1, 2, 8, 15, 18], "extend": [1, 18], "byte": [1, 9, 12, 14, 16, 18], "o": [1, 12, 15, 16, 18], "ani": [1, 2, 5, 6, 8, 9, 12, 13, 14, 16, 18], "e": [1, 18], "str": [1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18], "shortcut": [1, 18], "configur": [1, 8, 18], "consist": [1, 17, 18], "rest": 2, "intend": 2, "helper": [2, 11], "": [2, 15, 17], "categori": 2, "badg": 2, "pypi": 2, "qualiti": 2, "stat": 2, "login": 2, "endpoint": 2, "m": 2, "get_access_kei": [2, 3, 16], "usernam": 2, "password": [2, 16], "valid": [2, 12, 13], "30": 2, "dai": 2, "requir": 2, "most": 2, "get_access_token": 2, "user": 2, "content": 2, "print": 2, "what": 2, "couldn": 2, "sanity_check": 2, "b64": [2, 8, 16], "model": [2, 3, 4, 5, 6, 8, 12, 14, 15, 16], "data": [2, 5, 9, 12, 16], "A": 2, "full": 2, "list": [2, 4, 5, 12, 14, 15, 16], "avail": 2, "directori": 2, "split": 2, "2": [2, 8, 12, 14], "group": [2, 5], "low": 2, "level": 2, "interfac": 2, "strict": 2, "implement": 2, "offici": [2, 12], "http": [2, 8, 11, 12], "onli": [2, 5, 12, 17], "type": [2, 8], "assert": 2, "schema": 2, "is_schema_validation_en": 2, "true": [2, 4, 5, 12], "high": [2, 8], "build": 2, "easier": 2, "handl": [2, 15, 18], "complex": 2, "set": [2, 6, 8, 12], "mani": 2, "task": 2, "all": [2, 17], "relev": [2, 12], "ar": [2, 12], "venv": 2, "manag": [2, 8], "featur": 2, "enhanc": 2, "pr": 2, "pass": 2, "pre": 2, "commit": 2, "submiss": 2, "hook": 2, "nai": [2, 8, 10, 17], "warn": 2, "wip": 2, "doe": [2, 14, 16], "yet": [2, 7], "local": 2, "viewabl": 2, "html": [2, 8], "index": [2, 14], "ci": 2, "context": 2, "flake2pylint": 2, "banlist": [2, 3, 14], "biasgroup": [2, 3, 14], "globalset": [2, 3, 14], "idstor": [2, 3, 14], "imagepreset": [2, 3, 15], "keystor": [2, 3, 14, 16, 17], "novelaierror": [2, 3], "preset": [2, 3, 4, 5, 6, 8, 14, 15, 16, 17], "schemavalid": [2, 3], "storyhandl": [2, 3], "util": [2, 3, 9], "imagemodel": [3, 8, 15], "controlnetmodel": [3, 8], "imageresolut": [3, 8], "imagesampl": [3, 8], "ucpreset": [3, 8], "imagegenerationtyp": [3, 8], "order": [3, 12], "enum_contain": [3, 12], "collapse_model": [3, 12], "strenum": [3, 12], "presetview": [3, 12], "novelaistori": [3, 14], "novelaistorystorag": [3, 14], "token": [3, 4, 5, 6, 12, 16], "sentencepiec": [3, 15], "argon_hash": [3, 16], "get_encryption_kei": [3, 9, 16], "decrypt_data": [3, 16], "encrypt_data": [3, 16], "decompress_user_data": [3, 16], "compress_user_data": [3, 16], "decrypt_user_data": [3, 16], "encrypt_user_data": [3, 16], "link_content_to_stori": [3, 16], "unlink_content_from_stori": [3, 16], "get_decrypted_user_data": [3, 16], "tokens_to_b64": [3, 16], "b64_to_token": [3, 16], "extract_preset_data": [3, 16], "tokenize_if_not": [3, 16], "sequenc": [4, 5, 12], "union": [4, 5, 8, 11, 12, 15, 16], "int": [4, 5, 6, 8, 10, 12, 14, 15, 16, 18], "enabl": [4, 5, 8, 12], "bool": [4, 5, 6, 8, 12, 14, 16, 18], "ban": 4, "given": [4, 12], "element": [4, 5], "string": [4, 5], "us": [4, 5, 6, 8, 12, 15, 17, 18], "recommend": [4, 5], "flexibl": [4, 5], "between": [4, 5], "paramet": [4, 5, 6, 8, 9, 12, 14, 15, 16, 18], "add": [4, 5, 15, 18], "dict": [4, 5, 6, 8, 9, 12, 14, 16], "get_tokenized_entri": [4, 5], "iter": [4, 5, 16], "bia": 5, "float": [5, 8, 11, 12], "ensure_sequence_finish": 5, "fals": [5, 12, 14, 16, 18], "generate_onc": 5, "neg": 5, "downbia": 5, "posit": 5, "upbia": 5, "ensur": [5, 17], "complet": 5, "bias": [5, 6, 14], "first": [5, 18], "occurr": 5, "classmethod": [5, 8, 12, 13, 15], "from_data": 5, "store": [6, 8, 12], "global": 6, "generate_until_sent": 6, "up": 6, "20": 6, "after": [6, 18], "max_length": [6, 12], "end": [6, 14], "sentenc": 6, "found": [6, 12], "within": 6, "num_logprob": 6, "number": [6, 8, 12, 18], "logprob": 6, "each": [6, 15, 16, 18], "no_logprob": 6, "disabl": [6, 12], "ban_bracket": 6, "appli": 6, "bracket": 6, "bias_dinkus_aster": 6, "dinkus_aster": 6, "ban_ambiguous_genji_token": 6, "genji_ambiguous_token": 6, "genji": [6, 12], "1": [6, 8, 10, 12, 17], "copi": [6, 8, 12], "new": [6, 7, 8, 9, 12], "to_set": [6, 8, 12], "regist": 7, "arg": 7, "id": [7, 14], "everi": 7, "item": [7, 16], "must": [7, 16, 18], "retriev": [7, 16], "download_user_cont": 7, "uniqu": 7, "hasn": 7, "been": [7, 16], "enum": [8, 12], "low_level": [8, 11], "suggest_tag": 8, "generate_imag": 8, "anime_cur": 8, "safe": 8, "diffus": 8, "anime_ful": 8, "furri": 8, "anime_inpaint": 8, "anim": 8, "inpaint": 8, "controlnet_model": 8, "generate_controlnet_mask": 8, "palette_swap": 8, "hed": 8, "form_lock": 8, "mida": 8, "scribl": 8, "fake_scribbl": 8, "building_control": 8, "mlsd": 8, "lanscap": 8, "uniform": 8, "resolut": 8, "small_portrait": 8, "384": 8, "640": 8, "small_landscap": 8, "small_squar": 8, "512": 8, "normal_portrait": 8, "768": 8, "normal_landscap": 8, "normal_squar": 8, "large_portrait": 8, "1024": 8, "large_landscap": 8, "large_squar": 8, "k_lm": 8, "k_euler": 8, "k_euler_ancestr": 8, "k_heun": 8, "plm": 8, "ddim": 8, "nai_smea": 8, "nai_smea_dyn": 8, "k_dpmpp_2m": 8, "k_dpmpp_2s_ancestr": 8, "k_dpmpp_sde": 8, "k_dpm_2": 8, "k_dpm_2_ancestr": 8, "k_dpm_adapt": 8, "k_dpm_fast": 8, "uc": 8, "uc_preset": 8, "preset_low_quality_bad_anatomi": 8, "0": [8, 12], "preset_low_qu": 8, "preset_bad_anatomi": 8, "preset_non": 8, "3": [8, 12], "normal": 8, "quality_toggl": 8, "doc": [8, 12], "qualitytag": 8, "tupl": [8, 16], "width": 8, "height": 8, "prepend": 8, "n_sampl": 8, "seed": 8, "random": [8, 9, 12], "ith": 8, "ha": [8, 16], "nois": 8, "strengthnois": 8, "strength": 8, "scale": 8, "stepsguid": 8, "call": [8, 18], "prompt": 8, "guidanc": 8, "step": 8, "undesiredcont": 8, "smea": 8, "make": [8, 11], "larg": 8, "smea_dyn": 8, "dyn": 8, "best": 8, "wallpap": 8, "controlnet_condit": 8, "gotten": 8, "method": [8, 15, 16], "controlnet_strength": 8, "influenc": 8, "chosen": [8, 12, 15], "decrisp": 8, "reduc": 8, "deepfri": 8, "effect": 8, "twitter": 8, "com": [8, 12], "birchlab": 8, "statu": [8, 10], "1582165379832348672": 8, "last_se": 8, "when": [8, 10], "metadata": 8, "might": 8, "hassl": 8, "updat": [8, 12], "none": [8, 10, 11, 12, 14, 16, 18], "kwarg": [8, 12], "like": [8, 12], "instanc": [8, 14], "function": [8, 12, 18], "get": [8, 12, 15], "get_max_n_sampl": 8, "allow": [8, 12], "max": 8, "calculate_cost": 8, "is_opu": 8, "calcul": 8, "cost": 8, "anla": 8, "subscript": 8, "tier": 8, "opu": 8, "free": [8, 14], "so": 8, "from_fil": [8, 12], "path": [8, 12], "write": [8, 12], "read": 8, "to_fil": [8, 12], "load": [8, 14], "meta": [9, 14], "assign": 9, "nonc": [9, 16], "kei": [9, 12, 14, 16], "encrypt": [9, 16, 17], "comput": 9, "except": 10, "rais": [10, 18], "problem": [10, 17], "occur": 10, "messag": 10, "code": 10, "wa": [10, 12], "base_address": 11, "lib_root": 11, "home": 11, "runner": 11, "session": 11, "aiohttp": 11, "client": 11, "clientsess": 11, "header": 11, "multidict": 11, "_multidict": 11, "cimultidict": 11, "cooki": 11, "simplecooki": 11, "yarl": 11, "url": 11, "proxy_auth": 11, "basicauth": 11, "_low_level": 11, "lowlevel": 11, "high_level": 11, "_high_level": 11, "highlevel": 11, "attach_sess": 11, "attach": 11, "request": 11, "asynchron": 11, "detach_sess": 11, "detach": 11, "synchron": 11, "timeout": 11, "second": [11, 16, 18], "intenum": 12, "enumer": 12, "temperatur": 12, "top_k": 12, "top_p": 12, "tf": 12, "top_a": 12, "4": 12, "typical_p": 12, "5": [12, 18], "enum_class": 12, "enummeta": 12, "check": [12, 17], "collaps": 12, "multipl": 12, "version": 12, "last": 12, "sigurd": 12, "6b": 12, "v4": 12, "euterp": [12, 14], "v2": [12, 14], "krake": 12, "clio": 12, "v1": 12, "jp": 12, "snek": 12, "hypebot": 12, "inlin": 12, "infillmodel": 12, "enum_member_valu": 12, "officials_valu": 12, "diversity_penalti": 12, "length_penalti": 12, "40": 12, "min_length": 12, "repetition_penalti": 12, "repetition_penalty_frequ": 12, "repetition_penalty_pres": 12, "repetition_penalty_rang": 12, "repetition_penalty_slop": 12, "repetition_penalty_whitelist": 12, "stop_sequ": 12, "tail_free_sampl": 12, "textgenerationsettingsvers": 12, "naidb": 12, "mirahez": 12, "org": 12, "wiki": 12, "generation_set": 12, "randomness_": 12, "respons": 12, "length": 12, "interrupt": 12, "stop": 12, "minimum": 12, "top": 12, "k_sampl": 12, "a_sampl": 12, "nucleus_sampl": 12, "typical_sampl": 12, "arxiv": 12, "pdf": 12, "2202": 12, "00666": 12, "tail": 12, "free_sampl": 12, "1909": 12, "05858": 12, "rang": 12, "repetit": 12, "penalti": 12, "cover": 12, "platform": 12, "openai": 12, "refer": 12, "detail": 12, "exclud": 12, "color": 12, "huggingfac": 12, "co": 12, "transform": 12, "main_class": 12, "text_gener": 12, "generationconfig": 12, "pad_token_id": 12, "bos_token_id": 12, "eos_token_id": 12, "max_tim": 12, "process": 12, "noreturn": 12, "instanti": 12, "from_preset_data": 12, "pathlik": 12, "from_offici": [12, 17], "mean": 12, "from_default": [12, 17], "obj": 13, "text_generation_settings_vers": 14, "default_model": 14, "prefix": 14, "global_set": 14, "storycont": [14, 17], "tree": 14, "context_s": 14, "build_context": 14, "async": [14, 17, 18], "edit": 14, "start": 14, "replac": 14, "undo": 14, "redo": 14, "save": 14, "upload": 14, "choos": 14, "flatten": 14, "delet": 14, "get_current_tre": 14, "storag": 14, "here": 14, "load_from_remot": 14, "select": 14, "story_id": 14, "previous": 14, "ones": 14, "handler": 14, "unload": 14, "ing": 14, "novelai_storyproxi": 14, "sentencepieceprocessor": 15, "wrapper": 15, "around": 15, "decod": 15, "model_path": 15, "workaround": 15, "need": 15, "becaus": 15, "cannot": 15, "endoftext": 15, "abstract": 15, "behind": 15, "get_tokenizer_nam": 15, "email": 16, "size": 16, "domain": 16, "is_compress": 16, "ref": 16, "doesn": 16, "utf8": 16, "translat": 16, "compress": [16, 17], "won": 16, "time": [16, 18], "get_keystor": 16, "story_cont": 16, "For": 17, "under": 17, "specif": 17, "pytest": [17, 18], "scheme": 17, "n": 17, "keystore_integr": 17, "verifi": 17, "integr": 17, "stories_integr": 17, "storycontent_integr": 17, "presets_integr": 17, "aimodules_integr": 17, "aimodul": 17, "shelves_integr": 17, "sync": [17, 18], "capabl": 17, "without": [17, 18], "right": 17, "job": 17, "other": 17, "pertain": 17, "test_preset": 17, "preset_from_default": 17, "constructor": 17, "preset_from_offici": 17, "error_handl": [17, 18], "api_handl": [17, 18], "api_handle_sync": [17, 18], "func_ext": 18, "callabl": 18, "await": 18, "attempt": 18, "wait": 18, "decor": 18, "accept": 18, "argument": 18, "substitut": 18, "func": 18, "do": 18, "directli": 18, "fixtur": 18}, "objects": {"example": [[1, 0, 0, "-", "boilerplate"], [0, 0, 0, "-", "download_modules"], [0, 0, 0, "-", "download_presets"], [0, 0, 0, "-", "download_shelves"], [0, 0, 0, "-", "download_stories_and_content"], [0, 0, 0, "-", "generate_controlnet_masks"], [0, 0, 0, "-", "generate_image"], [0, 0, 0, "-", "generate_image_test_samplers"], [0, 0, 0, "-", "generate_image_with_controlnet"], [0, 0, 0, "-", "generate_image_with_img2img"], [0, 0, 0, "-", "generate_text"], [0, 0, 0, "-", "generate_voice"], [0, 0, 0, "-", "login"], [0, 0, 0, "-", "login_with_proxy"], [0, 0, 0, "-", "suggest_tags"], [0, 0, 0, "-", "upscale_image"]], "example.boilerplate": [[1, 1, 1, "", "API"], [1, 1, 1, "", "JSONEncoder"], [1, 5, 1, "", "dumps"]], "example.boilerplate.API": [[1, 2, 1, "", "__init__"], [1, 3, 1, "", "api"], [1, 4, 1, "", "encryption_key"], [1, 3, 1, "", "logger"]], "example.boilerplate.JSONEncoder": [[1, 2, 1, "", "default"]], "novelai_api": [[4, 0, 0, "-", "BanList"], [5, 0, 0, "-", "BiasGroup"], [6, 0, 0, "-", "GlobalSettings"], [7, 0, 0, "-", "Idstore"], [8, 0, 0, "-", "ImagePreset"], [9, 0, 0, "-", "Keystore"], [10, 0, 0, "-", "NovelAIError"], [11, 0, 0, "-", "NovelAI_API"], [12, 0, 0, "-", "Preset"], [13, 0, 0, "-", "SchemaValidator"], [14, 0, 0, "-", "StoryHandler"], [15, 0, 0, "-", "Tokenizer"], [16, 0, 0, "-", "utils"]], "novelai_api.BanList": [[4, 1, 1, "", "BanList"]], "novelai_api.BanList.BanList": [[4, 2, 1, "", "__init__"], [4, 2, 1, "", "add"], [4, 3, 1, "", "enabled"], [4, 2, 1, "", "get_tokenized_entries"]], "novelai_api.BiasGroup": [[5, 1, 1, "", "BiasGroup"]], "novelai_api.BiasGroup.BiasGroup": [[5, 2, 1, "", "__init__"], [5, 2, 1, "", "add"], [5, 3, 1, "", "bias"], [5, 3, 1, "", "enabled"], [5, 3, 1, "", "ensure_sequence_finish"], [5, 2, 1, "", "from_data"], [5, 3, 1, "", "generate_once"], [5, 2, 1, "", "get_tokenized_entries"]], "novelai_api.GlobalSettings": [[6, 1, 1, "", "GlobalSettings"]], "novelai_api.GlobalSettings.GlobalSettings": [[6, 3, 1, "", "NO_LOGPROBS"], [6, 2, 1, "", "__init__"], [6, 3, 1, "", "ban_ambiguous_genji_tokens"], [6, 3, 1, "", "ban_brackets"], [6, 3, 1, "", "bias_dinkus_asterism"], [6, 2, 1, "", "copy"], [6, 3, 1, "", "generate_until_sentence"], [6, 3, 1, "", "num_logprobs"], [6, 2, 1, "", "to_settings"]], "novelai_api.Idstore": [[7, 1, 1, "", "Idstore"]], "novelai_api.Idstore.Idstore": [[7, 2, 1, "", "__init__"], [7, 2, 1, "", "create"], [7, 2, 1, "", "register"]], "novelai_api.ImagePreset": [[8, 1, 1, "", "ControlNetModel"], [8, 1, 1, "", "ImageGenerationType"], [8, 1, 1, "", "ImageModel"], [8, 1, 1, "", "ImagePreset"], [8, 1, 1, "", "ImageResolution"], [8, 1, 1, "", "ImageSampler"], [8, 1, 1, "", "UCPreset"]], "novelai_api.ImagePreset.ControlNetModel": [[8, 3, 1, "", "Building_Control"], [8, 3, 1, "", "Form_Lock"], [8, 3, 1, "", "Lanscaper"], [8, 3, 1, "", "Palette_Swap"], [8, 3, 1, "", "Scrible"]], "novelai_api.ImagePreset.ImageGenerationType": [[8, 3, 1, "", "IMG2IMG"], [8, 3, 1, "", "NORMAL"]], "novelai_api.ImagePreset.ImageModel": [[8, 3, 1, "", "Anime_Curated"], [8, 3, 1, "", "Anime_Full"], [8, 3, 1, "", "Anime_Inpainting"], [8, 3, 1, "", "Furry"]], "novelai_api.ImagePreset.ImagePreset": [[8, 2, 1, "", "__init__"], [8, 2, 1, "", "calculate_cost"], [8, 3, 1, "", "controlnet_condition"], [8, 3, 1, "", "controlnet_model"], [8, 3, 1, "", "controlnet_strength"], [8, 2, 1, "", "copy"], [8, 3, 1, "", "decrisper"], [8, 2, 1, "", "from_file"], [8, 2, 1, "", "get_max_n_samples"], [8, 3, 1, "", "image"], [8, 3, 1, "", "last_seed"], [8, 3, 1, "", "n_samples"], [8, 3, 1, "", "noise"], [8, 3, 1, "", "quality_toggle"], [8, 3, 1, "", "resolution"], [8, 3, 1, "", "sampler"], [8, 3, 1, "", "scale"], [8, 3, 1, "", "seed"], [8, 3, 1, "", "smea"], [8, 3, 1, "", "smea_dyn"], [8, 3, 1, "", "steps"], [8, 3, 1, "", "strength"], [8, 2, 1, "", "to_file"], [8, 2, 1, "", "to_settings"], [8, 3, 1, "", "uc"], [8, 3, 1, "", "uc_preset"], [8, 2, 1, "", "update"]], "novelai_api.ImagePreset.ImageResolution": [[8, 3, 1, "", "Large_Landscape"], [8, 3, 1, "", "Large_Portrait"], [8, 3, 1, "", "Large_Square"], [8, 3, 1, "", "Normal_Landscape"], [8, 3, 1, "", "Normal_Portrait"], [8, 3, 1, "", "Normal_Square"], [8, 3, 1, "", "Small_Landscape"], [8, 3, 1, "", "Small_Portrait"], [8, 3, 1, "", "Small_Square"]], "novelai_api.ImagePreset.ImageSampler": [[8, 3, 1, "", "ddim"], [8, 3, 1, "", "k_dpm_2"], [8, 3, 1, "", "k_dpm_2_ancestral"], [8, 3, 1, "", "k_dpm_adaptive"], [8, 3, 1, "", "k_dpm_fast"], [8, 3, 1, "", "k_dpmpp_2m"], [8, 3, 1, "", "k_dpmpp_2s_ancestral"], [8, 3, 1, "", "k_dpmpp_sde"], [8, 3, 1, "", "k_euler"], [8, 3, 1, "", "k_euler_ancestral"], [8, 3, 1, "", "k_heun"], [8, 3, 1, "", "k_lms"], [8, 3, 1, "", "nai_smea"], [8, 3, 1, "", "nai_smea_dyn"], [8, 3, 1, "", "plms"]], "novelai_api.ImagePreset.UCPreset": [[8, 3, 1, "", "Preset_Bad_Anatomy"], [8, 3, 1, "", "Preset_Low_Quality"], [8, 3, 1, "", "Preset_Low_Quality_Bad_Anatomy"], [8, 3, 1, "", "Preset_None"]], "novelai_api.Keystore": [[9, 1, 1, "", "Keystore"]], "novelai_api.Keystore.Keystore": [[9, 2, 1, "", "__init__"], [9, 2, 1, "", "create"], [9, 3, 1, "", "data"], [9, 2, 1, "", "decrypt"], [9, 2, 1, "", "encrypt"]], "novelai_api.NovelAIError": [[10, 6, 1, "", "NovelAIError"]], "novelai_api.NovelAIError.NovelAIError": [[10, 2, 1, "", "__init__"], [10, 3, 1, "", "message"], [10, 3, 1, "", "status"]], "novelai_api.NovelAI_API": [[11, 1, 1, "", "NovelAIAPI"]], "novelai_api.NovelAI_API.NovelAIAPI": [[11, 3, 1, "", "BASE_ADDRESS"], [11, 3, 1, "", "LIB_ROOT"], [11, 2, 1, "", "__init__"], [11, 2, 1, "", "attach_session"], [11, 3, 1, "", "cookies"], [11, 2, 1, "", "detach_session"], [11, 3, 1, "", "headers"], [11, 3, 1, "", "high_level"], [11, 3, 1, "", "logger"], [11, 3, 1, "", "low_level"], [11, 3, 1, "", "proxy"], [11, 3, 1, "", "proxy_auth"], [11, 3, 1, "", "session"], [11, 4, 1, "", "timeout"]], "novelai_api.Preset": [[12, 1, 1, "", "Model"], [12, 1, 1, "", "Order"], [12, 1, 1, "", "Preset"], [12, 1, 1, "", "PresetView"], [12, 1, 1, "", "StrEnum"], [12, 5, 1, "", "collapse_model"], [12, 5, 1, "", "enum_contains"]], "novelai_api.Preset.Model": [[12, 3, 1, "", "Clio"], [12, 3, 1, "", "Euterpe"], [12, 3, 1, "", "Genji"], [12, 3, 1, "", "HypeBot"], [12, 3, 1, "", "Inline"], [12, 3, 1, "", "Krake"], [12, 3, 1, "", "Sigurd"], [12, 3, 1, "", "Snek"], [12, 3, 1, "", "enum_member_values"]], "novelai_api.Preset.Order": [[12, 3, 1, "", "TFS"], [12, 3, 1, "", "Temperature"], [12, 3, 1, "", "Top_A"], [12, 3, 1, "", "Top_K"], [12, 3, 1, "", "Top_P"], [12, 3, 1, "", "Typical_P"]], "novelai_api.Preset.Preset": [[12, 3, 1, "", "DEFAULTS"], [12, 2, 1, "", "__init__"], [12, 3, 1, "", "bos_token_id"], [12, 2, 1, "", "copy"], [12, 3, 1, "", "diversity_penalty"], [12, 2, 1, "", "enable"], [12, 3, 1, "", "eos_token_id"], [12, 2, 1, "", "from_default"], [12, 2, 1, "", "from_file"], [12, 2, 1, "", "from_official"], [12, 2, 1, "", "from_preset_data"], [12, 3, 1, "", "length_penalty"], [12, 3, 1, "", "max_length"], [12, 3, 1, "", "max_time"], [12, 3, 1, "", "min_length"], [12, 3, 1, "", "model"], [12, 3, 1, "", "name"], [12, 3, 1, "", "order"], [12, 3, 1, "", "pad_token_id"], [12, 3, 1, "", "repetition_penalty"], [12, 3, 1, "", "repetition_penalty_frequency"], [12, 3, 1, "", "repetition_penalty_presence"], [12, 3, 1, "", "repetition_penalty_range"], [12, 3, 1, "", "repetition_penalty_slope"], [12, 3, 1, "", "repetition_penalty_whitelist"], [12, 2, 1, "", "set"], [12, 3, 1, "", "tail_free_sampling"], [12, 3, 1, "", "temperature"], [12, 3, 1, "", "textGenerationSettingsVersion"], [12, 2, 1, "", "to_file"], [12, 2, 1, "", "to_settings"], [12, 3, 1, "", "top_a"], [12, 3, 1, "", "top_k"], [12, 3, 1, "", "top_p"], [12, 3, 1, "", "typical_p"], [12, 2, 1, "", "update"]], "novelai_api.Preset.PresetView": [[12, 2, 1, "", "__init__"], [12, 3, 1, "", "model"]], "novelai_api.SchemaValidator": [[13, 1, 1, "", "SchemaValidator"]], "novelai_api.SchemaValidator.SchemaValidator": [[13, 2, 1, "", "__init__"], [13, 2, 1, "", "validate"]], "novelai_api.StoryHandler": [[14, 1, 1, "", "NovelAIStory"], [14, 1, 1, "", "NovelAIStoryStorage"]], "novelai_api.StoryHandler.NovelAIStory": [[14, 3, 1, "", "DEFAULT_MODEL"], [14, 3, 1, "", "TEXT_GENERATION_SETTINGS_VERSION"], [14, 2, 1, "", "__init__"], [14, 3, 1, "", "api"], [14, 3, 1, "", "banlists"], [14, 3, 1, "", "biases"], [14, 2, 1, "", "build_context"], [14, 2, 1, "", "choose"], [14, 3, 1, "", "context_size"], [14, 2, 1, "", "delete"], [14, 2, 1, "", "edit"], [14, 2, 1, "", "flatten"], [14, 2, 1, "", "generate"], [14, 2, 1, "", "get_current_tree"], [14, 3, 1, "", "global_settings"], [14, 3, 1, "", "key"], [14, 3, 1, "", "keystore"], [14, 3, 1, "", "model"], [14, 3, 1, "", "prefix"], [14, 3, 1, "", "preset"], [14, 2, 1, "", "redo"], [14, 2, 1, "", "save"], [14, 3, 1, "", "story"], [14, 3, 1, "", "storycontent"], [14, 3, 1, "", "tree"], [14, 2, 1, "", "undo"]], "novelai_api.StoryHandler.NovelAIStoryStorage": [[14, 2, 1, "", "__init__"], [14, 3, 1, "", "api"], [14, 2, 1, "", "create"], [14, 3, 1, "", "global_settings"], [14, 3, 1, "", "idstore"], [14, 3, 1, "", "keystore"], [14, 2, 1, "", "load"], [14, 2, 1, "", "load_from_remote"], [14, 2, 1, "", "loads"], [14, 2, 1, "", "select"], [14, 2, 1, "", "unload"]], "novelai_api.Tokenizer": [[15, 1, 1, "", "SentencePiece"], [15, 1, 1, "", "Tokenizer"]], "novelai_api.Tokenizer.SentencePiece": [[15, 2, 1, "", "__init__"], [15, 2, 1, "", "decode"], [15, 2, 1, "", "encode"]], "novelai_api.Tokenizer.Tokenizer": [[15, 2, 1, "", "decode"], [15, 2, 1, "", "encode"], [15, 2, 1, "", "get_tokenizer_name"]], "novelai_api.utils": [[16, 5, 1, "", "argon_hash"], [16, 5, 1, "", "b64_to_tokens"], [16, 5, 1, "", "compress_user_data"], [16, 5, 1, "", "decompress_user_data"], [16, 5, 1, "", "decrypt_data"], [16, 5, 1, "", "decrypt_user_data"], [16, 5, 1, "", "encrypt_data"], [16, 5, 1, "", "encrypt_user_data"], [16, 5, 1, "", "extract_preset_data"], [16, 5, 1, "", "get_access_key"], [16, 5, 1, "", "get_decrypted_user_data"], [16, 5, 1, "", "get_encryption_key"], [16, 5, 1, "", "link_content_to_story"], [16, 5, 1, "", "tokenize_if_not"], [16, 5, 1, "", "tokens_to_b64"], [16, 5, 1, "", "unlink_content_from_story"]], "tests.api": [[18, 0, 0, "-", "boilerplate"], [17, 0, 0, "-", "test_decrypt_encrypt_integrity_check"], [17, 0, 0, "-", "test_imagegen_samplers"], [17, 0, 0, "-", "test_sync_gen"], [17, 0, 0, "-", "test_textgen_presets"], [17, 0, 0, "-", "test_textgen_sanity"]], "tests.api.boilerplate": [[18, 1, 1, "", "API"], [18, 1, 1, "", "JSONEncoder"], [18, 5, 1, "", "api_handle"], [18, 5, 1, "", "api_handle_sync"], [18, 5, 1, "", "dumps"], [18, 5, 1, "", "error_handler"]], "tests.api.boilerplate.API": [[18, 2, 1, "", "__init__"], [18, 3, 1, "", "api"], [18, 4, 1, "", "encryption_key"], [18, 3, 1, "", "logger"]], "tests.api.boilerplate.JSONEncoder": [[18, 2, 1, "", "default"]], "tests.api.test_decrypt_encrypt_integrity_check": [[17, 5, 1, "", "aimodules_integrity"], [17, 5, 1, "", "keystore_integrity"], [17, 5, 1, "", "presets_integrity"], [17, 5, 1, "", "shelves_integrity"], [17, 5, 1, "", "stories_integrity"], [17, 5, 1, "", "storycontent_integrity"]], "tests.api.test_textgen_presets": [[17, 5, 1, "", "preset_from_default"], [17, 5, 1, "", "preset_from_official"], [17, 5, 1, "", "test_presets"]]}, "objtypes": {"0": "py:module", "1": "py:class", "2": "py:method", "3": "py:attribute", "4": "py:property", "5": "py:function", "6": "py:exception"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "class", "Python class"], "2": ["py", "method", "Python method"], "3": ["py", "attribute", "Python attribute"], "4": ["py", "property", "Python property"], "5": ["py", "function", "Python function"], "6": ["py", "exception", "Python exception"]}, "titleterms": {"exampl": [0, 2], "directori": [0, 17, 19], "requir": [0, 17], "usag": [0, 2, 17], "content": [0, 17, 19], "download_modul": 0, "py": [0, 17], "download_preset": 0, "download_shelv": 0, "download_stories_and_cont": 0, "generate_controlnet_mask": 0, "generate_imag": 0, "generate_image_test_sampl": 0, "generate_image_with_controlnet": 0, "generate_image_with_img2img": 0, "generate_text": 0, "generate_voic": 0, "login": 0, "login_with_proxi": 0, "suggest_tag": 0, "upscale_imag": 0, "refer": [0, 2, 17, 19], "boilerpl": [1, 18], "novelai": [2, 3], "api": [2, 3, 17], "us": 2, "modul": 2, "via": 2, "command": 2, "line": 2, "get": 2, "access": 2, "kei": 2, "token": [2, 15], "saniti": 2, "check": 2, "decod": 2, "your": 2, "code": 2, "low_level": 2, "high_level": 2, "develop": 2, "contribut": 2, "test": 2, "against": 2, "mock": [2, 19], "doc": 2, "todo": 2, "fixm": 2, "review": 2, "fix": 2, "work": 2, "progress": 2, "packag": 3, "novelai_api": [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], "banlist": 4, "biasgroup": 5, "globalset": 6, "idstor": 7, "imagepreset": 8, "keystor": 9, "novelaierror": 10, "preset": 12, "schemavalid": 13, "storyhandl": 14, "util": 16, "test_decrypt_encrypt_integrity_check": 17, "test_imagegen_sampl": 17, "test_sync_gen": 17, "test_textgen_preset": 17, "test_textgen_san": 17}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 8, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.intersphinx": 1, "sphinx.ext.viewcode": 1, "sphinx_last_updated_by_git": 1, "sphinx": 57}, "alltitles": {"example directory": [[0, "example-directory"]], "Requirements": [[0, "requirements"], [17, "requirements"]], "Usage": [[0, "usage"], [2, "usage"], [17, "usage"]], "Content": [[0, "module-example.download_modules"], [17, "content"], [19, "content"]], "download_modules.py": [[0, "download-modules-py"]], "download_presets.py": [[0, "download-presets-py"]], "download_shelves.py": [[0, "download-shelves-py"]], "download_stories_and_content.py": [[0, "download-stories-and-content-py"]], "generate_controlnet_masks.py": [[0, "generate-controlnet-masks-py"]], "generate_image.py": [[0, "generate-image-py"]], "generate_image_test_samplers.py": [[0, "generate-image-test-samplers-py"]], "generate_image_with_controlnet.py": [[0, "generate-image-with-controlnet-py"]], "generate_image_with_img2img.py": [[0, "generate-image-with-img2img-py"]], "generate_text.py": [[0, "generate-text-py"]], "generate_voice.py": [[0, "generate-voice-py"]], "login.py": [[0, "login-py"]], "login_with_proxy.py": [[0, "login-with-proxy-py"]], "suggest_tags.py": [[0, "suggest-tags-py"]], "upscale_image.py": [[0, "upscale-image-py"]], "Reference": [[0, "reference"], [2, "reference"], [17, "reference"], [19, "reference"]], "boilerplate": [[1, "module-example.boilerplate"], [18, "module-tests.api.boilerplate"]], "novelai-api": [[2, "novelai-api"], [2, "novelai-api"]], "Using the module via Command Line": [[2, "using-the-module-via-command-line"]], "Get access key": [[2, "get-access-key"]], "Get access token": [[2, "get-access-token"]], "Sanity check": [[2, "sanity-check"]], "Decode": [[2, "decode"]], "Using the module in your code": [[2, "using-the-module-in-your-code"]], "low_level": [[2, "low-level"]], "high_level": [[2, "high-level"]], "Development": [[2, "development"]], "Contributing": [[2, "contributing"]], "Testing against the API": [[2, "testing-against-the-api"]], "Testing against the mocked API": [[2, "testing-against-the-mocked-api"]], "Docs": [[2, "docs"]], "TODO": [[2, "todo"]], "FIXME:": [[2, "fixme"]], "Reviewing/Fixing:": [[2, "reviewing-fixing"]], "Work in Progress:": [[2, "work-in-progress"]], "example": [[2, "example"]], "Test API": [[2, "test-api"]], "Test Mocked API": [[2, "test-mocked-api"]], "novelai-api package": [[3, "novelai-api-package"]], "novelai_api.BanList": [[4, "module-novelai_api.BanList"]], "novelai_api.BiasGroup": [[5, "module-novelai_api.BiasGroup"]], "novelai_api.GlobalSettings": [[6, "module-novelai_api.GlobalSettings"]], "novelai_api.Idstore": [[7, "module-novelai_api.Idstore"]], "novelai_api.ImagePreset": [[8, "module-novelai_api.ImagePreset"]], "novelai_api.Keystore": [[9, "module-novelai_api.Keystore"]], "novelai_api.NovelAIError": [[10, "module-novelai_api.NovelAIError"]], "novelai_api.NovelAI_API": [[11, "module-novelai_api.NovelAI_API"]], "novelai_api.Preset": [[12, "module-novelai_api.Preset"]], "novelai_api.SchemaValidator": [[13, "module-novelai_api.SchemaValidator"]], "novelai_api.StoryHandler": [[14, "module-novelai_api.StoryHandler"]], "novelai_api.Tokenizer": [[15, "module-novelai_api.Tokenizer"]], "novelai_api.utils": [[16, "module-novelai_api.utils"]], "API directory": [[17, "api-directory"]], "test_decrypt_encrypt_integrity_check.py": [[17, "module-tests.api.test_decrypt_encrypt_integrity_check"]], "test_imagegen_samplers.py": [[17, "module-tests.api.test_imagegen_samplers"]], "test_sync_gen.py": [[17, "module-tests.api.test_sync_gen"]], "test_textgen_presets.py": [[17, "module-tests.api.test_textgen_presets"]], "test_textgen_sanity.py": [[17, "module-tests.api.test_textgen_sanity"]], "Mock directory": [[19, "mock-directory"]]}, "indexentries": {"example.download_modules": [[0, "module-example.download_modules"]], "example.download_presets": [[0, "module-example.download_presets"]], "example.download_shelves": [[0, "module-example.download_shelves"]], "example.download_stories_and_content": [[0, "module-example.download_stories_and_content"]], "example.generate_controlnet_masks": [[0, "module-example.generate_controlnet_masks"]], "example.generate_image": [[0, "module-example.generate_image"]], "example.generate_image_test_samplers": [[0, "module-example.generate_image_test_samplers"]], "example.generate_image_with_controlnet": [[0, "module-example.generate_image_with_controlnet"]], "example.generate_image_with_img2img": [[0, "module-example.generate_image_with_img2img"]], "example.generate_text": [[0, "module-example.generate_text"]], "example.generate_voice": [[0, "module-example.generate_voice"]], "example.login": [[0, "module-example.login"]], "example.login_with_proxy": [[0, "module-example.login_with_proxy"]], "example.suggest_tags": [[0, "module-example.suggest_tags"]], "example.upscale_image": [[0, "module-example.upscale_image"]], "module": [[0, "module-example.download_modules"], [0, "module-example.download_presets"], [0, "module-example.download_shelves"], [0, "module-example.download_stories_and_content"], [0, "module-example.generate_controlnet_masks"], [0, "module-example.generate_image"], [0, "module-example.generate_image_test_samplers"], [0, "module-example.generate_image_with_controlnet"], [0, "module-example.generate_image_with_img2img"], [0, "module-example.generate_text"], [0, "module-example.generate_voice"], [0, "module-example.login"], [0, "module-example.login_with_proxy"], [0, "module-example.suggest_tags"], [0, "module-example.upscale_image"], [1, "module-example.boilerplate"], [4, "module-novelai_api.BanList"], [5, "module-novelai_api.BiasGroup"], [6, "module-novelai_api.GlobalSettings"], [7, "module-novelai_api.Idstore"], [8, "module-novelai_api.ImagePreset"], [9, "module-novelai_api.Keystore"], [10, "module-novelai_api.NovelAIError"], [11, "module-novelai_api.NovelAI_API"], [12, "module-novelai_api.Preset"], [13, "module-novelai_api.SchemaValidator"], [14, "module-novelai_api.StoryHandler"], [15, "module-novelai_api.Tokenizer"], [16, "module-novelai_api.utils"], [17, "module-tests.api.test_decrypt_encrypt_integrity_check"], [17, "module-tests.api.test_imagegen_samplers"], [17, "module-tests.api.test_sync_gen"], [17, "module-tests.api.test_textgen_presets"], [17, "module-tests.api.test_textgen_sanity"], [18, "module-tests.api.boilerplate"]], "api (class in example.boilerplate)": [[1, "example.boilerplate.API"]], "jsonencoder (class in example.boilerplate)": [[1, "example.boilerplate.JSONEncoder"]], "__init__() (api method)": [[1, "example.boilerplate.API.__init__"], [18, "tests.api.boilerplate.API.__init__"]], "api (api attribute)": [[1, "example.boilerplate.API.api"], [18, "tests.api.boilerplate.API.api"]], "default() (jsonencoder method)": [[1, "example.boilerplate.JSONEncoder.default"], [18, "tests.api.boilerplate.JSONEncoder.default"]], "dumps() (in module example.boilerplate)": [[1, "example.boilerplate.dumps"]], "encryption_key (api property)": [[1, "example.boilerplate.API.encryption_key"], [18, "tests.api.boilerplate.API.encryption_key"]], "example.boilerplate": [[1, "module-example.boilerplate"]], "logger (api attribute)": [[1, "example.boilerplate.API.logger"], [18, "tests.api.boilerplate.API.logger"]], "banlist (class in novelai_api.banlist)": [[4, "novelai_api.BanList.BanList"]], "__init__() (banlist method)": [[4, "novelai_api.BanList.BanList.__init__"]], "add() (banlist method)": [[4, "novelai_api.BanList.BanList.add"]], "enabled (banlist attribute)": [[4, "novelai_api.BanList.BanList.enabled"]], "get_tokenized_entries() (banlist method)": [[4, "novelai_api.BanList.BanList.get_tokenized_entries"]], "novelai_api.banlist": [[4, "module-novelai_api.BanList"]], "biasgroup (class in novelai_api.biasgroup)": [[5, "novelai_api.BiasGroup.BiasGroup"]], "__init__() (biasgroup method)": [[5, "novelai_api.BiasGroup.BiasGroup.__init__"]], "add() (biasgroup method)": [[5, "novelai_api.BiasGroup.BiasGroup.add"]], "bias (biasgroup attribute)": [[5, "novelai_api.BiasGroup.BiasGroup.bias"]], "enabled (biasgroup attribute)": [[5, "novelai_api.BiasGroup.BiasGroup.enabled"]], "ensure_sequence_finish (biasgroup attribute)": [[5, "novelai_api.BiasGroup.BiasGroup.ensure_sequence_finish"]], "from_data() (biasgroup class method)": [[5, "novelai_api.BiasGroup.BiasGroup.from_data"]], "generate_once (biasgroup attribute)": [[5, "novelai_api.BiasGroup.BiasGroup.generate_once"]], "get_tokenized_entries() (biasgroup method)": [[5, "novelai_api.BiasGroup.BiasGroup.get_tokenized_entries"]], "novelai_api.biasgroup": [[5, "module-novelai_api.BiasGroup"]], "globalsettings (class in novelai_api.globalsettings)": [[6, "novelai_api.GlobalSettings.GlobalSettings"]], "no_logprobs (globalsettings attribute)": [[6, "novelai_api.GlobalSettings.GlobalSettings.NO_LOGPROBS"]], "__init__() (globalsettings method)": [[6, "novelai_api.GlobalSettings.GlobalSettings.__init__"]], "ban_ambiguous_genji_tokens (globalsettings attribute)": [[6, "novelai_api.GlobalSettings.GlobalSettings.ban_ambiguous_genji_tokens"]], "ban_brackets (globalsettings attribute)": [[6, "novelai_api.GlobalSettings.GlobalSettings.ban_brackets"]], "bias_dinkus_asterism (globalsettings attribute)": [[6, "novelai_api.GlobalSettings.GlobalSettings.bias_dinkus_asterism"]], "copy() (globalsettings method)": [[6, "novelai_api.GlobalSettings.GlobalSettings.copy"]], "generate_until_sentence (globalsettings attribute)": [[6, "novelai_api.GlobalSettings.GlobalSettings.generate_until_sentence"]], "novelai_api.globalsettings": [[6, "module-novelai_api.GlobalSettings"]], "num_logprobs (globalsettings attribute)": [[6, "novelai_api.GlobalSettings.GlobalSettings.num_logprobs"]], "to_settings() (globalsettings method)": [[6, "novelai_api.GlobalSettings.GlobalSettings.to_settings"]], "idstore (class in novelai_api.idstore)": [[7, "novelai_api.Idstore.Idstore"]], "__init__() (idstore method)": [[7, "novelai_api.Idstore.Idstore.__init__"]], "create() (idstore method)": [[7, "novelai_api.Idstore.Idstore.create"]], "novelai_api.idstore": [[7, "module-novelai_api.Idstore"]], "register() (idstore method)": [[7, "novelai_api.Idstore.Idstore.register"]], "anime_curated (imagemodel attribute)": [[8, "novelai_api.ImagePreset.ImageModel.Anime_Curated"]], "anime_full (imagemodel attribute)": [[8, "novelai_api.ImagePreset.ImageModel.Anime_Full"]], "anime_inpainting (imagemodel attribute)": [[8, "novelai_api.ImagePreset.ImageModel.Anime_Inpainting"]], "building_control (controlnetmodel attribute)": [[8, "novelai_api.ImagePreset.ControlNetModel.Building_Control"]], "controlnetmodel (class in novelai_api.imagepreset)": [[8, "novelai_api.ImagePreset.ControlNetModel"]], "form_lock (controlnetmodel attribute)": [[8, "novelai_api.ImagePreset.ControlNetModel.Form_Lock"]], "furry (imagemodel attribute)": [[8, "novelai_api.ImagePreset.ImageModel.Furry"]], "img2img (imagegenerationtype attribute)": [[8, "novelai_api.ImagePreset.ImageGenerationType.IMG2IMG"]], "imagegenerationtype (class in novelai_api.imagepreset)": [[8, "novelai_api.ImagePreset.ImageGenerationType"]], "imagemodel (class in novelai_api.imagepreset)": [[8, "novelai_api.ImagePreset.ImageModel"]], "imagepreset (class in novelai_api.imagepreset)": [[8, "novelai_api.ImagePreset.ImagePreset"]], "imageresolution (class in novelai_api.imagepreset)": [[8, "novelai_api.ImagePreset.ImageResolution"]], "imagesampler (class in novelai_api.imagepreset)": [[8, "novelai_api.ImagePreset.ImageSampler"]], "lanscaper (controlnetmodel attribute)": [[8, "novelai_api.ImagePreset.ControlNetModel.Lanscaper"]], "large_landscape (imageresolution attribute)": [[8, "novelai_api.ImagePreset.ImageResolution.Large_Landscape"]], "large_portrait (imageresolution attribute)": [[8, "novelai_api.ImagePreset.ImageResolution.Large_Portrait"]], "large_square (imageresolution attribute)": [[8, "novelai_api.ImagePreset.ImageResolution.Large_Square"]], "normal (imagegenerationtype attribute)": [[8, "novelai_api.ImagePreset.ImageGenerationType.NORMAL"]], "normal_landscape (imageresolution attribute)": [[8, "novelai_api.ImagePreset.ImageResolution.Normal_Landscape"]], "normal_portrait (imageresolution attribute)": [[8, "novelai_api.ImagePreset.ImageResolution.Normal_Portrait"]], "normal_square (imageresolution attribute)": [[8, "novelai_api.ImagePreset.ImageResolution.Normal_Square"]], "palette_swap (controlnetmodel attribute)": [[8, "novelai_api.ImagePreset.ControlNetModel.Palette_Swap"]], "preset_bad_anatomy (ucpreset attribute)": [[8, "novelai_api.ImagePreset.UCPreset.Preset_Bad_Anatomy"]], "preset_low_quality (ucpreset attribute)": [[8, "novelai_api.ImagePreset.UCPreset.Preset_Low_Quality"]], "preset_low_quality_bad_anatomy (ucpreset attribute)": [[8, "novelai_api.ImagePreset.UCPreset.Preset_Low_Quality_Bad_Anatomy"]], "preset_none (ucpreset attribute)": [[8, "novelai_api.ImagePreset.UCPreset.Preset_None"]], "scrible (controlnetmodel attribute)": [[8, "novelai_api.ImagePreset.ControlNetModel.Scrible"]], "small_landscape (imageresolution attribute)": [[8, "novelai_api.ImagePreset.ImageResolution.Small_Landscape"]], "small_portrait (imageresolution attribute)": [[8, "novelai_api.ImagePreset.ImageResolution.Small_Portrait"]], "small_square (imageresolution attribute)": [[8, "novelai_api.ImagePreset.ImageResolution.Small_Square"]], "ucpreset (class in novelai_api.imagepreset)": [[8, "novelai_api.ImagePreset.UCPreset"]], "__init__() (imagepreset method)": [[8, "novelai_api.ImagePreset.ImagePreset.__init__"]], "calculate_cost() (imagepreset method)": [[8, "novelai_api.ImagePreset.ImagePreset.calculate_cost"]], "controlnet_condition (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.controlnet_condition"]], "controlnet_model (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.controlnet_model"]], "controlnet_strength (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.controlnet_strength"]], "copy() (imagepreset method)": [[8, "novelai_api.ImagePreset.ImagePreset.copy"]], "ddim (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.ddim"]], "decrisper (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.decrisper"]], "from_file() (imagepreset class method)": [[8, "novelai_api.ImagePreset.ImagePreset.from_file"]], "get_max_n_samples() (imagepreset method)": [[8, "novelai_api.ImagePreset.ImagePreset.get_max_n_samples"]], "image (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.image"]], "k_dpm_2 (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.k_dpm_2"]], "k_dpm_2_ancestral (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.k_dpm_2_ancestral"]], "k_dpm_adaptive (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.k_dpm_adaptive"]], "k_dpm_fast (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.k_dpm_fast"]], "k_dpmpp_2m (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.k_dpmpp_2m"]], "k_dpmpp_2s_ancestral (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.k_dpmpp_2s_ancestral"]], "k_dpmpp_sde (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.k_dpmpp_sde"]], "k_euler (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.k_euler"]], "k_euler_ancestral (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.k_euler_ancestral"]], "k_heun (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.k_heun"]], "k_lms (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.k_lms"]], "last_seed (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.last_seed"]], "n_samples (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.n_samples"]], "nai_smea (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.nai_smea"]], "nai_smea_dyn (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.nai_smea_dyn"]], "noise (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.noise"]], "novelai_api.imagepreset": [[8, "module-novelai_api.ImagePreset"]], "plms (imagesampler attribute)": [[8, "novelai_api.ImagePreset.ImageSampler.plms"]], "quality_toggle (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.quality_toggle"]], "resolution (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.resolution"]], "sampler (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.sampler"]], "scale (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.scale"]], "seed (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.seed"]], "smea (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.smea"]], "smea_dyn (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.smea_dyn"]], "steps (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.steps"]], "strength (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.strength"]], "to_file() (imagepreset method)": [[8, "novelai_api.ImagePreset.ImagePreset.to_file"]], "to_settings() (imagepreset method)": [[8, "novelai_api.ImagePreset.ImagePreset.to_settings"]], "uc (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.uc"]], "uc_preset (imagepreset attribute)": [[8, "novelai_api.ImagePreset.ImagePreset.uc_preset"]], "update() (imagepreset method)": [[8, "novelai_api.ImagePreset.ImagePreset.update"]], "keystore (class in novelai_api.keystore)": [[9, "novelai_api.Keystore.Keystore"]], "__init__() (keystore method)": [[9, "novelai_api.Keystore.Keystore.__init__"]], "create() (keystore method)": [[9, "novelai_api.Keystore.Keystore.create"]], "data (keystore attribute)": [[9, "novelai_api.Keystore.Keystore.data"]], "decrypt() (keystore method)": [[9, "novelai_api.Keystore.Keystore.decrypt"]], "encrypt() (keystore method)": [[9, "novelai_api.Keystore.Keystore.encrypt"]], "novelai_api.keystore": [[9, "module-novelai_api.Keystore"]], "novelaierror": [[10, "novelai_api.NovelAIError.NovelAIError"]], "__init__() (novelaierror method)": [[10, "novelai_api.NovelAIError.NovelAIError.__init__"]], "message (novelaierror attribute)": [[10, "novelai_api.NovelAIError.NovelAIError.message"]], "novelai_api.novelaierror": [[10, "module-novelai_api.NovelAIError"]], "status (novelaierror attribute)": [[10, "novelai_api.NovelAIError.NovelAIError.status"]], "base_address (novelaiapi attribute)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.BASE_ADDRESS"]], "lib_root (novelaiapi attribute)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.LIB_ROOT"]], "novelaiapi (class in novelai_api.novelai_api)": [[11, "novelai_api.NovelAI_API.NovelAIAPI"]], "__init__() (novelaiapi method)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.__init__"]], "attach_session() (novelaiapi method)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.attach_session"]], "cookies (novelaiapi attribute)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.cookies"]], "detach_session() (novelaiapi method)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.detach_session"]], "headers (novelaiapi attribute)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.headers"]], "high_level (novelaiapi attribute)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.high_level"]], "logger (novelaiapi attribute)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.logger"]], "low_level (novelaiapi attribute)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.low_level"]], "novelai_api.novelai_api": [[11, "module-novelai_api.NovelAI_API"]], "proxy (novelaiapi attribute)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.proxy"]], "proxy_auth (novelaiapi attribute)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.proxy_auth"]], "session (novelaiapi attribute)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.session"]], "timeout (novelaiapi property)": [[11, "novelai_api.NovelAI_API.NovelAIAPI.timeout"]], "clio (model attribute)": [[12, "novelai_api.Preset.Model.Clio"]], "defaults (preset attribute)": [[12, "novelai_api.Preset.Preset.DEFAULTS"]], "euterpe (model attribute)": [[12, "novelai_api.Preset.Model.Euterpe"]], "genji (model attribute)": [[12, "novelai_api.Preset.Model.Genji"]], "hypebot (model attribute)": [[12, "novelai_api.Preset.Model.HypeBot"]], "inline (model attribute)": [[12, "novelai_api.Preset.Model.Inline"]], "krake (model attribute)": [[12, "novelai_api.Preset.Model.Krake"]], "model (class in novelai_api.preset)": [[12, "novelai_api.Preset.Model"]], "order (class in novelai_api.preset)": [[12, "novelai_api.Preset.Order"]], "preset (class in novelai_api.preset)": [[12, "novelai_api.Preset.Preset"]], "presetview (class in novelai_api.preset)": [[12, "novelai_api.Preset.PresetView"]], "sigurd (model attribute)": [[12, "novelai_api.Preset.Model.Sigurd"]], "snek (model attribute)": [[12, "novelai_api.Preset.Model.Snek"]], "strenum (class in novelai_api.preset)": [[12, "novelai_api.Preset.StrEnum"]], "tfs (order attribute)": [[12, "novelai_api.Preset.Order.TFS"]], "temperature (order attribute)": [[12, "novelai_api.Preset.Order.Temperature"]], "top_a (order attribute)": [[12, "novelai_api.Preset.Order.Top_A"]], "top_k (order attribute)": [[12, "novelai_api.Preset.Order.Top_K"]], "top_p (order attribute)": [[12, "novelai_api.Preset.Order.Top_P"]], "typical_p (order attribute)": [[12, "novelai_api.Preset.Order.Typical_P"]], "__init__() (preset method)": [[12, "novelai_api.Preset.Preset.__init__"]], "__init__() (presetview method)": [[12, "novelai_api.Preset.PresetView.__init__"]], "bos_token_id (preset attribute)": [[12, "novelai_api.Preset.Preset.bos_token_id"]], "collapse_model() (in module novelai_api.preset)": [[12, "novelai_api.Preset.collapse_model"]], "copy() (preset method)": [[12, "novelai_api.Preset.Preset.copy"]], "diversity_penalty (preset attribute)": [[12, "novelai_api.Preset.Preset.diversity_penalty"]], "enable() (preset method)": [[12, "novelai_api.Preset.Preset.enable"]], "enum_contains() (in module novelai_api.preset)": [[12, "novelai_api.Preset.enum_contains"]], "enum_member_values (model attribute)": [[12, "novelai_api.Preset.Model.enum_member_values"]], "eos_token_id (preset attribute)": [[12, "novelai_api.Preset.Preset.eos_token_id"]], "from_default() (preset class method)": [[12, "novelai_api.Preset.Preset.from_default"]], "from_file() (preset class method)": [[12, "novelai_api.Preset.Preset.from_file"]], "from_official() (preset class method)": [[12, "novelai_api.Preset.Preset.from_official"]], "from_preset_data() (preset class method)": [[12, "novelai_api.Preset.Preset.from_preset_data"]], "length_penalty (preset attribute)": [[12, "novelai_api.Preset.Preset.length_penalty"]], "max_length (preset attribute)": [[12, "novelai_api.Preset.Preset.max_length"]], "max_time (preset attribute)": [[12, "novelai_api.Preset.Preset.max_time"]], "min_length (preset attribute)": [[12, "novelai_api.Preset.Preset.min_length"]], "model (preset attribute)": [[12, "novelai_api.Preset.Preset.model"]], "model (presetview attribute)": [[12, "novelai_api.Preset.PresetView.model"]], "name (preset attribute)": [[12, "novelai_api.Preset.Preset.name"]], "novelai_api.preset": [[12, "module-novelai_api.Preset"]], "order (preset attribute)": [[12, "novelai_api.Preset.Preset.order"]], "pad_token_id (preset attribute)": [[12, "novelai_api.Preset.Preset.pad_token_id"]], "repetition_penalty (preset attribute)": [[12, "novelai_api.Preset.Preset.repetition_penalty"]], "repetition_penalty_frequency (preset attribute)": [[12, "novelai_api.Preset.Preset.repetition_penalty_frequency"]], "repetition_penalty_presence (preset attribute)": [[12, "novelai_api.Preset.Preset.repetition_penalty_presence"]], "repetition_penalty_range (preset attribute)": [[12, "novelai_api.Preset.Preset.repetition_penalty_range"]], "repetition_penalty_slope (preset attribute)": [[12, "novelai_api.Preset.Preset.repetition_penalty_slope"]], "repetition_penalty_whitelist (preset attribute)": [[12, "novelai_api.Preset.Preset.repetition_penalty_whitelist"]], "set() (preset method)": [[12, "novelai_api.Preset.Preset.set"]], "tail_free_sampling (preset attribute)": [[12, "novelai_api.Preset.Preset.tail_free_sampling"]], "temperature (preset attribute)": [[12, "novelai_api.Preset.Preset.temperature"]], "textgenerationsettingsversion (preset attribute)": [[12, "novelai_api.Preset.Preset.textGenerationSettingsVersion"]], "to_file() (preset method)": [[12, "novelai_api.Preset.Preset.to_file"]], "to_settings() (preset method)": [[12, "novelai_api.Preset.Preset.to_settings"]], "top_a (preset attribute)": [[12, "novelai_api.Preset.Preset.top_a"]], "top_k (preset attribute)": [[12, "novelai_api.Preset.Preset.top_k"]], "top_p (preset attribute)": [[12, "novelai_api.Preset.Preset.top_p"]], "typical_p (preset attribute)": [[12, "novelai_api.Preset.Preset.typical_p"]], "update() (preset method)": [[12, "novelai_api.Preset.Preset.update"]], "schemavalidator (class in novelai_api.schemavalidator)": [[13, "novelai_api.SchemaValidator.SchemaValidator"]], "__init__() (schemavalidator method)": [[13, "novelai_api.SchemaValidator.SchemaValidator.__init__"]], "novelai_api.schemavalidator": [[13, "module-novelai_api.SchemaValidator"]], "validate() (schemavalidator class method)": [[13, "novelai_api.SchemaValidator.SchemaValidator.validate"]], "default_model (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.DEFAULT_MODEL"]], "novelaistory (class in novelai_api.storyhandler)": [[14, "novelai_api.StoryHandler.NovelAIStory"]], "novelaistorystorage (class in novelai_api.storyhandler)": [[14, "novelai_api.StoryHandler.NovelAIStoryStorage"]], "text_generation_settings_version (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.TEXT_GENERATION_SETTINGS_VERSION"]], "__init__() (novelaistory method)": [[14, "novelai_api.StoryHandler.NovelAIStory.__init__"]], "__init__() (novelaistorystorage method)": [[14, "novelai_api.StoryHandler.NovelAIStoryStorage.__init__"]], "api (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.api"]], "api (novelaistorystorage attribute)": [[14, "novelai_api.StoryHandler.NovelAIStoryStorage.api"]], "banlists (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.banlists"]], "biases (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.biases"]], "build_context() (novelaistory method)": [[14, "novelai_api.StoryHandler.NovelAIStory.build_context"]], "choose() (novelaistory method)": [[14, "novelai_api.StoryHandler.NovelAIStory.choose"]], "context_size (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.context_size"]], "create() (novelaistorystorage method)": [[14, "novelai_api.StoryHandler.NovelAIStoryStorage.create"]], "delete() (novelaistory method)": [[14, "novelai_api.StoryHandler.NovelAIStory.delete"]], "edit() (novelaistory method)": [[14, "novelai_api.StoryHandler.NovelAIStory.edit"]], "flatten() (novelaistory method)": [[14, "novelai_api.StoryHandler.NovelAIStory.flatten"]], "generate() (novelaistory method)": [[14, "novelai_api.StoryHandler.NovelAIStory.generate"]], "get_current_tree() (novelaistory method)": [[14, "novelai_api.StoryHandler.NovelAIStory.get_current_tree"]], "global_settings (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.global_settings"]], "global_settings (novelaistorystorage attribute)": [[14, "novelai_api.StoryHandler.NovelAIStoryStorage.global_settings"]], "idstore (novelaistorystorage attribute)": [[14, "novelai_api.StoryHandler.NovelAIStoryStorage.idstore"]], "key (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.key"]], "keystore (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.keystore"]], "keystore (novelaistorystorage attribute)": [[14, "novelai_api.StoryHandler.NovelAIStoryStorage.keystore"]], "load() (novelaistorystorage method)": [[14, "novelai_api.StoryHandler.NovelAIStoryStorage.load"]], "load_from_remote() (novelaistorystorage method)": [[14, "novelai_api.StoryHandler.NovelAIStoryStorage.load_from_remote"]], "loads() (novelaistorystorage method)": [[14, "novelai_api.StoryHandler.NovelAIStoryStorage.loads"]], "model (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.model"]], "novelai_api.storyhandler": [[14, "module-novelai_api.StoryHandler"]], "prefix (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.prefix"]], "preset (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.preset"]], "redo() (novelaistory method)": [[14, "novelai_api.StoryHandler.NovelAIStory.redo"]], "save() (novelaistory method)": [[14, "novelai_api.StoryHandler.NovelAIStory.save"]], "select() (novelaistorystorage method)": [[14, "novelai_api.StoryHandler.NovelAIStoryStorage.select"]], "story (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.story"]], "storycontent (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.storycontent"]], "tree (novelaistory attribute)": [[14, "novelai_api.StoryHandler.NovelAIStory.tree"]], "undo() (novelaistory method)": [[14, "novelai_api.StoryHandler.NovelAIStory.undo"]], "unload() (novelaistorystorage method)": [[14, "novelai_api.StoryHandler.NovelAIStoryStorage.unload"]], "sentencepiece (class in novelai_api.tokenizer)": [[15, "novelai_api.Tokenizer.SentencePiece"]], "tokenizer (class in novelai_api.tokenizer)": [[15, "novelai_api.Tokenizer.Tokenizer"]], "__init__() (sentencepiece method)": [[15, "novelai_api.Tokenizer.SentencePiece.__init__"]], "decode() (sentencepiece method)": [[15, "novelai_api.Tokenizer.SentencePiece.decode"]], "decode() (tokenizer class method)": [[15, "novelai_api.Tokenizer.Tokenizer.decode"]], "encode() (sentencepiece method)": [[15, "novelai_api.Tokenizer.SentencePiece.encode"]], "encode() (tokenizer class method)": [[15, "novelai_api.Tokenizer.Tokenizer.encode"]], "get_tokenizer_name() (tokenizer class method)": [[15, "novelai_api.Tokenizer.Tokenizer.get_tokenizer_name"]], "novelai_api.tokenizer": [[15, "module-novelai_api.Tokenizer"]], "argon_hash() (in module novelai_api.utils)": [[16, "novelai_api.utils.argon_hash"]], "b64_to_tokens() (in module novelai_api.utils)": [[16, "novelai_api.utils.b64_to_tokens"]], "compress_user_data() (in module novelai_api.utils)": [[16, "novelai_api.utils.compress_user_data"]], "decompress_user_data() (in module novelai_api.utils)": [[16, "novelai_api.utils.decompress_user_data"]], "decrypt_data() (in module novelai_api.utils)": [[16, "novelai_api.utils.decrypt_data"]], "decrypt_user_data() (in module novelai_api.utils)": [[16, "novelai_api.utils.decrypt_user_data"]], "encrypt_data() (in module novelai_api.utils)": [[16, "novelai_api.utils.encrypt_data"]], "encrypt_user_data() (in module novelai_api.utils)": [[16, "novelai_api.utils.encrypt_user_data"]], "extract_preset_data() (in module novelai_api.utils)": [[16, "novelai_api.utils.extract_preset_data"]], "get_access_key() (in module novelai_api.utils)": [[16, "novelai_api.utils.get_access_key"]], "get_decrypted_user_data() (in module novelai_api.utils)": [[16, "novelai_api.utils.get_decrypted_user_data"]], "get_encryption_key() (in module novelai_api.utils)": [[16, "novelai_api.utils.get_encryption_key"]], "link_content_to_story() (in module novelai_api.utils)": [[16, "novelai_api.utils.link_content_to_story"]], "novelai_api.utils": [[16, "module-novelai_api.utils"]], "tokenize_if_not() (in module novelai_api.utils)": [[16, "novelai_api.utils.tokenize_if_not"]], "tokens_to_b64() (in module novelai_api.utils)": [[16, "novelai_api.utils.tokens_to_b64"]], "unlink_content_from_story() (in module novelai_api.utils)": [[16, "novelai_api.utils.unlink_content_from_story"]], "aimodules_integrity() (in module tests.api.test_decrypt_encrypt_integrity_check)": [[17, "tests.api.test_decrypt_encrypt_integrity_check.aimodules_integrity"]], "keystore_integrity() (in module tests.api.test_decrypt_encrypt_integrity_check)": [[17, "tests.api.test_decrypt_encrypt_integrity_check.keystore_integrity"]], "preset_from_default() (in module tests.api.test_textgen_presets)": [[17, "tests.api.test_textgen_presets.preset_from_default"]], "preset_from_official() (in module tests.api.test_textgen_presets)": [[17, "tests.api.test_textgen_presets.preset_from_official"]], "presets_integrity() (in module tests.api.test_decrypt_encrypt_integrity_check)": [[17, "tests.api.test_decrypt_encrypt_integrity_check.presets_integrity"]], "shelves_integrity() (in module tests.api.test_decrypt_encrypt_integrity_check)": [[17, "tests.api.test_decrypt_encrypt_integrity_check.shelves_integrity"]], "stories_integrity() (in module tests.api.test_decrypt_encrypt_integrity_check)": [[17, "tests.api.test_decrypt_encrypt_integrity_check.stories_integrity"]], "storycontent_integrity() (in module tests.api.test_decrypt_encrypt_integrity_check)": [[17, "tests.api.test_decrypt_encrypt_integrity_check.storycontent_integrity"]], "test_presets() (in module tests.api.test_textgen_presets)": [[17, "tests.api.test_textgen_presets.test_presets"]], "tests.api.test_decrypt_encrypt_integrity_check": [[17, "module-tests.api.test_decrypt_encrypt_integrity_check"]], "tests.api.test_imagegen_samplers": [[17, "module-tests.api.test_imagegen_samplers"]], "tests.api.test_sync_gen": [[17, "module-tests.api.test_sync_gen"]], "tests.api.test_textgen_presets": [[17, "module-tests.api.test_textgen_presets"]], "tests.api.test_textgen_sanity": [[17, "module-tests.api.test_textgen_sanity"]], "api (class in tests.api.boilerplate)": [[18, "tests.api.boilerplate.API"]], "jsonencoder (class in tests.api.boilerplate)": [[18, "tests.api.boilerplate.JSONEncoder"]], "api_handle() (in module tests.api.boilerplate)": [[18, "tests.api.boilerplate.api_handle"]], "api_handle_sync() (in module tests.api.boilerplate)": [[18, "tests.api.boilerplate.api_handle_sync"]], "dumps() (in module tests.api.boilerplate)": [[18, "tests.api.boilerplate.dumps"]], "error_handler() (in module tests.api.boilerplate)": [[18, "tests.api.boilerplate.error_handler"]], "tests.api.boilerplate": [[18, "module-tests.api.boilerplate"]]}}) \ No newline at end of file diff --git a/tests/api/api.boilerplate.html b/tests/api/api.boilerplate.html index 06c290d..bb36bbc 100644 --- a/tests/api/api.boilerplate.html +++ b/tests/api/api.boilerplate.html @@ -6,7 +6,7 @@ - boilerplate — NovelAI API 0.12.2 documentation + boilerplate — NovelAI API 0.13.0 documentation @@ -52,7 +52,7 @@

    Navigation

  • previous |
  • - + @@ -216,7 +216,7 @@

    Navigation

  • previous |
  • - + diff --git a/tests/api/api.html b/tests/api/api.html index fea99af..516d81e 100644 --- a/tests/api/api.html +++ b/tests/api/api.html @@ -6,7 +6,7 @@ - API directory — NovelAI API 0.12.2 documentation + API directory — NovelAI API 0.13.0 documentation @@ -52,7 +52,7 @@

    Navigation

  • previous |
  • - + @@ -266,7 +266,7 @@

    Navigation

  • previous |
  • - + diff --git a/tests/mock/mock.html b/tests/mock/mock.html index 7d1da88..274fc65 100644 --- a/tests/mock/mock.html +++ b/tests/mock/mock.html @@ -6,7 +6,7 @@ - Mock directory — NovelAI API 0.12.2 documentation + Mock directory — NovelAI API 0.13.0 documentation @@ -48,7 +48,7 @@

    Navigation

  • previous |
  • - + @@ -124,7 +124,7 @@

    Navigation

  • previous |
  • - +