Skip to content

Enhancement: Implement Proxy Support and Synchronize SDK with Website for Anti-Ban Measures #121

@TimmekHW

Description

@TimmekHW

The novelai banned us 8 days ago. All 3 of our service accounts have been banned.

Need:

  1. add a proxy
  2. fix the values
  3. change the order

1. need the ability to add proxies, SOCKS5 for each account, or just a method that would allow you to add proxies in requests and when connecting.
2. The "production" values on the Novelai website differ from the actual ones.
On the left is the website, on the right is the bot via your SDK

Image

Site:

{"input":"1girl, very aesthetic, masterpiece, no text","model":"nai-diffusion-4-5-full","action":"generate","parameters":{"params_version":3,"width":832,"height":1216,"scale":5.0,"sampler":"k_euler_ancestral","steps":23,"seed":151370756,"n_samples":1,"ucPreset":0,"qualityToggle":true,"autoSmea":false,"dynamic_thresholding":false,"controlnet_strength":1,"legacy":false,"add_original_image":true,"cfg_rescale":0,"noise_schedule":"karras","legacy_v3_extend":false,"skip_cfg_above_sigma":null,"use_coords":false,"legacy_uc":false,"normalize_reference_strength_multiple":true,"inpaintImg2ImgStrength":1,"characterPrompts":[],"v4_prompt":{"caption":{"base_caption":"1girl, very aesthetic, masterpiece, no text","char_captions":[]},"use_coords":false,"use_order":true},"v4_negative_prompt":{"caption":{"base_caption":"nsfw, lowres, artistic error, film grain, scan artifacts, worst quality, bad quality, jpeg artifacts, very displeasing, chromatic aberration, dithering, halftone, screentone, multiple views, logo, too many watermarks, negative space, blank page","char_captions":[]},"legacy_uc":false},"negative_prompt":"nsfw, lowres, artistic error, film grain, scan artifacts, worst quality, bad quality, jpeg artifacts, very displeasing, chromatic aberration, dithering, halftone, screentone, multiple views, logo, too many watermarks, negative space, blank page","deliberate_euler_ancestral_bug":false,"prefer_brownian":true}}

SDK

{"action": "generate", "input": "1girl, location, very aesthetic, masterpiece, no text", "model": "nai-diffusion-4-5-full", "parameters": {"width": 832, "height": 1216, "scale": 5.0, "sampler": "k_euler_ancestral", "steps": 23, "n_samples": 1, "ucPreset": 0, "qualityToggle": true, "dynamic_thresholding": false, "controlnet_strength": 1.0, "legacy": false, "cfg_rescale": 0.0, "noise_schedule": "karras", "legacy_v3_extend": false, "seed": 3729573430, "negative_prompt": "lowres, artistic error, film grain, scan artifacts, worst quality, bad quality, jpeg artifacts, very displeasing, chromatic aberration, dithering, halftone, screentone, multiple views, logo, too many watermarks, negative space, blank page", "reference_image_multiple": [], "reference_information_extracted_multiple": [], "reference_strength_multiple": [], "params_version": 3, "add_original_image": true, "use_coords": false, "characterPrompts": [], "inpaintImg2ImgStrength": 1.0, "v4_prompt": {"caption": {"base_caption": "1girl, location, very aesthetic, masterpiece, no text", "char_captions": []}, "use_coords": true, "use_order": true}, "v4_negative_prompt": {"caption": {"base_caption": "lowres, artistic error, film grain, scan artifacts, worst quality, bad quality, jpeg artifacts, very displeasing, chromatic aberration, dithering, halftone, screentone, multiple views, logo, too many watermarks, negative space, blank page", "char_captions": []}, "legacy_uc": false}, "deliberate_euler_ancestral_bug": false, "prefer_brownian": true, "autoSmea": false, "normalize_reference_strength_multiple": true, "legacy_uc": false}}

3. The strings and parameters (that is, not only the values) differ on the site from the version in the SDK. And the worst part is, their number and these parameters themselves depend on the installed model. 4.5 full, 4 full, 3 are the priority.

  1. The order of the parameters is also important. It should be 1in1 as on the website. Yes, this is the least of the reasons why they could have been banned, but it seems to me that they use various analytics methods to identify those who generate not on their site...

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions