import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The input text or array of texts to generate embeddings for. Can be a single string or an array of strings. Note: batch size and input length limits vary by model. See GET /embeddings/models for model-specific limits. */ export type Input = string | Array; /** * The format to return the embeddings in. Can be either 'float' (array of numbers) or 'base64' (base64-encoded binary). */ export declare const EncodingFormat: { readonly Float: "float"; readonly Base64: "base64"; }; /** * The format to return the embeddings in. Can be either 'float' (array of numbers) or 'base64' (base64-encoded binary). */ export type EncodingFormat = ClosedEnum; /** * Request parameters for creating embeddings. Generates vector representations of the input text(s). */ export type EmbeddingsRequest = { /** * The input text or array of texts to generate embeddings for. Can be a single string or an array of strings. Note: batch size and input length limits vary by model. See GET /embeddings/models for model-specific limits. */ input: string | Array; /** * ID of the model to use for generating embeddings. Use provider:model format. See GET /embeddings/models for available models and their limits. */ model: string; /** * The number of dimensions the resulting output embeddings should have. Only supported in certain models. */ dimensions?: number | undefined; /** * The format to return the embeddings in. Can be either 'float' (array of numbers) or 'base64' (base64-encoded binary). */ encodingFormat?: EncodingFormat | undefined; /** * A unique identifier representing your end-user. */ user?: string | undefined; }; /** @internal */ export declare const Input$inboundSchema: z.ZodType; /** @internal */ export type Input$Outbound = string | Array; /** @internal */ export declare const Input$outboundSchema: z.ZodType; export declare function inputToJSON(input: Input): string; export declare function inputFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const EncodingFormat$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const EncodingFormat$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const EmbeddingsRequest$inboundSchema: z.ZodType; /** @internal */ export type EmbeddingsRequest$Outbound = { input: string | Array; model: string; dimensions?: number | undefined; encoding_format: string; user?: string | undefined; }; /** @internal */ export declare const EmbeddingsRequest$outboundSchema: z.ZodType; export declare function embeddingsRequestToJSON(embeddingsRequest: EmbeddingsRequest): string; export declare function embeddingsRequestFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=embeddingsrequest.d.ts.map