pub struct ProviderConnectionOverride {
pub base_url: Option<String>,
pub auth_mode: Option<ProviderAuthMode>,
pub request_model: Option<String>,
pub inference_profile_arn: Option<String>,
}Expand description
Per-provider connection settings, merged over the built-in defaults.
Force first-party auth (e.g. an OAuth store) for a provider:
{ "auth": "default" }Point a provider at a custom base URL with auth disabled:
{ "url": "https://gateway.internal/v1", "auth": "none" }Request-target routing keeps the catalog model identity and its capabilities while sending a different provider-specific model or deployment name on the wire:
{ "requestModel": "production-coding-deployment" }Use url for providers with resource-specific endpoints, such as Microsoft Foundry. A trailing slash is normalized before /chat/completions is appended. A provider with requestModel cannot appear more than once in an alloy because the target would be ambiguous.
Pin a Bedrock application inference profile:
{ "inferenceProfileArn": "arn:aws:bedrock:us-west-2:000000000000:application-inference-profile/abc" }Fields§
§base_url: Option<String>Base URL override for the provider’s API endpoint.
auth_mode: Option<ProviderAuthMode>Authentication mode. default uses the provider’s normal credential
chain; none disables auth, for local or unauthenticated servers.
request_model: Option<String>Provider-specific model or deployment target sent in requests without changing catalog identity.
inference_profile_arn: Option<String>AWS Bedrock application inference profile ARN to route requests through.
Implementations§
Trait Implementations§
Source§impl Clone for ProviderConnectionOverride
impl Clone for ProviderConnectionOverride
Source§fn clone(&self) -> ProviderConnectionOverride
fn clone(&self) -> ProviderConnectionOverride
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProviderConnectionOverride
impl Debug for ProviderConnectionOverride
Source§impl Default for ProviderConnectionOverride
impl Default for ProviderConnectionOverride
Source§fn default() -> ProviderConnectionOverride
fn default() -> ProviderConnectionOverride
Source§impl<'de> Deserialize<'de> for ProviderConnectionOverride
impl<'de> Deserialize<'de> for ProviderConnectionOverride
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ProviderConnectionOverride
Source§impl JsonSchema for ProviderConnectionOverride
impl JsonSchema for ProviderConnectionOverride
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for ProviderConnectionOverride
Auto Trait Implementations§
impl Freeze for ProviderConnectionOverride
impl RefUnwindSafe for ProviderConnectionOverride
impl Send for ProviderConnectionOverride
impl Sync for ProviderConnectionOverride
impl Unpin for ProviderConnectionOverride
impl UnsafeUnpin for ProviderConnectionOverride
impl UnwindSafe for ProviderConnectionOverride
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more