Skip to content
1 viewer

rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off

crates/cre8-app-image/src/providers/huggingface.rs

cre8-app-image · module providers::huggingface · src · 426 lines (309 code, 81 comment) · sha 6397cd306036cd45

Items

const ENV_KEY const VAULT_CREDENTIAL const CRED_NAME const ALT_POOL_BASE const ALT_POOL_CRED const DEFAULT_MODEL const DECLARED_COST_CENTS const DEFAULT_HF_PROVIDER const ENV_HF_PROVIDER const ALT_ENV_KEYS const ENV_MODEL struct HuggingFaceProvider impl ImageGenProvider for HuggingFaceProvider enum HfCallError impl From for HfCallError

Functions

By call-graph weight (PageRank; 1.0 is the average function). 22 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
detect_mimesrc/providers/huggingface.rs:115fn95201.6
generate_via_pool_or_altsrc/providers/huggingface.rs:208fn739261
resolve_modelsrc/providers/huggingface.rs:107fn71311
resolve_alt_tokensrc/providers/huggingface.rs:95fn114311
build_outputsrc/providers/huggingface.rs:282fn131210.8
call_hf_inferencesrc/providers/huggingface.rs:307fn181240.8
HuggingFaceProvider::is_availablesrc/providers/huggingface.rs:130trait impl146140.7
hf_providersrc/providers/huggingface.rs:326fn71110.7
hf_inference_bodysrc/providers/huggingface.rs:334fn205100.7
hf_inference_bytessrc/providers/huggingface.rs:355fn417110.7
generate_with_single_tokensrc/providers/huggingface.rs:188fn193130.6
HuggingFaceProvider::idsrc/providers/huggingface.rs:126trait impl31000.5
HuggingFaceProvider::cost_cents_per_callsrc/providers/huggingface.rs:145trait impl31000.5
HuggingFaceProvider::unavailable_reasonsrc/providers/huggingface.rs:149trait impl123020.5
HuggingFaceProvider::generatesrc/providers/huggingface.rs:162trait impl31010.5
HuggingFaceProvider::is_available_with_contextsrc/providers/huggingface.rs:166trait impl32020.5
HuggingFaceProvider::unavailable_reason_with_contextsrc/providers/huggingface.rs:170trait impl93020.5
HuggingFaceProvider::generate_with_contextsrc/providers/huggingface.rs:180trait impl62040.5
HfCallError::fromsrc/providers/huggingface.rs:302trait impl31000.5
resolves_default_model_when_env_unsetsrc/providers/huggingface.rs:404fn61020.5
detect_mime_signaturessrc/providers/huggingface.rs:412fn61010.5
resolve_alt_token_prioritysrc/providers/huggingface.rs:420fn61020.5

Source not readable from this process.