import * as z from "zod"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; /** * Input text to embed, encoded as a string. To embed multiple inputs in a single request, pass an array of strings. The input must not exceed the max input tokens for the model (8192 tokens for `nomic-ai/nomic-embed-text-v1.5`), cannot be an empty string, and any array must be 2048 dimensions or less. * * @remarks */ export type Input = string | Array; export declare const Two: { readonly NomicAiNomicEmbedTextV15: "nomic-ai/nomic-embed-text-v1.5"; readonly ThenlperGteBase: "thenlper/gte-base"; }; export type Two = ClosedEnum; export type Model = string | Two; export type CreateEmbeddingRequest = { /** * Input text to embed, encoded as a string. To embed multiple inputs in a single request, pass an array of strings. The input must not exceed the max input tokens for the model (8192 tokens for `nomic-ai/nomic-embed-text-v1.5`), cannot be an empty string, and any array must be 2048 dimensions or less. * * @remarks */ input: string | Array; model: string | Two; /** * The number of dimensions the resulting output embeddings should have. Only supported in `nomic-ai/nomic-embed-text-v1.5` and later models. * * @remarks */ dimensions?: number | undefined; /** * The format to return the embeddings in. Must be `float`. * * @remarks */ encodingFormat?: 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; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Input$ { /** @deprecated use `Input$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Input$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Input$Outbound` instead. */ type Outbound = Input$Outbound; } export declare function inputToJSON(input: Input): string; export declare function inputFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Two$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Two$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Two$ { /** @deprecated use `Two$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly NomicAiNomicEmbedTextV15: "nomic-ai/nomic-embed-text-v1.5"; readonly ThenlperGteBase: "thenlper/gte-base"; }>; /** @deprecated use `Two$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly NomicAiNomicEmbedTextV15: "nomic-ai/nomic-embed-text-v1.5"; readonly ThenlperGteBase: "thenlper/gte-base"; }>; } /** @internal */ export declare const Model$inboundSchema: z.ZodType; /** @internal */ export type Model$Outbound = string | string; /** @internal */ export declare const Model$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Model$ { /** @deprecated use `Model$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Model$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Model$Outbound` instead. */ type Outbound = Model$Outbound; } export declare function modelToJSON(model: Model): string; export declare function modelFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CreateEmbeddingRequest$inboundSchema: z.ZodType; /** @internal */ export type CreateEmbeddingRequest$Outbound = { input: string | Array; model: string | string; dimensions?: number | undefined; encoding_format: string; }; /** @internal */ export declare const CreateEmbeddingRequest$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace CreateEmbeddingRequest$ { /** @deprecated use `CreateEmbeddingRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CreateEmbeddingRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CreateEmbeddingRequest$Outbound` instead. */ type Outbound = CreateEmbeddingRequest$Outbound; } export declare function createEmbeddingRequestToJSON(createEmbeddingRequest: CreateEmbeddingRequest): string; export declare function createEmbeddingRequestFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=createembeddingrequest.d.ts.map