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
↓ 408 callers
Method
get
A List with the details and statistic of all registered users
horde/apis/v2/base.py:1384
↓ 137 callers
Method
get_unique_alias
(self)
horde/classes/base/user.py:616
↓ 78 callers
Method
add
(self, sink: Any, **kwargs: Any)
horde/telemetry.py:63
↓ 70 callers
Method
post
Create a new team. Only trusted users can create new teams.
horde/apis/v2/base.py:2231
↓ 45 callers
Method
is_anon
(self)
horde/classes/base/user.py:786
↓ 39 callers
Function
check_bridge_capability
(capability, bridge_agent)
horde/bridge_reference.py:207
↓ 36 callers
Function
_seconds_histogram
(name: str, description: str)
horde/metrics.py:102
↓ 35 callers
Method
record
(self, kudos)
horde/classes/stable/interrogation.py:118
↓ 34 callers
Method
delete
(self)
horde/classes/base/team.py:98
↓ 32 callers
Function
make_api_user
Factory: create a registered user and return its id/api_key/username/alias. Used by endpoint tests that need actors at specific privilege levels
tests/integration/conftest.py:180
↓ 30 callers
Function
_headers
(api_key: str)
tests/stress/locustsuite/helpers.py:94
↓ 29 callers
Method
horde_r_get
Retrieves the value from local redis if it exists If it doesn't exist retrieves it from remote redis If it exists in remote redis, a
horde/horde_redis.py:106
↓ 27 callers
Method
get_model_names
(self)
horde/classes/base/style.py:215
↓ 24 callers
Method
can_generate
Takes as an argument a WaitingPrompt class and checks if this worker is valid for generating it
horde/classes/base/worker.py:637
↓ 24 callers
Method
horde_r_setex
(self, key, expiry, value)
horde/horde_redis.py:60
↓ 23 callers
Method
calculate_kudos
(self, payload, basis_adjustment=1, basis_scale=1)
horde/classes/stable/kudos.py:147
↓ 23 callers
Method
get_model_baseline
(self, model_name)
horde/model_reference.py:102
↓ 23 callers
Function
sanitize_string
(text)
horde/utils.py:83
↓ 22 callers
Function
_allowing_worker
Return a MagicMock pre-configured to pass every default gate.
tests/unit/test_worker_can_generate.py:41
↓ 22 callers
Function
_allowing_wp
Return a MagicMock waiting_prompt pre-configured to pass every default gate.
tests/unit/test_worker_can_generate.py:59
↓ 21 callers
Function
_record_expected
Record an \"expected failure\" sample under a *_expected name. The original request is already counted as success via ``resp.success()``, we
tests/stress/locustsuite/helpers.py:40
↓ 21 callers
Method
get
Retrieve the status of an Asynchronous generation request without images. Use this request to check the status of a currently running asynchr
horde/apis/v2/stable.py:578
↓ 21 callers
Function
get_app
Return the app instance for background threads that need app_context().
horde/flask.py:28
↓ 20 callers
Method
get_details
(self, details_privilege=0)
horde/classes/base/user.py:923
↓ 19 callers
Function
is_profane
(text)
horde/utils.py:28
↓ 18 callers
Function
_headers
(api_key: str)
tests/integration/test_worker_ops.py:34
↓ 18 callers
Method
init_ok
(self, message: str, *, status: str)
horde/telemetry.py:60
↓ 18 callers
Method
modify_kudos
(self, kudos, action="accumulated", commit=True)
horde/classes/base/user.py:766
↓ 17 callers
Function
hash_api_key
(unhashed_api_key)
horde/utils.py:92
↓ 15 callers
Function
_safe_json
(resp)
tests/stress/locustsuite/helpers.py:33
↓ 15 callers
Function
count_distinct_wp
(condition)
horde/database/functions.py:1052
↓ 15 callers
Method
put
Moderator Only: Add a new regex filter
horde/apis/v2/base.py:2735
↓ 15 callers
Method
set_env
(self, key: str, value: str)
tests/dependency_runtime.py:80
↓ 14 callers
Function
ensure_clean
(string, key)
horde/utils.py:154
↓ 13 callers
Function
_headers
(api_key: str)
tests/integration/test_user_ops.py:30
↓ 13 callers
Function
check_for_mod
(api_key, operation, whitelisted_users=None)
horde/apis/v2/base.py:147
↓ 13 callers
Function
make_user
Factory: build and persist a ``User`` with sensible defaults. Returns a callable. Any kwarg overrides a default field. The user is flushed (n
tests/unit/conftest.py:189
↓ 12 callers
Method
record
(self, things_per_sec, kudos)
horde/classes/base/processing_generation.py:169
↓ 11 callers
Function
_cancel_image_request
(client, request_headers: dict[str, str], req_id: str)
tests/integration/test_image.py:19
↓ 11 callers
Method
_has_role
(self, role_type)
horde/classes/base/user.py:295
↓ 11 callers
Function
_pick_requestor_key
()
tests/stress/locustsuite/helpers.py:124
↓ 11 callers
Function
_pop_text
Pop a text job, which registers + checks in the worker as a side effect.
tests/integration/test_worker_ops.py:56
↓ 11 callers
Function
count_digits
(number)
horde/utils.py:35
↓ 11 callers
Method
init_warn
(self, message: str, *, status: str)
horde/telemetry.py:61
↓ 10 callers
Function
_allowing_user
(*, trusted: bool = True)
tests/unit/test_worker_can_generate.py:33
↓ 10 callers
Method
pop
(self, worker)
horde/classes/stable/interrogation.py:47
↓ 10 callers
Method
report_suspicion
(self, amount=1, reason=Suspicions.USERNAME_PROFANITY, formats=None)
horde/classes/base/user.py:818
↓ 9 callers
Method
_expect_4xx
(self, resp, name: str)
tests/stress/locustsuite/users/misuse.py:22
↓ 9 callers
Function
_pick_worker_key
()
tests/stress/locustsuite/helpers.py:131
↓ 9 callers
Method
get_accurate_steps
(self)
horde/classes/stable/waiting_prompt.py:525
↓ 9 callers
Function
get_remoteaddr
Returns the remote address of the request, accounting for proxies
horde/apis/request_utils.py:11
↓ 9 callers
Function
hash_dictionary
(dictionary)
horde/utils.py:97
↓ 9 callers
Method
set_user_role
(self, role, value)
horde/classes/base/user.py:533
↓ 8 callers
Function
_headers
(api_key: str)
tests/integration/test_validation_boundaries.py:30
↓ 8 callers
Function
_is_expected_rc
(body_json: dict | None, rc_set: set[str])
tests/stress/locustsuite/helpers.py:15
↓ 8 callers
Function
_random_prompt
()
tests/stress/locustsuite/helpers.py:101
↓ 8 callers
Function
_worker_id_by_name
(client, api_key: str, worker_name: str)
tests/integration/test_worker_ops.py:69
↓ 8 callers
Method
delete
(self)
horde/classes/base/worker.py:697
↓ 8 callers
Method
get_status
( self, request_avg, active_worker_count, has_valid_workers, wp_q
horde/classes/base/waiting_prompt.py:413
↓ 8 callers
Method
retrieve_timeout
Checks if an IP address is still in timeout
horde/countermeasures.py:172
↓ 7 callers
Function
_wp
(slow_workers=True, max_length=80, max_context_length=2048, workers=(), models=())
tests/unit/test_kobold_text_wp.py:24
↓ 7 callers
Function
container_exec
(container, command: list[str])
tests/dependency_runtime.py:358
↓ 7 callers
Method
delete
Delete the user entry Only the user or a horde moderator can use this endpoint. A deleted user will initially be hidden and cannot b
horde/apis/v2/base.py:1790
↓ 7 callers
Function
generate_api_key
Generates a random API key.
horde/utils.py:87
↓ 7 callers
Method
get_model_requirements
(self, model_name)
horde/model_reference.py:121
↓ 7 callers
Method
is_ipv6
(ipaddr)
horde/countermeasures.py:254
↓ 7 callers
Method
message
(self)
horde/enums.py:50
↓ 7 callers
Method
require_upfront_kudos
Returns A tuple First entry in the tuple is True if this wp requires that the user already has the required kudos to fulfil it else
horde/classes/kobold/waiting_prompt.py:97
↓ 7 callers
Method
set_timeout
Puts the ip address into timeout for these amount of seconds
horde/countermeasures.py:165
↓ 7 callers
Method
set_trusted
(self, is_trusted)
horde/classes/base/user.py:555
↓ 6 callers
Function
_is_too_many_workers
Match the 'untrusted users can only have up to 3 distinct workers' 403. Older AI-Horde deployments raise this with the generic rc='Forbidden', so
tests/stress/locustsuite/helpers.py:19
↓ 6 callers
Method
add
(self, value, attrs=None)
tests/unit/test_telemetry.py:102
↓ 6 callers
Function
count_parentheses
(s)
horde/utils.py:127
↓ 6 callers
Method
create
(self)
horde/classes/base/user.py:465
↓ 6 callers
Method
get_text_model_multiplier
(self, model_name)
horde/model_reference.py:129
↓ 6 callers
Method
is_completed
(self)
horde/classes/base/waiting_prompt.py:373
↓ 6 callers
Method
is_patron
(self, user_id)
horde/patreon.py:31
↓ 6 callers
Method
is_valid_ip
(ipaddr)
horde/countermeasures.py:278
↓ 6 callers
Function
parse_bridge_agent
(bridge_agent)
horde/bridge_reference.py:190
↓ 6 callers
Function
pyroscope_tag
Context manager applying low-cardinality Pyroscope tags (no-op if unavailable). Callers must only pass bounded tag keys/values (endpoint family,
horde/telemetry.py:259
↓ 6 callers
Method
refresh_cache
(self)
horde/classes/base/user.py:1003
↓ 6 callers
Method
report_suspicion
(self, amount=1, reason=Suspicions.WORKER_PROFANITY, formats=None)
horde/classes/base/worker.py:200
↓ 6 callers
Function
send_problem_user_notification
(message: str)
horde/discord.py:31
↓ 6 callers
Method
set_block_timeout
Puts the ip address block into timeout for these amount of seconds
horde/countermeasures.py:198
↓ 6 callers
Function
validate_regex
(regex_string)
horde/utils.py:139
↓ 5 callers
Method
abort
Called when this request needs to be stopped without rewarding kudos. Say because it timed out due to a worker crash
horde/classes/stable/interrogation.py:135
↓ 5 callers
Method
calculate_extra_kudos_burn
I have to extend this function for the stable cost, to add an extra cost when it's an img2img img2img burns more kudos than it generates, due
horde/classes/stable/waiting_prompt.py:328
↓ 5 callers
Method
check_for_special
(self)
horde/validation.py:126
↓ 5 callers
Method
connect
(self)
horde/horde_redis.py:29
↓ 5 callers
Function
ensure_source_image_uploaded
(source_image_string, uuid_string, force_r2=False)
horde/image.py:108
↓ 5 callers
Method
extract_ipv6_subnet
(ipaddr, subnet_prefix_length=64)
horde/countermeasures.py:286
↓ 5 callers
Method
get_min_kudos
(self)
horde/classes/base/user.py:482
↓ 5 callers
Method
horde_r_set
(self, key, value)
horde/horde_redis.py:51
↓ 5 callers
Method
horde_r_setex_json
Same as horde_r_setex() but also converts the python builtin value to json
horde/horde_redis.py:72
↓ 5 callers
Method
init_err
(self, message: str, *, status: str)
horde/telemetry.py:62
↓ 5 callers
Method
is_completed
(self)
horde/classes/base/processing_generation.py:219
↓ 5 callers
Method
is_faulted
(self)
horde/classes/base/processing_generation.py:224
↓ 5 callers
Method
is_ipv4
(ipaddr)
horde/countermeasures.py:266
↓ 5 callers
Function
is_redis_up
(hostname=redis_hostname, port=redis_port)
horde/redis_ctrl.py:25
↓ 5 callers
Method
seed_to_int
(self, s=None)
horde/classes/stable/waiting_prompt.py:317
next →
1–100 of 1,285, ranked by callers