diff --git a/README.md b/README.md index ec8597d8..11379816 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,8 @@ If you are willing to try with your AMD card, join the [discord discussion](http 1. Make a copy of `bridgeData_template.yaml` to `bridgeData.yaml` 2. Edit `bridgeData.yaml` and follow the instructions within to fill in your details. +3. Change `dreamer_name`. + - This name must be unique horde wide. If you get an error about "Wrong Credentials", someone else already reserved this name. #### Suggested settings diff --git a/bridgeData_template.yaml b/bridgeData_template.yaml index 11a7e213..d81c11f1 100644 --- a/bridgeData_template.yaml +++ b/bridgeData_template.yaml @@ -77,6 +77,8 @@ require_upfront_kudos: false ####################################### # Worker name for running a Dreamer instance. +# This must be unique across the entire horde! Do not use the default! +# If you get the error `Wrong credentials to submit as this worker.`, try changing this name, someone else is already using it. dreamer_name: "An Awesome Dreamer" # Max resolution (max pixels) supported. @@ -283,7 +285,12 @@ exit_on_unhandled_faults: false ## Scribe (LLM Worker) ## ######################### +# Note: Scribe is not currently supported in reGen. This section is for future use. +# Use https://github.com/Haidra-Org/AI-Horde-Worker to run a Scribe worker. + # Worker name for running a Scribe worker. +# This must be unique across the entire horde! Do not use the default! +# If you get the error `Wrong credentials to submit as this worker.`, try changing this name, someone else is already using it. scribe_name: "An Awesome Scribe" # KoboldAI Client API URL. @@ -299,9 +306,16 @@ max_context_length: 1024 # Prevents the model from being used from the shared pool but ensures no other worker can pretend to serve it. branded_model: true +######################### ## Alchemist (Image Interrogation and Post-Processing) +######################### + +# Note: Scribe is not currently supported in reGen. This section is for future use. +# Use https://github.com/Haidra-Org/AI-Horde-Worker to run an Alchemist worker. # Worker name for running an Alchemist worker. +# This must be unique across the entire horde! Do not use the default! +# If you get the error `Wrong credentials to submit as this worker.`, try changing this name, someone else is already using it. alchemist_name: "An Awesome Alchemist" # Alchemy forms this worker can serve. diff --git a/horde_worker_regen/process_management/process_manager.py b/horde_worker_regen/process_management/process_manager.py index 0c0169f6..c1fc102a 100644 --- a/horde_worker_regen/process_management/process_manager.py +++ b/horde_worker_regen/process_management/process_manager.py @@ -3504,7 +3504,11 @@ async def api_job_pop(self) -> None: ) elif "wrong credentials" in job_pop_response.message.lower(): logger.warning(f"Failed to pop job (Wrong Credentials): {job_pop_response}") - logger.error("Did you forget to set your worker name?") + logger.error("Did you forget to set your worker name (`dreamer_name` in bridgeData.yaml)?") + logger.error( + "Horde Worker names must be unique horde-wide. If you haven't used this name before, " + "try changing your worker name.", + ) else: logger.error(f"Failed to pop job (API Error): {job_pop_response}") self._job_pop_frequency = self._error_job_pop_frequency diff --git a/tests/test_sdk_models.py b/tests/test_sdk_models.py index acb6dce9..8d71deec 100644 --- a/tests/test_sdk_models.py +++ b/tests/test_sdk_models.py @@ -7,7 +7,7 @@ def test_skipped_status_handles_unknown_fields() -> None: # printed without error. skipped_status = ImageGenerateJobPopSkippedStatus( max_pixels=100, - testing_field=1, + testing_field=1, # type: ignore ) assert skipped_status.max_pixels == 100