/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "./environments"; import * as core from "./core"; import * as MixedbreadAI from "./api/index"; export declare namespace MixedbreadAIClient { interface Options { environment?: core.Supplier; apiKey: core.Supplier; } interface RequestOptions { timeoutInSeconds?: number; maxRetries?: number; abortSignal?: AbortSignal; } } export declare class MixedbreadAIClient { protected readonly _options: MixedbreadAIClient.Options; constructor(_options: MixedbreadAIClient.Options); /** * Create embeddings for text or images using the specified model, encoding format, and normalization. * * @param {MixedbreadAI.EmbeddingsRequest} request * @param {MixedbreadAIClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link MixedbreadAI.BadRequestError} * @throws {@link MixedbreadAI.UnauthorizedError} * @throws {@link MixedbreadAI.ForbiddenError} * @throws {@link MixedbreadAI.NotFoundError} * @throws {@link MixedbreadAI.UnprocessableEntityError} * @throws {@link MixedbreadAI.TooManyRequestsError} * @throws {@link MixedbreadAI.InternalServerError} * * @example * await client.embeddings({ * model: "mixedbread-ai/mxbai-embed-large-v1", * input: "This is a sample text input." * }) */ embeddings(request: MixedbreadAI.EmbeddingsRequest, requestOptions?: MixedbreadAIClient.RequestOptions): Promise; /** * @param {MixedbreadAI.RerankingRequest} request * @param {MixedbreadAIClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link MixedbreadAI.BadRequestError} * @throws {@link MixedbreadAI.UnauthorizedError} * @throws {@link MixedbreadAI.ForbiddenError} * @throws {@link MixedbreadAI.NotFoundError} * @throws {@link MixedbreadAI.UnprocessableEntityError} * @throws {@link MixedbreadAI.TooManyRequestsError} * @throws {@link MixedbreadAI.InternalServerError} * * @example * await client.reranking({ * query: { * text: "text" * }, * input: ["Document 1", "Document 2"] * }) */ reranking(request: MixedbreadAI.RerankingRequest, requestOptions?: MixedbreadAIClient.RequestOptions): Promise; protected _getCustomAuthorizationHeaders(): Promise<{ Authorization: string; }>; }