MCPcopy Create free account

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

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

↓ 1 callersFunction_download_image
(client, bucket, key)
horde/r2.py:126
↓ 1 callersFunction_ensure_source_image_uploaded
(source_image_string, uuid_string, force_r2=False)
horde/image.py:113
↓ 1 callersFunction_expire_caches
()
tests/integration/test_statistics.py:38
↓ 1 callersMethod_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 callersFunction_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 callersFunction_handle_async_text
Common handling for POST /generate/text/async responses.
tests/stress/locustsuite/users/text.py:28
↓ 1 callersFunction_headers
(api_key: str)
tests/integration/test_statistics.py:34
↓ 1 callersFunction_hot_image_payload
(opts)
tests/stress/locustsuite/users/image.py:539
↓ 1 callersFunction_init_pyroscope
()
horde/telemetry.py:208
↓ 1 callersMethod_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 callersFunction_is_loopback_request
()
horde/routes.py:67
↓ 1 callersFunction_is_test_apikey_bootstrap_enabled
()
horde/routes.py:46
↓ 1 callersFunction_kudos_histogram
(name: str, description: str)
horde/metrics.py:112
↓ 1 callersFunction_normalize_base_url
(base_url: str)
tests/integration/bootstrap_test_user.py:38
↓ 1 callersFunction_parse_args
()
tests/integration/bootstrap_test_user.py:28
↓ 1 callersMethod_post_inner
(self)
horde/apis/v2/base.py:179
↓ 1 callersMethod_post_inner
(self)
horde/apis/v2/base.py:543
↓ 1 callersFunction_preflight_target
(host: str, timeout: float, fail_hard: bool, environment)
tests/stress/locustsuite/events.py:353
↓ 1 callersFunction_read_aggregated
Return the ``Aggregated`` summary row from a Locust ``*_stats.csv``.
tests/stress/check_smoke_results.py:39
↓ 1 callersMethod_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 callersFunction_record_queries
(engine)
tests/unit/conftest.py:145
↓ 1 callersFunction_register_oauth
(app)
horde/flask.py:202
↓ 1 callersFunction_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 callersMethod_run_nsfw_model_block
(self, prompt, models)
horde/detection.py:244
↓ 1 callersMethod_run_prompt_check
(self, prompt, _id=None)
horde/detection.py:125
↓ 1 callersFunction_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 callersMethod_set_generation_inner
(self, generation, things_per_sec, **kwargs)
horde/classes/stable/processing_generation.py:88
↓ 1 callersMethod_start_generation
(self, worker, amount=1, gen_span=None)
horde/classes/base/waiting_prompt.py:269
↓ 1 callersFunction_unique_suffix
()
tests/unit/conftest.py:184
↓ 1 callersFunction_upload_image
(client, bucket, image, filename, quality=100)
horde/r2.py:109
↓ 1 callersFunction_upload_prompt
(prompt_dict)
horde/r2.py:187
↓ 1 callersMethodabort_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 callersMethodactivate_waiting_prompt
(self)
horde/apis/v2/base.py:459
↓ 1 callersFunctionadd_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 callersFunctionadd_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 callersFunctionadd_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 callersMethodadjust_user_kudos
(self, kudos)
horde/classes/base/processing_generation.py:197
↓ 1 callersMethodapply_style
(self)
horde/apis/v2/kobold.py:189
↓ 1 callersMethodapply_style
(self)
horde/apis/v2/stable.py:391
↓ 1 callersFunctionassert_safe_test_target
Abort when tests point at a non-local DB unless explicitly allowed.
tests/dependency_runtime.py:152
↓ 1 callersFunctionassign_monthly_kudos
()
horde/database/threads.py:81
↓ 1 callersFunctionbuild_test_runtime
(deps_mode: str, needs_object_store: bool)
tests/dependency_runtime.py:117
↓ 1 callersMethodcalculate_basis_time
(self)
horde/classes/stable/kudos.py:284
↓ 1 callersFunctioncalculate_image_tiles
Returns the amount of 512x512 tiles the image is composed of image is a PIL object
horde/image.py:151
↓ 1 callersMethodcalculate_kudos
Returns the expected kudos a worker will receive for this request
horde/classes/base/waiting_prompt.py:469
↓ 1 callersMethodcalculate_uptime_reward
(self)
horde/classes/base/worker.py:275
↓ 1 callersMethodcall_function
(self)
horde/threads.py:83
↓ 1 callersMethodcall_function
Retrieves to image and text model reference and stores in it a var
horde/model_reference.py:29
↓ 1 callersMethodcall_function
(self)
horde/stripe_subs.py:16
↓ 1 callersMethodcall_function
(self)
horde/patreon.py:16
↓ 1 callersMethodcan_interrogate
(self, interrogation_form)
horde/classes/stable/interrogation_worker.py:64
↓ 1 callersMethodcancel
Cancelling requests in progress still rewards/burns the relevant amount of kudos
horde/classes/base/processing_generation.py:156
↓ 1 callersMethodcheck_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 callersMethodcheck_for_bad_actor
(self)
horde/classes/base/user.py:490
↓ 1 callersMethodcheck_for_bad_actor
(self)
horde/classes/base/worker.py:190
↓ 1 callersMethodcheck_in
(self)
horde/apis/v2/base.py:672
↓ 1 callersMethodcheck_in
(self)
horde/apis/v2/stable.py:675
↓ 1 callersMethodcheck_in
(self)
horde/apis/v2/stable.py:1267
↓ 1 callersMethodcheck_ip
(self)
horde/apis/v2/base.py:737
↓ 1 callersFunctioncheck_model_state
(model_name)
horde/database/functions.py:460
↓ 1 callersMethodcheck_nsfw_model_block
(self, prompt, models)
horde/detection.py:235
↓ 1 callersMethodcheck_prompt_replacement_length
(self, prompt)
horde/detection.py:294
↓ 1 callersFunctioncheck_sampler_capability
(sampler, bridge_agent, karras=True)
horde/bridge_reference.py:251
↓ 1 callersFunctioncheck_shared_image
(filename)
horde/r2.py:225
↓ 1 callersFunctioncheck_waiting_prompts
()
horde/database/threads.py:181
↓ 1 callersMethodcompile_records_details
(self)
horde/classes/base/user.py:910
↓ 1 callersFunctionconfigure_postgres
(runtime: HordeTestRuntime)
tests/dependency_runtime.py:285
↓ 1 callersFunctionconfigure_redis
(runtime: HordeTestRuntime)
tests/dependency_runtime.py:303
↓ 1 callersMethodconsume_kudos
(self, kudos, commit=True)
horde/classes/base/user.py:166
↓ 1 callersFunctionconvert_b64_to_pil
(source_image_b64)
horde/image.py:17
↓ 1 callersMethodconvert_contribution
(self, raw_things)
horde/classes/base/worker.py:339
↓ 1 callersMethodcount_pp
(self)
horde/classes/stable/waiting_prompt.py:592
↓ 1 callersMethodcount_processing_jobs
(self)
horde/classes/base/waiting_prompt.py:360
↓ 1 callersMethodcount_sharedkeys
(self)
horde/classes/base/user.py:851
↓ 1 callersFunctioncount_things_for_specific_model
(wp_class, procgen_class, model_name)
horde/database/functions.py:804
↓ 1 callersFunctioncount_things_per_model
(wp_class)
horde/database/functions.py:790
↓ 1 callersFunctioncount_workers_on_ip
(ip_addr)
horde/database/functions.py:134
↓ 1 callersMethodcreate
(self, styles)
horde/classes/base/style.py:53
↓ 1 callersMethodcreate
(self)
horde/classes/base/team.py:37
↓ 1 callersMethoddelete
Deletes an image style.
horde/apis/v2/stable_styles.py:237
↓ 1 callersMethoddelete
Deletes a style collection.
horde/apis/v2/styles.py:500
↓ 1 callersFunctiondelete_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 callersFunctiondelete_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 callersFunctiondelete_source_image
(source_image_uuid)
horde/r2.py:100
↓ 1 callersMethoddeliver
(self, result, state)
horde/classes/stable/interrogation.py:78
↓ 1 callersMethoddisable
(self)
horde/switch.py:12
↓ 1 callersFunctiondownload_procgen_image
(procgen_id, shared=False)
horde/r2.py:136
↓ 1 callersFunctiondownload_source_image
(wp_id, shared=False)
horde/r2.py:142
↓ 1 callersFunctiondownload_source_mask
(wp_id, shared=False)
horde/r2.py:146
↓ 1 callersMethodensure_kudos_positive
(self)
horde/classes/base/user.py:779
↓ 1 callersMethodexceeding_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 callersMethodextract_params
(self)
horde/classes/base/waiting_prompt.py:236
↓ 1 callersMethodextrapolate_dry_run_kudos
(self)
horde/apis/v2/base.py:239
↓ 1 callersMethodextrapolate_dry_run_kudos
(self)
horde/apis/v2/stable.py:335
↓ 1 callersMethodfake_generation
(self, worker)
horde/classes/base/waiting_prompt.py:314
↓ 1 callersFunctionfind_sharedkey
(shared_key)
horde/database/functions.py:240
↓ 1 callersFunctionfind_user_by_api_key
(api_key)
horde/database/functions.py:222
↓ 1 callersFunctionfind_user_by_contact
(contact)
horde/database/functions.py:214
↓ 1 callersFunctionforce_subscription_kudos
(user_id, prevent_date_change)
horde/ops.py:12
↓ 1 callersFunctiongarage_health_ready
(url: str)
tests/dependency_runtime.py:384
← previousnext →301–400 of 1,285, ranked by callers