Databricks SDK for JavaScript
    Preparing search index...
    interface QueryEndpointResponse {
        choices?: V1ResponseChoiceElement[];
        created?: bigint;
        data?: EmbeddingsV1ResponseEmbeddingElement[];
        id?: string;
        model?: string;
        object?: QueryEndpointResponseObject;
        outputs?: JsonValue[];
        predictions?: JsonValue[];
        servedModelName?: string;
        usage?: ExternalModelUsageElement;
    }
    Index

    Properties

    The list of choices returned by the chat or completions external/foundation model serving endpoint.

    created?: bigint

    The timestamp in seconds when the query was created in Unix time returned by a completions or chat external/foundation model serving endpoint.

    The list of the embeddings returned by the embeddings external/foundation model serving endpoint.

    id?: string

    The ID of the query that may be returned by a completions or chat external/foundation model serving endpoint.

    model?: string

    The name of the external/foundation model used for querying. This is the name of the model that was specified in the endpoint config.

    The type of object returned by the external/foundation model serving endpoint, one of [text_completion, chat.completion, list (of embeddings)].

    outputs?: JsonValue[]

    The outputs of the feature serving endpoint.

    predictions?: JsonValue[]

    The predictions returned by the serving endpoint.

    servedModelName?: string

    The name of the served model that served the request. This is useful when there are multiple models behind the same endpoint with traffic split.

    The usage object that may be returned by the external/foundation model serving endpoint. This contains information about the number of tokens used in the prompt and response.