Skip to content

Commit 4dc7a1a

Browse files
committed
fix: ModelGenerationInputStable / ModelPayloadRootStable
1 parent be6de85 commit 4dc7a1a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

horde_sdk/ai_horde_api/apimodels/base.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,11 @@ def get_api_model_name(cls) -> str | None:
227227
return "RequestSingleWarning"
228228

229229

230-
class ImageGenerateParamMixin(HordeAPIData):
230+
class ImageGenerateParamMixin(HordeAPIObjectBaseModel):
231231
"""Mix-in class of some of the data included in a request to the `/v2/generate/async` endpoint.
232232
233233
Also is the corresponding information returned on a job pop to the `/v2/generate/pop` endpoint.
234-
v2 API Model: `ModelPayloadStable`
234+
v2 API Model: `ModelPayloadRootStable`
235235
"""
236236

237237
model_config = (
@@ -361,6 +361,11 @@ def control_type_must_be_known(cls, v: str | KNOWN_CONTROLNETS | None) -> str |
361361

362362
return v
363363

364+
@override
365+
@classmethod
366+
def get_api_model_name(cls) -> str | None:
367+
return "ModelPayloadRootStable"
368+
364369

365370
class JobSubmitResponse(HordeResponseBaseModel):
366371
"""The response to a job submission request, indicating the number of kudos gained.

horde_sdk/ai_horde_api/apimodels/generate/_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def get_api_model_name(cls) -> str | None:
9898
return _ANONYMOUS_MODEL
9999

100100

101-
class ImageGenerationInputPayload(HordeAPIObject, ImageGenerateParamMixin):
101+
class ImageGenerationInputPayload(ImageGenerateParamMixin):
102102
"""Represents the 'params' field in the `/v2/generate/async` endpoint.
103103
104104
v2 API Model: `ModelGenerationInputStable`

0 commit comments

Comments
 (0)