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

OpenAiCompat::complete

cre8_app_intelligence::adapters::openai_compat::OpenAiCompat::complete

trait impl impl LlmProvider · cre8-app-intelligence · crates/cre8-app-intelligence/src/adapters/openai_compat.rs:704 pub

145lines
15cyclomatic
2max nesting
37statements
4? exits
2params
0callers
14callees
0.5 (p0)call-graph weight

Crystal

no crystal was derived for this function

Call neighbourhood

Callers left, callees right, two hops each way (0 direct callers, 14 direct callees; the heaviest shown). Dashed edges are method calls resolved by name alone.

name · 2 sitesself · 2 sitesself · 2 sitesself · 2 sitesself · 1 sitename · 1 sitename · 1 sitename · 1 sitepath · 1 sitemethod · 1 sitemethod · 1 sitepath · 2 sitespath · 2 sitespath · 1 sitename · 1 sitename · 1 sitename · 1 sitemethod · 1 sitemethod · 1 sitename · 1 sitemethod · 1 sitemethod · 2 sitesref · 1 sitename · 1 sitemethod · 1 sitepath · 1 siteOpenAiCompat::completeapp-intelligence · cc 15cre8_app_intelligence::adapters::openai_compat::OpenAiCompat::completefetchplatform-http · cc 1cre8_platform_http::fetchresponse_error_detail_from_…platform-http · cc 1cre8_platform_http::response_error_detail_from_bytesFetchResponse::headerplatform-http · cc 1cre8_platform_http::FetchResponse::headerLlmRequest::validate_image_…app-intelligence-api · cc 12cre8_app_intelligence_api::provider::LlmRequest::validate_image_messageswith_pool_failoverapp-intelligence · cc 6cre8_app_intelligence::pool_registry::with_pool_failoverllm_http_timeoutapp-intelligence · cc 1cre8_app_intelligence::adapters::openai_compat::llm_http_timeoutOpenAiCompat::auth_headersapp-intelligence · cc 5cre8_app_intelligence::adapters::openai_compat::OpenAiCompat::auth_headersOpenAiCompat::endpointapp-intelligence · cc 1cre8_app_intelligence::adapters::openai_compat::OpenAiCompat::endpointLatencyClock::startutil-quota · cc 1cre8_util_quota::LatencyClock::startOpenAiCompat::build_bodyapp-intelligence · cc 6cre8_app_intelligence::adapters::openai_compat::OpenAiCompat::build_bodyOpenAiCompat::parse_responseapp-intelligence · cc 1cre8_app_intelligence::adapters::openai_compat::OpenAiCompat::parse_responsepool_env_base_forapp-intelligence · cc 1cre8_app_intelligence::adapters::openai_compat::pool_env_base_forcapture_rate_limit_headersapp-intelligence · cc 1cre8_app_intelligence::adapters::openai_compat::capture_rate_limit_headerspool_was_emptyapp-intelligence · cc 1cre8_app_intelligence::adapters::openai_compat::pool_was_emptySecretString::expose_secretutil-secret · cc 1cre8_util_secret::SecretString::expose_secretresponse_error_detailplatform-http · cc 1cre8_platform_http::response_error_detailfetch_nativeplatform-http · cc 1cre8_platform_http::fetch_nativefetch_wasmplatform-http · cc 3cre8_platform_http::fetch_wasmRateLimitHeaders::from_head…util-quota · cc 1cre8_util_quota::RateLimitHeaders::from_header_lookupget_or_initapp-intelligence · cc 4cre8_app_intelligence::pool_registry::get_or_initApiKeyPool::pickapp-intelligence · cc 9cre8_app_intelligence::key_pool::ApiKeyPool::pickopenai_message_from_llmapp-intelligence · cc 6cre8_app_intelligence::adapters::openai_compat::openai_message_from_llmopenai_tools_bodyapp-intelligence · cc 1cre8_app_intelligence::adapters::openai_compat::openai_tools_bodyApiKeyPool::secretapp-intelligence · cc 1cre8_app_intelligence::key_pool::ApiKeyPool::secret

Control flow

Source not readable from this process.

Callers 0

    Callees 14

    Source not readable from this process.