Databricks SDK for JavaScript
    Preparing search index...

    Interface ModelProviderServiceConfig_CustomProviderDirectConfig

    Direct form of a custom provider configuration. Set api_key to send the secret as an Authorization bearer token, or header_auth to forward it under a caller-chosen HTTP header.

    interface ModelProviderServiceConfig_CustomProviderDirectConfig {
        authMode?:
            | {
                $case: "apiKey";
                apiKey: ModelProviderServiceConfig_ProviderSecret;
            }
            | {
                $case: "headerAuth";
                headerAuth: ModelProviderServiceConfig_CustomProviderApiKeyHeaderAuth;
            };
        baseUrl?: string;
    }
    Index

    Properties

    Properties

    authMode?:
        | { $case: "apiKey"; apiKey: ModelProviderServiceConfig_ProviderSecret }
        | {
            $case: "headerAuth";
            headerAuth: ModelProviderServiceConfig_CustomProviderApiKeyHeaderAuth;
        }

    Authentication configuration. (-- Mutual exclusivity is enforced by the oneof on the wire. --)

    Type Declaration

    baseUrl?: string

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