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/openai.rs

cre8-app-image · module providers::openai · src · 206 lines (161 code, 21 comment) · sha 90faac9890c16bd2

Items

const ENV_KEY const CREDENTIAL_NAME const ENDPOINT const MODEL const DECLARED_COST_CENTS struct OpenAiProvider impl ImageGenProvider for OpenAiProvider

Functions

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

functionkindlinescyclomaticcallerscalleesweightcrystal
snap_sizesrc/providers/openai.rs:33fn113401.9
detect_mimesrc/providers/openai.rs:45fn115301.5
generate_via_http_with_keysrc/providers/openai.rs:116fn382251
generate_via_httpsrc/providers/openai.rs:108fn71120.9
OpenAiProvider::idsrc/providers/openai.rs:58trait impl31000.5
OpenAiProvider::is_availablesrc/providers/openai.rs:62trait impl62020.5
OpenAiProvider::cost_cents_per_callsrc/providers/openai.rs:69trait impl31000.5
OpenAiProvider::unavailable_reasonsrc/providers/openai.rs:73trait impl93020.5
OpenAiProvider::generatesrc/providers/openai.rs:83trait impl31010.5
OpenAiProvider::is_available_with_contextsrc/providers/openai.rs:87trait impl32020.5
OpenAiProvider::unavailable_reason_with_contextsrc/providers/openai.rs:91trait impl93020.5
OpenAiProvider::generate_with_contextsrc/providers/openai.rs:101trait impl51030.5
snap_size_landscapesrc/providers/openai.rs:162fn51010.5
snap_size_portraitsrc/providers/openai.rs:169fn41010.5
snap_size_square_ishsrc/providers/openai.rs:175fn61010.5
detect_mime_png_signaturesrc/providers/openai.rs:183fn41010.5
detect_mime_jpeg_signaturesrc/providers/openai.rs:189fn41010.5
unavailable_when_env_unsetsrc/providers/openai.rs:195fn112020.5

Source not readable from this process.