MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / AuthHeader

Enum AuthHeader

crates/openshell-core/src/inference.rs:16–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14/// provider metadata) can share the same type.
15#[derive(Debug, Clone, PartialEq, Eq)]
16pub enum AuthHeader {
17 /// `Authorization: Bearer <key>`
18 Bearer,
19 /// Custom header name (e.g. `x-api-key` for Anthropic).
20 Custom(&'static str),
21 /// Do not inject any auth header on outgoing requests. The upstream
22 /// is expected to authenticate itself — used when the configured
23 /// `default_base_url` (or operator-supplied base-URL override) points
24 /// at a translating bridge / proxy that holds operator-side
25 /// credentials in its own pod and ignores caller-supplied auth.
26 /// Currently used by the `aws-bedrock` profile, where `SigV4` signing
27 /// is deferred to a follow-up PR; today the only supported shape is
28 /// a bridge-fronted upstream.
29 None,
30}
31
32// ---------------------------------------------------------------------------
33// Inference provider profiles

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected