@zeldafan0225/ai_horde / Exports / AIHordeRatings
• new AIHordeRatings(options
)
Name | Type |
---|---|
options |
AIHordeRatingsInitOptions |
▸ getDatasets<T
>(options?
): Promise
<Pick
<DatasetGetResponse
, T
>[]>
Display all datasets
Name | Type |
---|---|
T |
extends keyof DatasetGetResponse |
Name | Type | Description |
---|---|---|
options? |
Object |
- |
options.fields? |
T [] |
Array of fields that will be included in the returned data |
Promise
<Pick
<DatasetGetResponse
, T
>[]>
RatingsDatasetResponse - The datasets
▸ getNewRating<T
>(image_options?
, options?
): Promise
<Pick
<DatasetImagePopResponse
, T
>>
Retrieve an image to rate from the default dataset
Name | Type |
---|---|
T |
extends keyof DatasetImagePopResponse |
Name | Type | Description |
---|---|---|
image_options? |
Object |
- |
image_options.dataset_id |
string |
The ID of the dataset to get an image from |
image_options.model_name? |
string |
The model name to get an image from |
options? |
Object |
- |
options.fields? |
T [] |
Array of fields that will be included in the returned data |
options.token? |
string |
The token of the requesting user |
Promise
<Pick
<DatasetImagePopResponse
, T
>>
DatasetImagePopResponse - An images data to rate
▸ getTeams<T
>(options?
): Promise
<Pick
<TeamsGetResponse
, T
>[]>
Display all public teams
Name | Type |
---|---|
T |
extends keyof TeamsGetResponse |
Name | Type | Description |
---|---|---|
options? |
Object |
- |
options.fields? |
T [] |
Array of fields that will be included in the returned data |
Promise
<Pick
<TeamsGetResponse
, T
>[]>
RatingsTeamsResponse - The datasets
▸ postRating<T
>(image_id
, rating
, options?
): Promise
<Pick
<RatePostResponse
, T
>>
Check if there are interrogation requests queued for fulfillment This endpoint is used by registered workers only
Name | Type |
---|---|
T |
extends keyof RatePostResponse |
Name | Type | Description |
---|---|---|
image_id |
string |
The ID if the Image you want to rate |
rating |
RatePostInput |
|
options? |
Object |
- |
options.fields? |
T [] |
Array of fields that will be included in the returned data |
options.token? |
string |
The token of the requesting user |
Promise
<Pick
<RatePostResponse
, T
>>
InterrogationPopPayload