Skip to content

Commit a6e35b8

Browse files
committed
sync
1 parent fe78c7d commit a6e35b8

3 files changed

Lines changed: 26 additions & 56 deletions

File tree

llms/extensions/providers/chutes.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ def __init__(self, **kwargs):
3939
"Animij",
4040
"iLustMix",
4141
]
42+
imageclassic_url = "https://vonkaiser-imageclassic.chutes.ai/generate"
43+
self.model_gen_urls = {
44+
"flux": imageclassic_url,
45+
"dreamshaper": imageclassic_url,
46+
"ilustmix": imageclassic_url,
47+
"juggernaut": imageclassic_url,
48+
"z-image-turbo": "https://vonkaiser-z-image-turbo.chutes.ai/generate",
49+
"Qwen-Image-2512": "https://vonkaiser-qwen-image-2512.chutes.ai/generate",
50+
"Qwen-Image-Edit-2511": "https://vonkaiser-qwen-image-edit-2511.chutes.ai/generate"
51+
}
4252

4353
async def chat(self, chat, provider=None, context=None):
4454
headers = {"Authorization": f"Bearer {self.api_key}"}
@@ -53,7 +63,7 @@ async def chat(self, chat, provider=None, context=None):
5363
steps = self.steps
5464
width = self.width
5565
height = self.height
56-
if chat["model"] == "chutes-z-image-turbo":
66+
if chat["model"] == "z-image-turbo":
5767
cfg_scale = min(self.cfg_scale, 5)
5868
payload = {
5969
"model": chat["model"],
@@ -85,8 +95,8 @@ async def chat(self, chat, provider=None, context=None):
8595
del payload["height"]
8696
payload["size"] = aspect_ratio
8797

88-
gen_url = self.gen_url
89-
if chat["model"].startswith("chutes-"):
98+
gen_url = self.model_gen_urls.get(chat["model"])
99+
if not gen_url:
90100
model = payload["model"]
91101
gen_url = f"https://{model}.chutes.ai/generate"
92102
del payload["model"]

llms/providers-extra.json

Lines changed: 12 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@
659659
},
660660
"chutes": {
661661
"models": {
662-
"chutes-z-image-turbo": {
662+
"z-image-turbo": {
663663
"name": "Z Image Turbo",
664664
"modalities": {
665665
"input": [
@@ -670,7 +670,7 @@
670670
]
671671
}
672672
},
673-
"qwen-image": {
673+
"Qwen-Image-2512": {
674674
"modalities": {
675675
"input": [
676676
"text"
@@ -680,8 +680,8 @@
680680
]
681681
}
682682
},
683-
"chutes-qwen-image-edit-2509": {
684-
"name": "Qwen Image Edit 2509",
683+
"Qwen-Image-Edit-2511": {
684+
"name": "Qwen Image Edit",
685685
"modalities": {
686686
"input": [
687687
"text",
@@ -692,8 +692,8 @@
692692
]
693693
}
694694
},
695-
"chutes-hidream": {
696-
"name": "Hidream",
695+
"flux": {
696+
"name": "FLUX",
697697
"modalities": {
698698
"input": [
699699
"text"
@@ -703,8 +703,8 @@
703703
]
704704
}
705705
},
706-
"chutes-hunyuan-image-3": {
707-
"name": "Hunyuan Image 3",
706+
"dreamshaper": {
707+
"name": "Dreamshaper",
708708
"modalities": {
709709
"input": [
710710
"text"
@@ -714,8 +714,8 @@
714714
]
715715
}
716716
},
717-
"FLUX.1-schnell": {
718-
"name": "FLUX.1 Schnell",
717+
"juggernaut": {
718+
"name": "Juggernaut",
719719
"modalities": {
720720
"input": [
721721
"text"
@@ -725,48 +725,8 @@
725725
]
726726
}
727727
},
728-
"chroma": {
729-
"modalities": {
730-
"input": [
731-
"text"
732-
],
733-
"output": [
734-
"image"
735-
]
736-
}
737-
},
738-
"JuggernautXL-Ragnarok": {
739-
"name": "JuggernautXL Ragnarok",
740-
"modalities": {
741-
"input": [
742-
"text"
743-
],
744-
"output": [
745-
"image"
746-
]
747-
}
748-
},
749-
"Animij": {
750-
"modalities": {
751-
"input": [
752-
"text"
753-
],
754-
"output": [
755-
"image"
756-
]
757-
}
758-
},
759-
"Illustrij": {
760-
"modalities": {
761-
"input": [
762-
"text"
763-
],
764-
"output": [
765-
"image"
766-
]
767-
}
768-
},
769-
"iLustMix": {
728+
"ilustmix": {
729+
"name": "Ilustmix",
770730
"modalities": {
771731
"input": [
772732
"text"

llms/providers.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)