Databricks SDK for JavaScript
    Preparing search index...
    interface ExternalModel {
        config?:
            | { $case: "ai21labsConfig"; ai21labsConfig: Ai21LabsConfig }
            | { $case: "anthropicConfig"; anthropicConfig: AnthropicConfig }
            | {
                $case: "amazonBedrockConfig";
                amazonBedrockConfig: AmazonBedrockConfig;
            }
            | { $case: "cohereConfig"; cohereConfig: CohereConfig }
            | {
                $case: "googleCloudVertexAiConfig";
                googleCloudVertexAiConfig: GoogleCloudVertexAiConfig;
            }
            | {
                $case: "databricksModelServingConfig";
                databricksModelServingConfig: DatabricksModelServingConfig;
            }
            | { $case: "openaiConfig"; openaiConfig: OpenAiConfig }
            | { $case: "palmConfig"; palmConfig: PaLmConfig }
            | {
                $case: "customProviderConfig";
                customProviderConfig: CustomProviderConfig;
            };
        name?: string;
        provider?: string;
        task?: string;
    }
    Index

    Properties

    config?:
        | { $case: "ai21labsConfig"; ai21labsConfig: Ai21LabsConfig }
        | { $case: "anthropicConfig"; anthropicConfig: AnthropicConfig }
        | {
            $case: "amazonBedrockConfig";
            amazonBedrockConfig: AmazonBedrockConfig;
        }
        | { $case: "cohereConfig"; cohereConfig: CohereConfig }
        | {
            $case: "googleCloudVertexAiConfig";
            googleCloudVertexAiConfig: GoogleCloudVertexAiConfig;
        }
        | {
            $case: "databricksModelServingConfig";
            databricksModelServingConfig: DatabricksModelServingConfig;
        }
        | { $case: "openaiConfig"; openaiConfig: OpenAiConfig }
        | { $case: "palmConfig"; palmConfig: PaLmConfig }
        | {
            $case: "customProviderConfig";
            customProviderConfig: CustomProviderConfig;
        }

    external model config. The config corresponding to the provider will be used.

    Type Declaration

    • { $case: "ai21labsConfig"; ai21labsConfig: Ai21LabsConfig }
      • $case: "ai21labsConfig"
      • ai21labsConfig: Ai21LabsConfig

        AI21Labs Config. Only required if the provider is 'ai21labs'.

    • { $case: "anthropicConfig"; anthropicConfig: AnthropicConfig }
      • $case: "anthropicConfig"
      • anthropicConfig: AnthropicConfig

        Anthropic Config. Only required if the provider is 'anthropic'.

    • { $case: "amazonBedrockConfig"; amazonBedrockConfig: AmazonBedrockConfig }
      • $case: "amazonBedrockConfig"
      • amazonBedrockConfig: AmazonBedrockConfig

        Amazon Bedrock Config. Only required if the provider is 'amazon-bedrock'.

    • { $case: "cohereConfig"; cohereConfig: CohereConfig }
      • $case: "cohereConfig"
      • cohereConfig: CohereConfig

        Cohere Config. Only required if the provider is 'cohere'.

    • {
          $case: "googleCloudVertexAiConfig";
          googleCloudVertexAiConfig: GoogleCloudVertexAiConfig;
      }
      • $case: "googleCloudVertexAiConfig"
      • googleCloudVertexAiConfig: GoogleCloudVertexAiConfig

        Google Cloud Vertex AI Config. Only required if the provider is 'google-cloud-vertex-ai'.

    • {
          $case: "databricksModelServingConfig";
          databricksModelServingConfig: DatabricksModelServingConfig;
      }
      • $case: "databricksModelServingConfig"
      • databricksModelServingConfig: DatabricksModelServingConfig

        Databricks Model Serving Config. Only required if the provider is 'databricks-model-serving'.

    • { $case: "openaiConfig"; openaiConfig: OpenAiConfig }
      • $case: "openaiConfig"
      • openaiConfig: OpenAiConfig

        OpenAI Config. Only required if the provider is 'openai'.

    • { $case: "palmConfig"; palmConfig: PaLmConfig }
      • $case: "palmConfig"
      • palmConfig: PaLmConfig

        PaLM Config. Only required if the provider is 'palm'.

    • { $case: "customProviderConfig"; customProviderConfig: CustomProviderConfig }
      • $case: "customProviderConfig"
      • customProviderConfig: CustomProviderConfig

        Custom Provider Config. Only required if the provider is 'custom'.

    name?: string

    The name of the external model.

    provider?: string

    The name of the provider for the external model. Currently, the supported providers are 'ai21labs', 'anthropic', 'amazon-bedrock', 'cohere', 'databricks-model-serving', 'google-cloud-vertex-ai', 'openai', 'palm', and 'custom'.

    task?: string

    The task type of the external model.