Skip to content

Commit 46edbe9

Browse files
authored
Merge pull request #115 from LlmKira/dev
✨ feat(ai): update model prompts and version bump to 0.7.8
2 parents c76ad8e + 13dbbdb commit 46edbe9

File tree

3 files changed

+30
-4
lines changed

3 files changed

+30
-4
lines changed

pdm.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "novelai-python"
3-
version = "0.7.7"
3+
version = "0.7.8"
44
description = "NovelAI Python Binding With Pydantic"
55
authors = [
66
{ name = "sudoskys", email = "[email protected]" },
@@ -13,7 +13,7 @@ dependencies = [
1313
"httpx>=0.26.0",
1414
"shortuuid>=1.0.11",
1515
"Pillow>=10.2.0",
16-
"curl-cffi>=0.6.0",
16+
"curl-cffi>=0.9.0",
1717
"fastapi>=0.109.0",
1818
"uvicorn[standard]>=0.27.0.post1",
1919
"numpy>=1.24.4",

src/novelai_python/sdk/ai/_enum.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,6 @@ def get_uc_preset(model: ModelTypeAlias) -> List[UcPrompt]:
721721
),
722722
]
723723
elif model in [
724-
Model.CUSTOM,
725724
Model.NAI_DIFFUSION_4_FULL,
726725
Model.NAI_DIFFUSION_4_FULL_INPAINTING,
727726
]:
@@ -742,6 +741,33 @@ def get_uc_preset(model: ModelTypeAlias) -> List[UcPrompt]:
742741
text=""
743742
),
744743
]
744+
elif model in [
745+
Model.CUSTOM,
746+
Model.NAI_DIFFUSION_4_5_CURATED,
747+
Model.NAI_DIFFUSION_4_5_CURATED_INPAINTING,
748+
]:
749+
prompts = [
750+
UcPrompt(
751+
category="heavy",
752+
name="heavy",
753+
text="blurry, lowres, upscaled, artistic error, film grain, scan artifacts, worst quality, bad quality, jpeg artifacts, very displeasing, chromatic aberration, halftone, multiple views, logo, too many watermarks, negative space, blank page"
754+
),
755+
UcPrompt(
756+
category="light",
757+
name="light",
758+
text="blurry, lowres, upscaled, artistic error, scan artifacts, jpeg artifacts, logo, too many watermarks, negative space, blank page"
759+
),
760+
UcPrompt(
761+
category="human",
762+
name="humanFocus",
763+
text="blurry, lowres, upscaled, artistic error, film grain, scan artifacts, bad anatomy, bad hands, worst quality, bad quality, jpeg artifacts, very displeasing, chromatic aberration, halftone, multiple views, logo, too many watermarks, @_@, mismatched pupils, glowing eyes, negative space, blank page"
764+
),
765+
UcPrompt(
766+
category="none",
767+
name="none",
768+
text=""
769+
),
770+
]
745771
return prompts
746772

747773

0 commit comments

Comments
 (0)