Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Haidra-Org/AI-Horde
/ functions
Functions
1,285 in github.com/Haidra-Org/AI-Horde
⨍
Functions
1,285
◇
Types & classes
287
↳
Endpoints
37
↓ 5 callers
Method
update_user_record
(self, record_type, record, increment_value, commit=True)
horde/classes/base/user.py:619
↓ 4 callers
Function
_handle_async_generate
Common handling for POST /generate/async responses. Returns the request id on success, ``None`` otherwise. 429 (rate limit) and selected 403
tests/stress/locustsuite/helpers.py:57
↓ 4 callers
Function
_make_worker
(client, api_key: str, name: str)
tests/integration/test_validation_boundaries.py:34
↓ 4 callers
Function
_run_text_gen_round_trip
Helper: async → pop → submit → retrieve a single text generation. Returns the retrieved generation dict so callers can assert on specific fields.
tests/integration/test_text.py:9
↓ 4 callers
Function
_user_kudos
(app, user_id: int)
tests/integration/test_user_ops.py:34
↓ 4 callers
Method
delete
(self)
horde/classes/stable/interrogation.py:363
↓ 4 callers
Method
delete
Cancel an unfinished request. This request will include all already generated images in base64 encoded .webp files.
horde/apis/v2/stable.py:527
↓ 4 callers
Function
does_extra_text_reference_exist
(extra_texts, reference)
horde/utils.py:147
↓ 4 callers
Function
download_image
(client, bucket, key)
horde/r2.py:121
↓ 4 callers
Function
find_team_by_id
(team_id)
horde/classes/base/team.py:144
↓ 4 callers
Function
generate_presigned_url
Generate a presigned Amazon S3 URL that can be used to perform an action. :param s3_client: A Boto3 Amazon S3 client. :param client_
horde/r2.py:49
↓ 4 callers
Method
get_things_count
(self, generation=None)
horde/classes/kobold/processing_generation.py:117
↓ 4 callers
Function
init_telemetry_early
Configure Logfire and instrument Flask + outbound HTTP + loguru. Must be invoked before any other ``before_request`` registration so OTel's s
horde/telemetry.py:100
↓ 4 callers
Function
is_backed_validated
(bridge_agent)
horde/bridge_reference.py:224
↓ 4 callers
Method
is_ip_whitelisted
(self, ipaddr)
horde/apis/limiter_api.py:22
↓ 4 callers
Method
is_known_text_model
(self, model_name)
horde/model_reference.py:163
↓ 4 callers
Method
is_stale
(self)
horde/classes/base/worker.py:438
↓ 4 callers
Method
is_valid
(self)
horde/classes/base/user.py:178
↓ 4 callers
Method
normalize_prompt
Prepares the prompt to be scanned by the regex, by removing tricks one might use to avoid the filters
horde/detection.py:329
↓ 4 callers
Function
postgres_reachable
(dsn: str)
tests/dependency_runtime.py:141
↓ 4 callers
Method
refresh_model_cache
(self)
horde/classes/base/worker.py:587
↓ 4 callers
Method
refresh_softprompt_cache
(self)
horde/classes/kobold/worker.py:63
↓ 4 callers
Method
set_models
(self, models)
horde/classes/base/style.py:233
↓ 4 callers
Method
set_moderator
(self, is_moderator)
horde/classes/base/user.py:570
↓ 4 callers
Function
wait_until
(description: str, predicate: Callable[[], bool], timeout: float = 60.0, interval: float = 1.0)
tests/dependency_runtime.py:202
↓ 3 callers
Method
_at_capacity
(self)
tests/stress/locustsuite/users/image.py:202
↓ 3 callers
Function
_parse_csv
(value: str)
tests/stress/locustsuite/helpers.py:88
↓ 3 callers
Function
_queue_text_wp
(client, api_key: str)
tests/integration/test_maintenance_threads.py:38
↓ 3 callers
Method
_submit
(self, name: str, payload: dict)
tests/stress/locustsuite/users/image.py:205
↓ 3 callers
Method
_submit_request
(self)
tests/stress/locustsuite/users/image.py:60
↓ 3 callers
Function
assert_query_count
Return a context manager + assertion helper for SQL-count regressions. Usage: with assert_query_count() as queries: user.trus
tests/unit/conftest.py:159
↓ 3 callers
Method
calculate_extra_kudos_burn
Extend this function to add extra kudos burn for the particular use Which represents the cost of each job to the horde infrastructure
horde/classes/base/waiting_prompt.py:474
↓ 3 callers
Function
configure_object_store
(runtime: HordeTestRuntime)
tests/dependency_runtime.py:506
↓ 3 callers
Function
convert_pil_to_b64
(source_image, quality=95)
horde/image.py:30
↓ 3 callers
Function
create_app
(config=None)
horde/flask.py:53
↓ 3 callers
Method
create_worker_name
(self)
tests/stress/locustsuite/users/image.py:373
↓ 3 callers
Function
datetime_parser
Hook for json.loads to convert ISO 8601 strings back to datetime objects. Uses a pre-compiled regex for efficiency.
horde/utils.py:164
↓ 3 callers
Method
delete
(self)
horde/classes/base/style.py:179
↓ 3 callers
Method
delete
Cancel an unfinished request. This request will include all already generated texts.
horde/apis/v2/kobold.py:280
↓ 3 callers
Method
delete_timeout
Deletes an IP address in timeout
horde/countermeasures.py:186
↓ 3 callers
Function
find_user_by_username
(username)
horde/database/functions.py:194
↓ 3 callers
Function
generate_procgen_upload_url
(procgen_id, shared=False)
horde/r2.py:70
↓ 3 callers
Function
get_available_models
(filter_model_name: str = None)
horde/database/functions.py:329
↓ 3 callers
Method
get_block_timeouts
Returns all known IP block timeouts
horde/countermeasures.py:230
↓ 3 callers
Method
get_existing_style
(self)
horde/apis/v2/styles.py:68
↓ 3 callers
Method
get_gen_kudos
(self)
horde/classes/base/processing_generation.py:215
↓ 3 callers
Method
get_sorted_patrons
(self, **kwargs)
horde/patreon.py:53
↓ 3 callers
Method
get_sorted_wp
Extendable class to retrieve the sorted WP list for this worker
horde/apis/v2/base.py:651
↓ 3 callers
Function
get_supported_samplers
(bridge_agent, karras=True)
horde/bridge_reference.py:231
↓ 3 callers
Method
get_text_model_names
(self)
horde/model_reference.py:99
↓ 3 callers
Method
get_through_id
(self, style_id)
horde/apis/v2/styles.py:353
↓ 3 callers
Method
get_worker_ids
(self)
horde/classes/base/waiting_prompt.py:559
↓ 3 callers
Method
is_completed
(self)
horde/classes/stable/interrogation.py:315
↓ 3 callers
Method
is_ip_safe
Returns False if the IP is not false Else return true This function is a bit obscured with env vars to prevent defeat
horde/countermeasures.py:59
↓ 3 callers
Method
is_pseudonymous
(self)
horde/classes/base/user.py:791
↓ 3 callers
Method
is_stale
(self)
horde/classes/base/user.py:883
↓ 3 callers
Method
is_suspicious
(self)
horde/classes/base/user.py:861
↓ 3 callers
Method
is_whitelisted_vpn
(ipaddr)
horde/countermeasures.py:194
↓ 3 callers
Function
load_image_as_b64
(image_path)
tests/integration/test_image_extra_sources.py:13
↓ 3 callers
Function
load_testcontainers
()
tests/dependency_runtime.py:229
↓ 3 callers
Function
make_user_role
Factory: attach a ``UserRole`` to a user.
tests/unit/conftest.py:214
↓ 3 callers
Method
needs_gen
(self)
horde/classes/base/waiting_prompt.py:257
↓ 3 callers
Method
of_kind
Filter statements by leading SQL keyword (e.g. ``SELECT``).
tests/unit/conftest.py:138
↓ 3 callers
Method
one_hot_encode
(cls, strings, unique_strings)
horde/classes/stable/kudos.py:177
↓ 3 callers
Method
parse_worker_by_query
(self, workers_list)
horde/apis/v2/base.py:1039
↓ 3 callers
Method
post
Submit aesthetic ratings for generated images to be used by LAION and Stability.AI The request has to have been sent as shared: true.
horde/apis/v2/stable.py:764
↓ 3 callers
Function
query_prioritized_wps
(wp_type="image")
horde/database/functions.py:1663
↓ 3 callers
Method
record_uptime
(self, kudos, bypass_eval=False)
horde/classes/base/user.py:675
↓ 3 callers
Method
refresh
(self)
horde/classes/stable/interrogation.py:255
↓ 3 callers
Method
refresh_worker_cache
(self)
horde/classes/base/waiting_prompt.py:546
↓ 3 callers
Function
refresh_worker_performances_cache
()
horde/database/text_functions.py:176
↓ 3 callers
Method
retrieve_block_timeout
Checks if the IP is in a block timeout
horde/countermeasures.py:208
↓ 3 callers
Function
retrieve_worker_performances
(worker_type=ImageWorker)
horde/database/functions.py:1474
↓ 3 callers
Method
set_safe
Stores the safety of the IP in redis temporarily
horde/countermeasures.py:46
↓ 3 callers
Method
set_tags
(self, tags)
horde/classes/base/style.py:245
↓ 3 callers
Method
set_team
(self, new_team)
horde/classes/base/worker.py:269
↓ 3 callers
Function
upload_image
(client, bucket, image, filename, quality=100)
horde/r2.py:104
↓ 3 callers
Method
validate
(self)
horde/apis/v2/stable.py:1003
↓ 3 callers
Method
validate_image_params
(self)
horde/validation.py:50
↓ 3 callers
Method
validate_text_params
(self)
horde/validation.py:31
↓ 2 callers
Function
_autoregister_keys
(host: str, count: int, role: str)
tests/stress/locustsuite/events.py:343
↓ 2 callers
Function
_coerce_user_id
Return ``value`` as an int4-representable user id, or None if it cannot be (unparseable, negative, or out of range). Guards id-based user lookups
horde/database/functions.py:175
↓ 2 callers
Function
_count_histogram
(name: str, description: str)
horde/metrics.py:107
↓ 2 callers
Function
_expire_caches
Flush the (fake) redis caches to simulate the 30s worker/user cache TTL elapsing, so a read-after-write reflects committed DB state rather than a
tests/integration/test_worker_ops.py:38
↓ 2 callers
Function
_headers
(api_key: str)
tests/integration/test_maintenance_threads.py:34
↓ 2 callers
Method
_post
(self, payload: dict, name: str)
tests/stress/locustsuite/users/interrogation.py:60
↓ 2 callers
Method
_post_async
(self, payload: dict, name: str)
tests/stress/locustsuite/users/text.py:63
↓ 2 callers
Function
_print_bucket
Print a failure bucket to stderr and return its total occurrence count.
tests/stress/check_smoke_results.py:79
↓ 2 callers
Function
_redis_get
(key: str)
tests/integration/test_maintenance_threads.py:55
↓ 2 callers
Function
_register_user
Create or rotate one test user and return the raw API key, or None on failure.
tests/stress/gen_api_keys.py:33
↓ 2 callers
Function
_reset_redis_state
()
tests/integration/conftest.py:148
↓ 2 callers
Function
_set_complete_object_store_env
(monkeypatch)
tests/unit/test_dependency_runtime.py:9
↓ 2 callers
Function
_skip_or_fail_missing_dependency
(message: str)
tests/conftest.py:59
↓ 2 callers
Method
activate
(self, downgrade_wp_priority=False, extra_source_images=None, kudos_adjustment=0)
horde/classes/base/waiting_prompt.py:178
↓ 2 callers
Method
apply_replacement_filter
(self, prompt)
horde/detection.py:301
↓ 2 callers
Method
calculate_kudos
(self)
horde/classes/stable/waiting_prompt.py:357
↓ 2 callers
Method
calculate_monthly_kudos
(self)
horde/classes/base/user.py:758
↓ 2 callers
Method
cancel
(self)
horde/classes/stable/interrogation.py:359
↓ 2 callers
Function
check_file
(client, bucket, filename)
horde/r2.py:218
↓ 2 callers
Method
check_for_trust
After a user passes the evaluation threshold (?? kudos) All the evaluating Kudos added to their total and they automatically become trusted
horde/classes/base/user.py:692
← previous
next →
101–200 of 1,285, ranked by callers