import * as z from "zod/v4"; import { OpenEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { PrivateEndpointPromptCaching } from "./privateendpointpromptcaching.js"; import { PrivateEndpointQuantization } from "./privateendpointquantization.js"; import { PrivateEndpointReasoningReturnMechanism } from "./privateendpointreasoningreturnmechanism.js"; export type PrivateEndpointSettingsCompletions = { /** * Serves `/chat/completions`; `null` uses the provider default. */ chat: boolean | null; /** * Serves `/completions`; `null` uses the provider default. */ text: boolean | null; }; export declare const PrivateEndpointSettingsExcludedParameter: { readonly Temperature: "temperature"; readonly TopP: "top_p"; readonly TopK: "top_k"; readonly MinP: "min_p"; readonly TopA: "top_a"; readonly FrequencyPenalty: "frequency_penalty"; readonly PresencePenalty: "presence_penalty"; readonly RepetitionPenalty: "repetition_penalty"; readonly MaxTokens: "max_tokens"; readonly MaxCompletionTokens: "max_completion_tokens"; readonly LogitBias: "logit_bias"; readonly Logprobs: "logprobs"; readonly TopLogprobs: "top_logprobs"; readonly Prediction: "prediction"; readonly Seed: "seed"; readonly ResponseFormat: "response_format"; readonly StructuredOutputs: "structured_outputs"; readonly StrictToolSchemas: "strict_tool_schemas"; readonly Stop: "stop"; readonly Tools: "tools"; readonly ToolChoice: "tool_choice"; readonly ParallelToolCalls: "parallel_tool_calls"; readonly IncludeReasoning: "include_reasoning"; readonly Reasoning: "reasoning"; readonly ReasoningEffort: "reasoning_effort"; readonly WebSearchOptions: "web_search_options"; readonly Verbosity: "verbosity"; }; export type PrivateEndpointSettingsExcludedParameter = OpenEnum; export type PrivateEndpointSettingsInputs = { /** * Accepts audio input. `null` keeps the provider default. */ audio: boolean | null; /** * Accepts base64 file data. `null` keeps the provider default. */ base64Files: boolean | null; /** * Accepts base64 image data. `null` keeps the provider default. */ base64Images: boolean | null; /** * Accepts file URLs. `null` keeps the provider default. */ fileUrls: boolean | null; /** * Accepts image URLs. `null` keeps the provider default. */ imageUrls: boolean | null; }; export type PrivateEndpointSettingsReasoning = { /** * Where the upstream puts reasoning tokens in its response: `reasoning` and `reasoning-content` are response fields, `content-string` is inline in the message, `none` returns no reasoning. `null` uses the provider default. */ returnMechanism: PrivateEndpointReasoningReturnMechanism | null; /** * Whether requests with `reasoning` route to this endpoint. */ supported: boolean; }; export type PrivateEndpointSettingsToolChoice = { /** * Accepts `tool_choice: "auto"`. */ auto: boolean; /** * Accepts a named function in `tool_choice`. */ function: boolean; /** * Accepts `tool_choice: "none"`. */ none: boolean; /** * Accepts `tool_choice: "required"`. */ required: boolean; }; /** * Capabilities and limits routing uses for this endpoint. A new endpoint copies them from the public endpoint for the same model and provider, or from the model, and the owner can change them. Rate limits are not part of this object: a private endpoint is billed to its own upstream key, so request limits stay with the provider. */ export type PrivateEndpointSettings = { completions: PrivateEndpointSettingsCompletions; /** * Longest prompt plus completion, in tokens, or `null` to keep the model default. */ contextLength: number | null; /** * Request parameters the upstream rejects even though the model supports them; requests using one do not route here. Cannot name a tested parameter. */ excludedParameters: Array; inputs: PrivateEndpointSettingsInputs; /** * Longest completion the upstream returns, in tokens, or `null` to keep the model default. */ maxCompletionTokens: number | null; /** * Longest prompt, in tokens, or `null` for no cap below the context length. Cannot exceed `context_length`, or the model context length while `context_length` is `null`. */ maxPromptTokens: number | null; /** * Prompt-caching controls for an OpenAI-compatible private endpoint. Accepted fields default on after validation; explicit owner settings override the defaults. */ promptCaching?: PrivateEndpointPromptCaching | undefined; /** * Weight precision the deployment runs at; `unknown` when not stated. */ quantization: PrivateEndpointQuantization; reasoning: PrivateEndpointSettingsReasoning; toolChoice: PrivateEndpointSettingsToolChoice; }; /** @internal */ export declare const PrivateEndpointSettingsCompletions$inboundSchema: z.ZodType; export declare function privateEndpointSettingsCompletionsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PrivateEndpointSettingsExcludedParameter$inboundSchema: z.ZodType; /** @internal */ export declare const PrivateEndpointSettingsInputs$inboundSchema: z.ZodType; export declare function privateEndpointSettingsInputsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PrivateEndpointSettingsReasoning$inboundSchema: z.ZodType; export declare function privateEndpointSettingsReasoningFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PrivateEndpointSettingsToolChoice$inboundSchema: z.ZodType; export declare function privateEndpointSettingsToolChoiceFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PrivateEndpointSettings$inboundSchema: z.ZodType; export declare function privateEndpointSettingsFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=privateendpointsettings.d.ts.map