horde_sdk.ai_horde_api.apimodels.documents¶
DocumentFormat ¶
Bases: StrEnum
The supported formats for a document.
Source code in horde_sdk/ai_horde_api/apimodels/documents.py
HordeDocument ¶
Bases: HordeResponseBaseModel
Represents the data returned from the following endpoints and http status codes
- /v2/documents/terms | AIHordeGetTermsRequest [GET] -> 200
- /v2/documents/sponsors | AIHordeGetSponsorsRequest [GET] -> 200
- /v2/documents/privacy | AIHordeGetPrivacyPolicyRequest [GET] -> 200
v2 API Model: HordeDocument
Source code in horde_sdk/ai_horde_api/apimodels/documents.py
AIHordeDocumentRequestMixin ¶
Bases: HordeAPIObjectBaseModel
Mixin for requests that retrieve a document from the AI Horde API.
Source code in horde_sdk/ai_horde_api/apimodels/documents.py
format
class-attribute
instance-attribute
¶
The format of the document to return. Default is markdown.
validate_format ¶
Validate the format is a valid document format.
Source code in horde_sdk/ai_horde_api/apimodels/documents.py
AIHordeGetPrivacyPolicyRequest ¶
Bases: BaseAIHordeRequest, AIHordeDocumentRequestMixin
Represents a GET request to the /v2/documents/privacy endpoint.
Source code in horde_sdk/ai_horde_api/apimodels/documents.py
AIHordeGetSponsorsRequest ¶
Bases: BaseAIHordeRequest, AIHordeDocumentRequestMixin
Represents a GET request to the /v2/documents/sponsors endpoint.
Source code in horde_sdk/ai_horde_api/apimodels/documents.py
AIHordeGetTermsRequest ¶
Bases: BaseAIHordeRequest, AIHordeDocumentRequestMixin
Represents a GET request to the /v2/documents/terms endpoint.