Databricks SDK for JavaScript
    Preparing search index...

    Interface ModelProviderServiceConfig_CustomProviderDirectConfig

    Direct form of custom provider config.

    Authentication is one of two mutually exclusive modes, exactly one of which must be supplied on Create:

    • Bearer: set api_key, leave header_auth unset. The secret is forwarded as Authorization: Bearer <secret>.
    • Header: set header_auth, leave api_key unset. The secret is forwarded as <api_key_name>: <api_key_value>. Setting both modes or neither mode is rejected.
    interface ModelProviderServiceConfig_CustomProviderDirectConfig {
        authMode?: {
            $case: "apiKey";
            apiKey: ModelProviderServiceConfig_ProviderSecret;
        };
        baseUrl?: string;
    }
    Index

    Properties

    Properties

    authMode?: {
        $case: "apiKey";
        apiKey: ModelProviderServiceConfig_ProviderSecret;
    }

    Authentication mode. Exactly one variant may be set. (-- Mutual exclusivity is enforced by the oneof on the wire. --)

    Type Declaration

    • $case: "apiKey"
    • apiKey: ModelProviderServiceConfig_ProviderSecret

      Bearer token forwarded as the Authorization: Bearer ... header on outbound requests. Supplied as inline plaintext via ProviderSecret.plaintext. Set this for bearer-token auth.

    baseUrl?: string

    Endpoint URL of the OpenAI-compatible service (e.g., https://api.example.com/v1). Required on Create.