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
↓ 1 callers
Function
_download_image
(client, bucket, key)
horde/r2.py:126
↓ 1 callers
Function
_ensure_source_image_uploaded
(source_image_string, uuid_string, force_r2=False)
horde/image.py:113
↓ 1 callers
Function
_expire_caches
()
tests/integration/test_statistics.py:38
↓ 1 callers
Method
_fetch_status
Mirror real client: on done, fetch /status once for the full payload. /status is limited to 10/min/path, but each id is only fetched once
tests/stress/locustsuite/users/image.py:223
↓ 1 callers
Function
_genuine_remote_addr
Return the real socket peer address, defeating X-Forwarded-For spoofing. The app wraps its WSGI stack in ``ProxyFix(x_for=1)``, which overwrite
horde/routes.py:50
↓ 1 callers
Function
_handle_async_text
Common handling for POST /generate/text/async responses.
tests/stress/locustsuite/users/text.py:28
↓ 1 callers
Function
_headers
(api_key: str)
tests/integration/test_statistics.py:34
↓ 1 callers
Function
_hot_image_payload
(opts)
tests/stress/locustsuite/users/image.py:539
↓ 1 callers
Function
_init_pyroscope
()
horde/telemetry.py:208
↓ 1 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:68
↓ 1 callers
Function
_is_loopback_request
()
horde/routes.py:67
↓ 1 callers
Function
_is_test_apikey_bootstrap_enabled
()
horde/routes.py:46
↓ 1 callers
Function
_kudos_histogram
(name: str, description: str)
horde/metrics.py:112
↓ 1 callers
Function
_normalize_base_url
(base_url: str)
tests/integration/bootstrap_test_user.py:38
↓ 1 callers
Function
_parse_args
()
tests/integration/bootstrap_test_user.py:28
↓ 1 callers
Method
_post_inner
(self)
horde/apis/v2/base.py:179
↓ 1 callers
Method
_post_inner
(self)
horde/apis/v2/base.py:543
↓ 1 callers
Function
_preflight_target
(host: str, timeout: float, fail_hard: bool, environment)
tests/stress/locustsuite/events.py:353
↓ 1 callers
Function
_read_aggregated
Return the ``Aggregated`` summary row from a Locust ``*_stats.csv``.
tests/stress/check_smoke_results.py:39
↓ 1 callers
Method
_record_contribution
We record the servers newest contribution We do not need to know what type the contribution is, to avoid unnecessarily extending this method
horde/classes/base/worker.py:354
↓ 1 callers
Function
_record_queries
(engine)
tests/unit/conftest.py:145
↓ 1 callers
Function
_register_oauth
(app)
horde/flask.py:202
↓ 1 callers
Function
_register_test_user
POST the /register form to mint a fresh API key. Returns the raw API key on success, ``None`` on failure (e.g. reCAPTCHA is enabled on this d
tests/stress/locustsuite/events.py:302
↓ 1 callers
Method
_run_nsfw_model_block
(self, prompt, models)
horde/detection.py:244
↓ 1 callers
Method
_run_prompt_check
(self, prompt, _id=None)
horde/detection.py:125
↓ 1 callers
Function
_seed_core_rows
Seed minimum rows expected by API code paths in tests. Integration tests do not rely on cron/stored-procedure setup; they only need schema ob
tests/integration/conftest.py:24
↓ 1 callers
Method
_set_generation_inner
(self, generation, things_per_sec, **kwargs)
horde/classes/stable/processing_generation.py:88
↓ 1 callers
Method
_start_generation
(self, worker, amount=1, gen_span=None)
horde/classes/base/waiting_prompt.py:269
↓ 1 callers
Function
_unique_suffix
()
tests/unit/conftest.py:184
↓ 1 callers
Function
_upload_image
(client, bucket, image, filename, quality=100)
horde/r2.py:109
↓ 1 callers
Function
_upload_prompt
(prompt_dict)
horde/r2.py:187
↓ 1 callers
Method
abort_for_maintenance
sets all waiting requests to 0, so that all clients pick them up once the client gen is completed
horde/classes/base/waiting_prompt.py:518
↓ 1 callers
Method
activate_waiting_prompt
(self)
horde/apis/v2/base.py:459
↓ 1 callers
Function
add_known_image_model
Add an image model to the database. This function will update the model if it already exists. Note that the arguments of this function reflect th
horde/classes/stable/known_image_models.py:60
↓ 1 callers
Function
add_known_image_model_from_json
Add a image model to the database from a JSON object. Args: json (dict[str, object]): The model reference JSON object. defer_comm
horde/classes/stable/known_image_models.py:138
↓ 1 callers
Function
add_known_image_models_from_json
Add multiple image models to the database from a JSON object. Args: json (dict[str, dict]): The model reference JSON object.
horde/classes/stable/known_image_models.py:165
↓ 1 callers
Method
adjust_user_kudos
(self, kudos)
horde/classes/base/processing_generation.py:197
↓ 1 callers
Method
apply_style
(self)
horde/apis/v2/kobold.py:189
↓ 1 callers
Method
apply_style
(self)
horde/apis/v2/stable.py:391
↓ 1 callers
Function
assert_safe_test_target
Abort when tests point at a non-local DB unless explicitly allowed.
tests/dependency_runtime.py:152
↓ 1 callers
Function
assign_monthly_kudos
()
horde/database/threads.py:81
↓ 1 callers
Function
build_test_runtime
(deps_mode: str, needs_object_store: bool)
tests/dependency_runtime.py:117
↓ 1 callers
Method
calculate_basis_time
(self)
horde/classes/stable/kudos.py:284
↓ 1 callers
Function
calculate_image_tiles
Returns the amount of 512x512 tiles the image is composed of image is a PIL object
horde/image.py:151
↓ 1 callers
Method
calculate_kudos
Returns the expected kudos a worker will receive for this request
horde/classes/base/waiting_prompt.py:469
↓ 1 callers
Method
calculate_uptime_reward
(self)
horde/classes/base/worker.py:275
↓ 1 callers
Method
call_function
(self)
horde/threads.py:83
↓ 1 callers
Method
call_function
Retrieves to image and text model reference and stores in it a var
horde/model_reference.py:29
↓ 1 callers
Method
call_function
(self)
horde/stripe_subs.py:16
↓ 1 callers
Method
call_function
(self)
horde/patreon.py:16
↓ 1 callers
Method
can_interrogate
(self, interrogation_form)
horde/classes/stable/interrogation_worker.py:64
↓ 1 callers
Method
cancel
Cancelling requests in progress still rewards/burns the relevant amount of kudos
horde/classes/base/processing_generation.py:156
↓ 1 callers
Method
check_cache
Checks if the image is already in the redis cache. If it is, it sets the cached forms to DONE and sets the cached value as its result
horde/classes/stable/interrogation.py:245
↓ 1 callers
Method
check_for_bad_actor
(self)
horde/classes/base/user.py:490
↓ 1 callers
Method
check_for_bad_actor
(self)
horde/classes/base/worker.py:190
↓ 1 callers
Method
check_in
(self)
horde/apis/v2/base.py:672
↓ 1 callers
Method
check_in
(self)
horde/apis/v2/stable.py:675
↓ 1 callers
Method
check_in
(self)
horde/apis/v2/stable.py:1267
↓ 1 callers
Method
check_ip
(self)
horde/apis/v2/base.py:737
↓ 1 callers
Function
check_model_state
(model_name)
horde/database/functions.py:460
↓ 1 callers
Method
check_nsfw_model_block
(self, prompt, models)
horde/detection.py:235
↓ 1 callers
Method
check_prompt_replacement_length
(self, prompt)
horde/detection.py:294
↓ 1 callers
Function
check_sampler_capability
(sampler, bridge_agent, karras=True)
horde/bridge_reference.py:251
↓ 1 callers
Function
check_shared_image
(filename)
horde/r2.py:225
↓ 1 callers
Function
check_waiting_prompts
()
horde/database/threads.py:181
↓ 1 callers
Method
compile_records_details
(self)
horde/classes/base/user.py:910
↓ 1 callers
Function
configure_postgres
(runtime: HordeTestRuntime)
tests/dependency_runtime.py:285
↓ 1 callers
Function
configure_redis
(runtime: HordeTestRuntime)
tests/dependency_runtime.py:303
↓ 1 callers
Method
consume_kudos
(self, kudos, commit=True)
horde/classes/base/user.py:166
↓ 1 callers
Function
convert_b64_to_pil
(source_image_b64)
horde/image.py:17
↓ 1 callers
Method
convert_contribution
(self, raw_things)
horde/classes/base/worker.py:339
↓ 1 callers
Method
count_pp
(self)
horde/classes/stable/waiting_prompt.py:592
↓ 1 callers
Method
count_processing_jobs
(self)
horde/classes/base/waiting_prompt.py:360
↓ 1 callers
Method
count_sharedkeys
(self)
horde/classes/base/user.py:851
↓ 1 callers
Function
count_things_for_specific_model
(wp_class, procgen_class, model_name)
horde/database/functions.py:804
↓ 1 callers
Function
count_things_per_model
(wp_class)
horde/database/functions.py:790
↓ 1 callers
Function
count_workers_on_ip
(ip_addr)
horde/database/functions.py:134
↓ 1 callers
Method
create
(self, styles)
horde/classes/base/style.py:53
↓ 1 callers
Method
create
(self)
horde/classes/base/team.py:37
↓ 1 callers
Method
delete
Deletes an image style.
horde/apis/v2/stable_styles.py:237
↓ 1 callers
Method
delete
Deletes a style collection.
horde/apis/v2/styles.py:500
↓ 1 callers
Function
delete_any_unspecified_image_models
Delete any models not specified in the list from the database. Args: models_desired (list[str]): List of model names to keep in the datab
horde/classes/stable/known_image_models.py:204
↓ 1 callers
Function
delete_known_image_model
Attempt to delete a known image model from the database. Args: model_name (str): Name of the model to delete. defer_commit (bool)
horde/classes/stable/known_image_models.py:179
↓ 1 callers
Function
delete_source_image
(source_image_uuid)
horde/r2.py:100
↓ 1 callers
Method
deliver
(self, result, state)
horde/classes/stable/interrogation.py:78
↓ 1 callers
Method
disable
(self)
horde/switch.py:12
↓ 1 callers
Function
download_procgen_image
(procgen_id, shared=False)
horde/r2.py:136
↓ 1 callers
Function
download_source_image
(wp_id, shared=False)
horde/r2.py:142
↓ 1 callers
Function
download_source_mask
(wp_id, shared=False)
horde/r2.py:146
↓ 1 callers
Method
ensure_kudos_positive
(self)
horde/classes/base/user.py:779
↓ 1 callers
Method
exceeding_ipaddr_restrictions
Checks that the ipaddr of the new worker does not have too many other workers to prevent easy spamming of new workers with a script
horde/classes/base/user.py:868
↓ 1 callers
Method
extract_params
(self)
horde/classes/base/waiting_prompt.py:236
↓ 1 callers
Method
extrapolate_dry_run_kudos
(self)
horde/apis/v2/base.py:239
↓ 1 callers
Method
extrapolate_dry_run_kudos
(self)
horde/apis/v2/stable.py:335
↓ 1 callers
Method
fake_generation
(self, worker)
horde/classes/base/waiting_prompt.py:314
↓ 1 callers
Function
find_sharedkey
(shared_key)
horde/database/functions.py:240
↓ 1 callers
Function
find_user_by_api_key
(api_key)
horde/database/functions.py:222
↓ 1 callers
Function
find_user_by_contact
(contact)
horde/database/functions.py:214
↓ 1 callers
Function
force_subscription_kudos
(user_id, prevent_date_change)
horde/ops.py:12
↓ 1 callers
Function
garage_health_ready
(url: str)
tests/dependency_runtime.py:384
← previous
next →
301–400 of 1,285, ranked by callers