From 51d31282b75cd99c9fbf83f442566a075498644f Mon Sep 17 00:00:00 2001 From: tazlin Date: Thu, 9 May 2024 09:50:38 -0400 Subject: [PATCH] chore: update docs maps --- docs/api_to_sdk_payload_map.json | 6 +- docs/api_to_sdk_response_map.json | 5 +- .../request_field_names_and_descriptions.json | 64 +++++++++---- ...response_field_names_and_descriptions.json | 94 +++++++++++++++++++ 4 files changed, 149 insertions(+), 20 deletions(-) diff --git a/docs/api_to_sdk_payload_map.json b/docs/api_to_sdk_payload_map.json index 5ee2286..9ca8fbb 100644 --- a/docs/api_to_sdk_payload_map.json +++ b/docs/api_to_sdk_payload_map.json @@ -16,12 +16,16 @@ "POST": "horde_sdk.ai_horde_api.apimodels.alchemy._pop.AlchemyPopRequest" }, "/v2/workers": { - "GET": "horde_sdk.ai_horde_api.apimodels.workers._workers_all.AllWorkersDetailsRequest" + "GET": "horde_sdk.ai_horde_api.apimodels.workers._workers.AllWorkersDetailsRequest" }, "/v2/generate/status/{id}": { "DELETE": "horde_sdk.ai_horde_api.apimodels.generate._status.DeleteImageGenerateRequest", "GET": "horde_sdk.ai_horde_api.apimodels.generate._status.ImageGenerateStatusRequest" }, + "/v2/generate/text/status/{id}": { + "DELETE": "horde_sdk.ai_horde_api.apimodels.generate.text._status.DeleteTextGenerateRequest", + "GET": "horde_sdk.ai_horde_api.apimodels.generate.text._status.TextGenerateStatusRequest" + }, "/v2/find_user": { "GET": "horde_sdk.ai_horde_api.apimodels._find_user.FindUserRequest" }, diff --git a/docs/api_to_sdk_response_map.json b/docs/api_to_sdk_response_map.json index 5b722c6..d67c751 100644 --- a/docs/api_to_sdk_response_map.json +++ b/docs/api_to_sdk_response_map.json @@ -15,11 +15,14 @@ "200": "horde_sdk.ai_horde_api.apimodels.alchemy._pop.AlchemyPopResponse" }, "/v2/workers": { - "200": "horde_sdk.ai_horde_api.apimodels.workers._workers_all.AllWorkersDetailsResponse" + "200": "horde_sdk.ai_horde_api.apimodels.workers._workers.AllWorkersDetailsResponse" }, "/v2/generate/status/{id}": { "200": "horde_sdk.ai_horde_api.apimodels.generate._status.ImageGenerateStatusResponse" }, + "/v2/generate/text/status/{id}": { + "200": "horde_sdk.ai_horde_api.apimodels.generate.text._status.TextGenerateStatusResponse" + }, "/v2/find_user": { "200": "horde_sdk.ai_horde_api.apimodels._find_user.FindUserResponse" }, diff --git a/docs/request_field_names_and_descriptions.json b/docs/request_field_names_and_descriptions.json index a6d08a9..277e712 100644 --- a/docs/request_field_names_and_descriptions.json +++ b/docs/request_field_names_and_descriptions.json @@ -151,6 +151,20 @@ null ] ], + "DeleteTextGenerateRequest": [ + [ + "id_", + null + ], + [ + "accept", + null + ], + [ + "client_agent", + null + ] + ], "FindUserRequest": [ [ "apikey", @@ -313,47 +327,51 @@ ], "ImageGenerateJobPopRequest": [ [ - "apikey", - null + "amount", + "How many jobvs to pop at the same time" ], [ - "accept", - null + "bridge_agent", + "The worker name, version and website." ], [ - "client_agent", + "models", null ], [ "name", - null + "The Name of the Worker." + ], + [ + "nsfw", + "Whether this worker can generate NSFW requests or not." ], [ "priority_usernames", null ], [ - "nsfw", - null + "require_upfront_kudos", + "If True, this worker will only pick up requests where the owner has the required kudos to consume already available." ], [ - "models", - null + "threads", + "How many threads this worker is running. This is used to accurately the current power available in the horde." ], [ - "bridge_version", + "apikey", null ], [ - "bridge_agent", + "accept", null ], [ - "threads", + "client_agent", null ], [ - "require_upfront_kudos", + "bridge_version", null ], [ @@ -387,10 +405,6 @@ [ "allow_lora", null - ], - [ - "amount", - null ] ], "ImageGenerateStatusRequest": [ @@ -479,6 +493,20 @@ null ] ], + "TextGenerateStatusRequest": [ + [ + "id_", + null + ], + [ + "accept", + null + ], + [ + "client_agent", + null + ] + ], "TextStatsModelsRequest": [ [ "accept", diff --git a/docs/response_field_names_and_descriptions.json b/docs/response_field_names_and_descriptions.json index 61b0d88..2f5142b 100644 --- a/docs/response_field_names_and_descriptions.json +++ b/docs/response_field_names_and_descriptions.json @@ -157,6 +157,96 @@ null ] ], + "TextGenerateStatusResponse": [ + [ + "finished", + null + ], + [ + "processing", + null + ], + [ + "restarted", + null + ], + [ + "waiting", + null + ], + [ + "done", + null + ], + [ + "faulted", + null + ], + [ + "wait_time", + null + ], + [ + "queue_position", + null + ], + [ + "kudos", + null + ], + [ + "is_possible", + null + ], + [ + "generations", + "The generations that have been completed in this request." + ], + [ + "finished", + null + ], + [ + "processing", + null + ], + [ + "restarted", + null + ], + [ + "waiting", + null + ], + [ + "done", + null + ], + [ + "faulted", + null + ], + [ + "wait_time", + null + ], + [ + "queue_position", + null + ], + [ + "kudos", + null + ], + [ + "is_possible", + null + ], + [ + "generations", + "The generations that have been completed in this request." + ] + ], "FindUserResponse": [ [ "admin_comment", @@ -178,6 +268,10 @@ "contributions", null ], + [ + "customizer", + "If this user can run custom models." + ], [ "evaluating_kudos", "(Privileged) The amount of Evaluating Kudos this untrusted user has from generations and uptime. When this number reaches a pre-specified threshold, they automatically become trusted."