MCPcopy Create free account

hub / github.com/Haidra-Org/AI-Horde / functions

Functions1,285 in github.com/Haidra-Org/AI-Horde

↓ 5 callersMethodupdate_user_record
(self, record_type, record, increment_value, commit=True)
horde/classes/base/user.py:619
↓ 4 callersFunction_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 callersFunction_make_worker
(client, api_key: str, name: str)
tests/integration/test_validation_boundaries.py:34
↓ 4 callersFunction_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 callersFunction_user_kudos
(app, user_id: int)
tests/integration/test_user_ops.py:34
↓ 4 callersMethoddelete
(self)
horde/classes/stable/interrogation.py:363
↓ 4 callersMethoddelete
Cancel an unfinished request. This request will include all already generated images in base64 encoded .webp files.
horde/apis/v2/stable.py:527
↓ 4 callersFunctiondoes_extra_text_reference_exist
(extra_texts, reference)
horde/utils.py:147
↓ 4 callersFunctiondownload_image
(client, bucket, key)
horde/r2.py:121
↓ 4 callersFunctionfind_team_by_id
(team_id)
horde/classes/base/team.py:144
↓ 4 callersFunctiongenerate_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 callersMethodget_things_count
(self, generation=None)
horde/classes/kobold/processing_generation.py:117
↓ 4 callersFunctioninit_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 callersFunctionis_backed_validated
(bridge_agent)
horde/bridge_reference.py:224
↓ 4 callersMethodis_ip_whitelisted
(self, ipaddr)
horde/apis/limiter_api.py:22
↓ 4 callersMethodis_known_text_model
(self, model_name)
horde/model_reference.py:163
↓ 4 callersMethodis_stale
(self)
horde/classes/base/worker.py:438
↓ 4 callersMethodis_valid
(self)
horde/classes/base/user.py:178
↓ 4 callersMethodnormalize_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 callersFunctionpostgres_reachable
(dsn: str)
tests/dependency_runtime.py:141
↓ 4 callersMethodrefresh_model_cache
(self)
horde/classes/base/worker.py:587
↓ 4 callersMethodrefresh_softprompt_cache
(self)
horde/classes/kobold/worker.py:63
↓ 4 callersMethodset_models
(self, models)
horde/classes/base/style.py:233
↓ 4 callersMethodset_moderator
(self, is_moderator)
horde/classes/base/user.py:570
↓ 4 callersFunctionwait_until
(description: str, predicate: Callable[[], bool], timeout: float = 60.0, interval: float = 1.0)
tests/dependency_runtime.py:202
↓ 3 callersMethod_at_capacity
(self)
tests/stress/locustsuite/users/image.py:202
↓ 3 callersFunction_parse_csv
(value: str)
tests/stress/locustsuite/helpers.py:88
↓ 3 callersFunction_queue_text_wp
(client, api_key: str)
tests/integration/test_maintenance_threads.py:38
↓ 3 callersMethod_submit
(self, name: str, payload: dict)
tests/stress/locustsuite/users/image.py:205
↓ 3 callersMethod_submit_request
(self)
tests/stress/locustsuite/users/image.py:60
↓ 3 callersFunctionassert_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 callersMethodcalculate_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 callersFunctionconfigure_object_store
(runtime: HordeTestRuntime)
tests/dependency_runtime.py:506
↓ 3 callersFunctionconvert_pil_to_b64
(source_image, quality=95)
horde/image.py:30
↓ 3 callersFunctioncreate_app
(config=None)
horde/flask.py:53
↓ 3 callersMethodcreate_worker_name
(self)
tests/stress/locustsuite/users/image.py:373
↓ 3 callersFunctiondatetime_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 callersMethoddelete
(self)
horde/classes/base/style.py:179
↓ 3 callersMethoddelete
Cancel an unfinished request. This request will include all already generated texts.
horde/apis/v2/kobold.py:280
↓ 3 callersMethoddelete_timeout
Deletes an IP address in timeout
horde/countermeasures.py:186
↓ 3 callersFunctionfind_user_by_username
(username)
horde/database/functions.py:194
↓ 3 callersFunctiongenerate_procgen_upload_url
(procgen_id, shared=False)
horde/r2.py:70
↓ 3 callersFunctionget_available_models
(filter_model_name: str = None)
horde/database/functions.py:329
↓ 3 callersMethodget_block_timeouts
Returns all known IP block timeouts
horde/countermeasures.py:230
↓ 3 callersMethodget_existing_style
(self)
horde/apis/v2/styles.py:68
↓ 3 callersMethodget_gen_kudos
(self)
horde/classes/base/processing_generation.py:215
↓ 3 callersMethodget_sorted_patrons
(self, **kwargs)
horde/patreon.py:53
↓ 3 callersMethodget_sorted_wp
Extendable class to retrieve the sorted WP list for this worker
horde/apis/v2/base.py:651
↓ 3 callersFunctionget_supported_samplers
(bridge_agent, karras=True)
horde/bridge_reference.py:231
↓ 3 callersMethodget_text_model_names
(self)
horde/model_reference.py:99
↓ 3 callersMethodget_through_id
(self, style_id)
horde/apis/v2/styles.py:353
↓ 3 callersMethodget_worker_ids
(self)
horde/classes/base/waiting_prompt.py:559
↓ 3 callersMethodis_completed
(self)
horde/classes/stable/interrogation.py:315
↓ 3 callersMethodis_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 callersMethodis_pseudonymous
(self)
horde/classes/base/user.py:791
↓ 3 callersMethodis_stale
(self)
horde/classes/base/user.py:883
↓ 3 callersMethodis_suspicious
(self)
horde/classes/base/user.py:861
↓ 3 callersMethodis_whitelisted_vpn
(ipaddr)
horde/countermeasures.py:194
↓ 3 callersFunctionload_image_as_b64
(image_path)
tests/integration/test_image_extra_sources.py:13
↓ 3 callersFunctionload_testcontainers
()
tests/dependency_runtime.py:229
↓ 3 callersFunctionmake_user_role
Factory: attach a ``UserRole`` to a user.
tests/unit/conftest.py:214
↓ 3 callersMethodneeds_gen
(self)
horde/classes/base/waiting_prompt.py:257
↓ 3 callersMethodof_kind
Filter statements by leading SQL keyword (e.g. ``SELECT``).
tests/unit/conftest.py:138
↓ 3 callersMethodone_hot_encode
(cls, strings, unique_strings)
horde/classes/stable/kudos.py:177
↓ 3 callersMethodparse_worker_by_query
(self, workers_list)
horde/apis/v2/base.py:1039
↓ 3 callersMethodpost
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 callersFunctionquery_prioritized_wps
(wp_type="image")
horde/database/functions.py:1663
↓ 3 callersMethodrecord_uptime
(self, kudos, bypass_eval=False)
horde/classes/base/user.py:675
↓ 3 callersMethodrefresh
(self)
horde/classes/stable/interrogation.py:255
↓ 3 callersMethodrefresh_worker_cache
(self)
horde/classes/base/waiting_prompt.py:546
↓ 3 callersFunctionrefresh_worker_performances_cache
()
horde/database/text_functions.py:176
↓ 3 callersMethodretrieve_block_timeout
Checks if the IP is in a block timeout
horde/countermeasures.py:208
↓ 3 callersFunctionretrieve_worker_performances
(worker_type=ImageWorker)
horde/database/functions.py:1474
↓ 3 callersMethodset_safe
Stores the safety of the IP in redis temporarily
horde/countermeasures.py:46
↓ 3 callersMethodset_tags
(self, tags)
horde/classes/base/style.py:245
↓ 3 callersMethodset_team
(self, new_team)
horde/classes/base/worker.py:269
↓ 3 callersFunctionupload_image
(client, bucket, image, filename, quality=100)
horde/r2.py:104
↓ 3 callersMethodvalidate
(self)
horde/apis/v2/stable.py:1003
↓ 3 callersMethodvalidate_image_params
(self)
horde/validation.py:50
↓ 3 callersMethodvalidate_text_params
(self)
horde/validation.py:31
↓ 2 callersFunction_autoregister_keys
(host: str, count: int, role: str)
tests/stress/locustsuite/events.py:343
↓ 2 callersFunction_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 callersFunction_count_histogram
(name: str, description: str)
horde/metrics.py:107
↓ 2 callersFunction_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 callersFunction_headers
(api_key: str)
tests/integration/test_maintenance_threads.py:34
↓ 2 callersMethod_post
(self, payload: dict, name: str)
tests/stress/locustsuite/users/interrogation.py:60
↓ 2 callersMethod_post_async
(self, payload: dict, name: str)
tests/stress/locustsuite/users/text.py:63
↓ 2 callersFunction_print_bucket
Print a failure bucket to stderr and return its total occurrence count.
tests/stress/check_smoke_results.py:79
↓ 2 callersFunction_redis_get
(key: str)
tests/integration/test_maintenance_threads.py:55
↓ 2 callersFunction_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 callersFunction_reset_redis_state
()
tests/integration/conftest.py:148
↓ 2 callersFunction_set_complete_object_store_env
(monkeypatch)
tests/unit/test_dependency_runtime.py:9
↓ 2 callersFunction_skip_or_fail_missing_dependency
(message: str)
tests/conftest.py:59
↓ 2 callersMethodactivate
(self, downgrade_wp_priority=False, extra_source_images=None, kudos_adjustment=0)
horde/classes/base/waiting_prompt.py:178
↓ 2 callersMethodapply_replacement_filter
(self, prompt)
horde/detection.py:301
↓ 2 callersMethodcalculate_kudos
(self)
horde/classes/stable/waiting_prompt.py:357
↓ 2 callersMethodcalculate_monthly_kudos
(self)
horde/classes/base/user.py:758
↓ 2 callersMethodcancel
(self)
horde/classes/stable/interrogation.py:359
↓ 2 callersFunctioncheck_file
(client, bucket, filename)
horde/r2.py:218
↓ 2 callersMethodcheck_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
← previousnext →101–200 of 1,285, ranked by callers