!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a09e5b-4cf3-7ca1-a378-49b7206e9cbf")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,359424,e=>{"use strict";var t,r=e.i(723409),a=e.i(687421),i=e.i(217631),n=e.i(204067),o=e.i(796805),p=((t={}).AD="AD",t.AE="AE",t.AF="AF",t.AG="AG",t.AI="AI",t.AL="AL",t.AM="AM",t.AO="AO",t.AQ="AQ",t.AR="AR",t.AS="AS",t.AT="AT",t.AU="AU",t.AW="AW",t.AX="AX",t.AZ="AZ",t.BA="BA",t.BB="BB",t.BD="BD",t.BE="BE",t.BF="BF",t.BG="BG",t.BH="BH",t.BI="BI",t.BJ="BJ",t.BL="BL",t.BM="BM",t.BN="BN",t.BO="BO",t.BQ="BQ",t.BR="BR",t.BS="BS",t.BT="BT",t.BV="BV",t.BW="BW",t.BY="BY",t.BZ="BZ",t.CA="CA",t.CC="CC",t.CD="CD",t.CF="CF",t.CG="CG",t.CH="CH",t.CI="CI",t.CK="CK",t.CL="CL",t.CM="CM",t.CN="CN",t.CO="CO",t.CR="CR",t.CU="CU",t.CV="CV",t.CW="CW",t.CX="CX",t.CY="CY",t.CZ="CZ",t.DE="DE",t.DJ="DJ",t.DK="DK",t.DM="DM",t.DO="DO",t.DZ="DZ",t.EC="EC",t.EE="EE",t.EG="EG",t.EH="EH",t.ER="ER",t.ES="ES",t.ET="ET",t.FI="FI",t.FJ="FJ",t.FK="FK",t.FM="FM",t.FO="FO",t.FR="FR",t.GA="GA",t.GB="GB",t.GD="GD",t.GE="GE",t.GF="GF",t.GG="GG",t.GH="GH",t.GI="GI",t.GL="GL",t.GM="GM",t.GN="GN",t.GP="GP",t.GQ="GQ",t.GR="GR",t.GS="GS",t.GT="GT",t.GU="GU",t.GW="GW",t.GY="GY",t.HK="HK",t.HM="HM",t.HN="HN",t.HR="HR",t.HT="HT",t.HU="HU",t.ID="ID",t.IE="IE",t.IL="IL",t.IM="IM",t.IN="IN",t.IO="IO",t.IQ="IQ",t.IR="IR",t.IS="IS",t.IT="IT",t.JE="JE",t.JM="JM",t.JO="JO",t.JP="JP",t.KE="KE",t.KG="KG",t.KH="KH",t.KI="KI",t.KM="KM",t.KN="KN",t.KP="KP",t.KR="KR",t.KW="KW",t.KY="KY",t.KZ="KZ",t.LA="LA",t.LB="LB",t.LC="LC",t.LI="LI",t.LK="LK",t.LR="LR",t.LS="LS",t.LT="LT",t.LU="LU",t.LV="LV",t.LY="LY",t.MA="MA",t.MC="MC",t.MD="MD",t.ME="ME",t.MF="MF",t.MG="MG",t.MH="MH",t.MK="MK",t.ML="ML",t.MM="MM",t.MN="MN",t.MO="MO",t.MP="MP",t.MQ="MQ",t.MR="MR",t.MS="MS",t.MT="MT",t.MU="MU",t.MV="MV",t.MW="MW",t.MX="MX",t.MY="MY",t.MZ="MZ",t.NA="NA",t.NC="NC",t.NE="NE",t.NF="NF",t.NG="NG",t.NI="NI",t.NL="NL",t.NO="NO",t.NP="NP",t.NR="NR",t.NU="NU",t.NZ="NZ",t.OM="OM",t.PA="PA",t.PE="PE",t.PF="PF",t.PG="PG",t.PH="PH",t.PK="PK",t.PL="PL",t.PM="PM",t.PN="PN",t.PR="PR",t.PS="PS",t.PT="PT",t.PW="PW",t.PY="PY",t.QA="QA",t.RE="RE",t.RO="RO",t.RS="RS",t.RU="RU",t.RW="RW",t.SA="SA",t.SB="SB",t.SC="SC",t.SD="SD",t.SE="SE",t.SG="SG",t.SH="SH",t.SI="SI",t.SJ="SJ",t.SK="SK",t.SL="SL",t.SM="SM",t.SN="SN",t.SO="SO",t.SR="SR",t.SS="SS",t.ST="ST",t.SV="SV",t.SX="SX",t.SY="SY",t.SZ="SZ",t.TC="TC",t.TD="TD",t.TF="TF",t.TG="TG",t.TH="TH",t.TJ="TJ",t.TK="TK",t.TL="TL",t.TM="TM",t.TN="TN",t.TO="TO",t.TR="TR",t.TT="TT",t.TV="TV",t.TW="TW",t.TZ="TZ",t.UA="UA",t.UG="UG",t.UM="UM",t.US="US",t.UY="UY",t.UZ="UZ",t.VA="VA",t.VC="VC",t.VE="VE",t.VG="VG",t.VI="VI",t.VN="VN",t.VU="VU",t.WF="WF",t.WS="WS",t.YE="YE",t.YT="YT",t.ZA="ZA",t.ZM="ZM",t.ZW="ZW",t);let d=o.z.object({requiresUserIDs:o.z.boolean().optional(),privacyPolicyURL:o.z.string().optional(),termsOfServiceURL:o.z.string().optional(),dataPolicyUrl:o.z.string().optional(),dataPolicyNotes:o.z.string().optional(),training:o.z.boolean(),trainingOpenRouter:o.z.boolean().optional(),retainsPrompts:o.z.boolean().optional(),retentionDays:(0,n.zInt)().optional(),canPublish:o.z.boolean().optional()}),s=o.z.object({url:o.z.string(),darkUrl:o.z.string().optional(),className:o.z.string().optional()}),l=o.z.union([o.z.nativeEnum(r.AdapterName),o.z.nativeEnum(r.EmbeddingsAdapterName),o.z.nativeEnum(r.ImageGenerationAdapterName),o.z.nativeEnum(r.RerankAdapterName),o.z.nativeEnum(r.STTAdapterName),o.z.nativeEnum(r.TTSAdapterName),o.z.nativeEnum(r.VideoGenerationAdapterName),o.z.nativeEnum(r.BatchAdapterName)]),A=o.z.string().refine(e=>(0,i.isMember)(e,a.PublicProviderName),{message:"Invalid public provider name"}),u=o.z.object({name:A.openapi({description:"Provider identifier"}),displayName:o.z.string(),slug:o.z.string(),adapterName:l,baseUrl:o.z.string(),dataPolicy:d,headquarters:o.z.nativeEnum(p).optional(),datacenters:o.z.array(o.z.nativeEnum(p)).optional(),hasChatCompletions:o.z.boolean(),hasCompletions:o.z.boolean(),isAbortable:o.z.boolean(),moderationRequired:o.z.boolean(),statusPageUrl:o.z.string().nullable(),byokEnabled:o.z.boolean(),icon:s,description:o.z.string().nullish(),sendClientIp:o.z.boolean(),pricingStrategy:o.z.string().nullish()}).openapi({description:"Sanitized ProviderInfo returned to public clients"}),c=o.z.array(u);e.s(["PublicProviderInfoListSchema",0,c],359424)},723409,e=>{"use strict";var t,r,a,i,n,o=((t={}).AzureOpenAIEmbeddingsAdapter="AzureOpenAIEmbeddingsAdapter",t.OpenAIEmbeddingsAdapter="OpenAIEmbeddingsAdapter",t.NvidiaEmbeddingsAdapter="NvidiaEmbeddingsAdapter",t.VoyageEmbeddingsAdapter="VoyageEmbeddingsAdapter",t.VoyageMultimodalEmbeddingsAdapter="VoyageMultimodalEmbeddingsAdapter",t.PerplexityEmbeddingsAdapter="PerplexityEmbeddingsAdapter",t.GoogleAIStudioEmbeddingsAdapter="GoogleAIStudioEmbeddingsAdapter",t.GoogleVertexEmbeddingsAdapter="GoogleVertexEmbeddingsAdapter",t),p=((r={}).AlibabaVideoAdapter="AlibabaVideoAdapter",r.AtlasCloudKlingV3Adapter="AtlasCloudKlingV3Adapter",r.AtlasCloudWanAdapter="AtlasCloudWanAdapter",r.BlackForestLabsVideoAdapter="BlackForestLabsVideoAdapter",r.BlackForestLabsVideoEditAdapter="BlackForestLabsVideoEditAdapter",r.BlackForestLabsVideoUpscaleAdapter="BlackForestLabsVideoUpscaleAdapter",r.BytePlusSeedanceAdapter="BytePlusSeedanceAdapter",r.GoogleAIStudioInteractionsVideoAdapter="GoogleAIStudioInteractionsVideoAdapter",r.GoogleAIStudioVeoAdapter="GoogleAIStudioVeoAdapter",r.GoogleVertexInteractionsVideoAdapter="GoogleVertexInteractionsVideoAdapter",r.GoogleVertexVeoAdapter="GoogleVertexVeoAdapter",r.HeyGenAvatarIVAdapter="HeyGenAvatarIVAdapter",r.HeyGenVideoAgentAdapter="HeyGenVideoAgentAdapter",r.KreaVideoAdapter="KreaVideoAdapter",r.MinimaxHailuoAdapter="MinimaxHailuoAdapter",r.MinimaxHailuoV2Adapter="MinimaxHailuoV2Adapter",r.RunwayVideoAdapter="RunwayVideoAdapter",r.RunwayVideoToHdrAdapter="RunwayVideoToHdrAdapter",r.RunwayVideoUpscaleAdapter="RunwayVideoUpscaleAdapter",r.SoraOpenAIAdapter="SoraOpenAIAdapter",r.XAIVideoAdapter="XAIVideoAdapter",r),d=((a={}).AlibabaImageAdapter="AlibabaImageAdapter",a.SeedreamImageAdapter="SeedreamImageAdapter",a.XaiImageAdapter="XaiImageAdapter",a.RecraftImageAdapter="RecraftImageAdapter",a.BlackForestLabsImageAdapter="BlackForestLabsImageAdapter",a.SourcefulImageAdapter="SourcefulImageAdapter",a.SourcefulV2ImageAdapter="SourcefulV2ImageAdapter",a.SourcefulV25ImageAdapter="SourcefulV25ImageAdapter",a.OpenAIImageAdapter="OpenAIImageAdapter",a.MetaImageAdapter="MetaImageAdapter",a.GoogleAIStudioGeminiImageAdapter="GoogleAIStudioGeminiImageAdapter",a.GoogleVertexGeminiImageAdapter="GoogleVertexGeminiImageAdapter",a.AzureMAIImageAdapter="AzureMAIImageAdapter",a.QuiverImageAdapter="QuiverImageAdapter",a.KreaImageAdapter="KreaImageAdapter",a),s=((i={}).CohereRerankAdapter="CohereRerankAdapter",i.DeepInfraRerankAdapter="DeepInfraRerankAdapter",i.FireworksRerankAdapter="FireworksRerankAdapter",i.JinaRerankAdapter="JinaRerankAdapter",i.VoyageRerankAdapter="VoyageRerankAdapter",i.NvidiaRerankAdapter="NvidiaRerankAdapter",i);let l={Stub:"stub",OpenAIBatchAdapter:"OpenAIBatchAdapter",AnthropicBatchAdapter:"AnthropicBatchAdapter",GoogleAIStudioGeminiBatchAdapter:"GoogleAIStudioGeminiBatchAdapter",VertexGeminiBatchAdapter:"VertexGeminiBatchAdapter",TogetherBatchAdapter:"TogetherBatchAdapter",FireworksBatchAdapter:"FireworksBatchAdapter",MistralBatchAdapter:"MistralBatchAdapter",XAIBatchAdapter:"XAIBatchAdapter"};var A=((n={}).AI21Adapter="AI21Adapter",n.AionLabsAdapter="AionLabsAdapter",n.AkashAdapter="AkashAdapter",n.ArceeAdapter="ArceeAdapter",n.AmazonBedrockConverseAdapter="AmazonBedrockConverseAdapter",n.AmazonBedrockConverseNovaReasoningAdapter="AmazonBedrockConverseNovaReasoningAdapter",n.AmazonBedrockInvokeAnthropicAdapter="AmazonBedrockInvokeAnthropicAdapter",n.AmazonBedrockOSSAdapter="AmazonBedrockOSSAdapter",n.AmazonNovaAdapter="AmazonNovaAdapter",n.AnthropicMessageAdapter="AnthropicMessageAdapter",n.ClaudeOnAwsAdapter="ClaudeOnAwsAdapter",n.AlibabaAdapter="AlibabaAdapter",n.AmbientAdapter="AmbientAdapter",n.BlackForestLabsAdapter="BlackForestLabsAdapter",n.BaiduAdapter="BaiduAdapter",n.AvianAdapter="AvianAdapter",n.AzureAnthropicAdapter="AzureAnthropicAdapter",n.AzureMistralAdapter="AzureMistralAdapter",n.AzureOpenAIAdapter="AzureOpenAIAdapter",n.AzureOpenAIResponsesAdapter="AzureOpenAIResponsesAdapter",n.AzureMAIImageAdapter="AzureMAIImageAdapter",n.AzureOSSAdapter="AzureOSSAdapter",n.BasetenAdapter="BasetenAdapter",n.BytePlusAdapter="BytePlusAdapter",n.ChutesAdapter="ChutesAdapter",n.CloudflareAdapter="CloudflareAdapter",n.CohereV2Adapter="CohereV2Adapter",n.InternalStreamCohereV2Adapter="InternalStreamCohereV2Adapter",n.CerebrasAdapter="CerebrasAdapter",n.ClarifaiAdapter="ClarifaiAdapter",n.CosineAdapter="CosineAdapter",n.CrucibleAdapter="CrucibleAdapter",n.CrucibleResponsesAdapter="CrucibleResponsesAdapter",n.CrusoeAdapter="CrusoeAdapter",n.DarkbloomAdapter="DarkbloomAdapter",n.DatabricksAnthropicAdapter="DatabricksAnthropicAdapter",n.DatabricksOpenResponsesAdapter="DatabricksOpenResponsesAdapter",n.DeepInfraAdapter="DeepInfraAdapter",n.DeepSeekAdapter="DeepSeekAdapter",n.DigitalOceanAdapter="DigitalOceanAdapter",n.EncodedImageOpenAIAdapter="EncodedImageOpenAIAdapter",n.FakeAdapter="FakeAdapter",n.FireworksAdapter="FireworksAdapter",n.FireworksAnthropicAdapter="FireworksAnthropicAdapter",n.FriendliAdapter="FriendliAdapter",n.GoogleAIStudioGeminiAdapter="GoogleAIStudioGeminiAdapter",n.GoogleVertexAnthropicAdapter="GoogleVertexAnthropicAdapter",n.GoogleVertexGeminiAdapter="GoogleVertexGeminiAdapter",n.GroqAdapter="GroqAdapter",n.InceptionAdapter="InceptionAdapter",n.InceptronAdapter="InceptronAdapter",n.InferactVLLMAdapter="InferactVLLMAdapter",n.InfermaticAdapter="InfermaticAdapter",n.InflectionAdapter="InflectionAdapter",n.InflectionLegacyAdapter="InflectionLegacyAdapter",n.InternalStreamAmazonBedrockInvokeAnthropicAdapter="InternalStreamAmazonBedrockInvokeAnthropicAdapter",n.InternalStreamAmazonBedrockOpenAIResponsesAdapter="InternalStreamAmazonBedrockOpenAIResponsesAdapter",n.InternalStreamAmazonBedrockRuntimeOpenAIResponsesAdapter="InternalStreamAmazonBedrockRuntimeOpenAIResponsesAdapter",n.InternalStreamAnthropicMessageAdapter="InternalStreamAnthropicMessageAdapter",n.InternalStreamAzureAnthropicAdapter="InternalStreamAzureAnthropicAdapter",n.InternalStreamAzureMAIImageAdapter="InternalStreamAzureMAIImageAdapter",n.InternalStreamAzureOpenAIResponsesAdapter="InternalStreamAzureOpenAIResponsesAdapter",n.InternalStreamClaudeOnAwsAdapter="InternalStreamClaudeOnAwsAdapter",n.InternalStreamGoogleAIStudioInteractionsAdapter="InternalStreamGoogleAIStudioInteractionsAdapter",n.InternalStreamGoogleVertexAnthropicAdapter="InternalStreamGoogleVertexAnthropicAdapter",n.InternalStreamGoogleVertexInteractionsAdapter="InternalStreamGoogleVertexInteractionsAdapter",n.InternalStreamOpenAIResponsesAdapter="InternalStreamOpenAIResponsesAdapter",n.InternalStreamRecraftAdapter="InternalStreamRecraftAdapter",n.InternalStreamXAIImageAdapter="InternalStreamXAIImageAdapter",n.InternalStreamXAIResponsesAdapter="InternalStreamXAIResponsesAdapter",n.IonetAdapter="IonetAdapter",n.IonstreamAdapter="IonstreamAdapter",n.MakoraAdapter="MakoraAdapter",n.MancerAdapter="MancerAdapter",n.InternalStreamMetaResponsesAdapter="InternalStreamMetaResponsesAdapter",n.MistralAdapter="MistralAdapter",n.MinimaxAdapter="MinimaxAdapter",n.ModelRunAdapter="ModelRunAdapter",n.MinimaxChatCompletionV2Adapter="MinimaxChatCompletionV2Adapter",n.MoonshotAdapter="MoonshotAdapter",n.MorphAdapter="MorphAdapter",n.MorphFastApplyAdapter="MorphFastApplyAdapter",n.NearAIAdapter="NearAIAdapter",n.NebiusAdapter="NebiusAdapter",n.NexAGIAdapter="NexAGIAdapter",n.NextBitAdapter="NextBitAdapter",n.NovitaAdapter="NovitaAdapter",n.NvidiaAdapter="NvidiaAdapter",n.OllamaAdapter="OllamaAdapter",n.OpenAIAdapter="OpenAIAdapter",n.AtlasCloudAdapter="AtlasCloudAdapter",n.GMICloudAdapter="GMICloudAdapter",n.OpenInferenceAdapter="OpenInferenceAdapter",n.ParasailAdapter="ParasailAdapter",n.PhalaAdapter="PhalaAdapter",n.PrimeIntellectAdapter="PrimeIntellectAdapter",n.OpenAIResponsesAdapter="OpenAIResponsesAdapter",n.PerceptronAdapter="PerceptronAdapter",n.PerplexityAdapter="PerplexityAdapter",n.RecraftAdapter="RecraftAdapter",n.RelaceAdapter="RelaceAdapter",n.StealthAdapter="StealthAdapter",n.StealthAdapter2="StealthAdapter2",n.InternalStreamStealthAdapter2="InternalStreamStealthAdapter2",n.StepFunAdapter="StepFunAdapter",n.StreamLakeAdapter="StreamLakeAdapter",n.TogetherAdapter="TogetherAdapter",n.UpstageAdapter="UpstageAdapter",n.XAIImageAdapter="XAIImageAdapter",n.XAIResponsesAdapter="XAIResponsesAdapter",n.XiaomiAdapter="XiaomiAdapter",n.ZAIAdapter="ZAIAdapter",n.SiliconFlowAdapter="SiliconFlowAdapter",n.SailResearchAdapter="SailResearchAdapter",n.SakanaAIAdapter="SakanaAIAdapter",n.SambaNovaAdapter="SambaNovaAdapter",n.TenstorrentAdapter="TenstorrentAdapter",n.ThinkingMachinesAdapter="ThinkingMachinesAdapter",n.SeedreamAdapter="SeedreamAdapter",n.InternalStreamSeedreamAdapter="InternalStreamSeedreamAdapter",n.SourcefulAdapter="SourcefulAdapter",n.SourcefulV2Adapter="SourcefulV2Adapter",n.SourcefulV25Adapter="SourcefulV25Adapter",n.InternalStreamBlackForestLabsAdapter="InternalStreamBlackForestLabsAdapter",n.InternalStreamSourcefulAdapter="InternalStreamSourcefulAdapter",n.InternalStreamSourcefulV2Adapter="InternalStreamSourcefulV2Adapter",n.InternalStreamSourcefulV25Adapter="InternalStreamSourcefulV25Adapter",n.VeniceAdapter="VeniceAdapter",n.VertexOpenAIAdapter="VertexOpenAIAdapter",n.VLLMChatCompletionsAdapter="VLLMChatCompletionsAdapter",n.VLLMOpenAIAdapter="VLLMOpenAIAdapter",n.WaferAdapter="WaferAdapter",n.WandbAdapter="WandbAdapter",n);let u={[l.Stub]:[],[l.OpenAIBatchAdapter]:["OpenAIAdapter","OpenAIResponsesAdapter","OpenAIEmbeddingsAdapter"],[l.AnthropicBatchAdapter]:["AnthropicMessageAdapter"],[l.GoogleAIStudioGeminiBatchAdapter]:["GoogleAIStudioGeminiAdapter"],[l.VertexGeminiBatchAdapter]:["GoogleVertexGeminiAdapter"],[l.TogetherBatchAdapter]:["TogetherAdapter"],[l.FireworksBatchAdapter]:["FireworksAdapter"],[l.MistralBatchAdapter]:["MistralAdapter"],[l.XAIBatchAdapter]:["XAIResponsesAdapter","InternalStreamXAIResponsesAdapter"]};e.s(["AdapterName",()=>A,"BatchAdapterName",0,l,"EmbeddingsAdapterName",()=>o,"ImageGenerationAdapterName",()=>d,"RerankAdapterName",()=>s,"STTAdapterName",0,{OpenAISTTAdapter:"OpenAISTTAdapter",GroqSTTAdapter:"GroqSTTAdapter",GoogleCloudSTTAdapter:"GoogleCloudSTTAdapter",GoogleGeminiSTTAdapter:"GoogleGeminiSTTAdapter",AlibabaSTTAdapter:"AlibabaSTTAdapter",MistralSTTAdapter:"MistralSTTAdapter",TogetherSTTAdapter:"TogetherSTTAdapter",MicrosoftSTTAdapter:"MicrosoftSTTAdapter",DeepgramSTTAdapter:"DeepgramSTTAdapter",FishAudioSTTAdapter:"FishAudioSTTAdapter",XAISTTAdapter:"XAISTTAdapter",DeepInfraSTTAdapter:"DeepInfraSTTAdapter",MetaSTTAdapter:"MetaSTTAdapter"},"TTSAdapterName",0,{AlibabaTTSAdapter:"AlibabaTTSAdapter",AzureTTSAdapter:"AzureTTSAdapter",OpenAITTSAdapter:"OpenAITTSAdapter",OpenAISSETTSAdapter:"OpenAISSETTSAdapter",GoogleVertexTTSAdapter:"GoogleVertexTTSAdapter",MistralTTSAdapter:"MistralTTSAdapter",XAITTSAdapter:"XAITTSAdapter",DeepgramTTSAdapter:"DeepgramTTSAdapter",MinimaxTTSAdapter:"MinimaxTTSAdapter",FishAudioTTSAdapter:"FishAudioTTSAdapter",TogetherTTSAdapter:"TogetherTTSAdapter"},"VideoGenerationAdapterName",()=>p,"batchAdaptersDelegatingTo",0,function(e){return Object.values(l).filter(t=>u[t].some(t=>e.has(t)))}])},611784,e=>{"use strict";var t,r=((t={}).Price="price",t.Throughput="throughput",t.Latency="latency",t.Exacto="exacto",t);e.s(["ProviderSort",()=>r,"getProviderSortDisplayNameDetailed",0,function(e){switch(e){case"price":return"Price (cheapest first)";case"throughput":return"Throughput (highest first)";case"latency":return"Latency (lowest first)";case"exacto":return"Exacto (tool-call quality first)";default:return"Unknown"}}])},928803,e=>{"use strict";var t,r=((t={}).Int4="int4",t.Int8="int8",t.FloatingPoint4="fp4",t.MicroscalingFloatingPoint4="mxfp4",t.NvidiaFloatingPoint4="nvfp4",t.FloatingPoint6="fp6",t.FloatingPoint8="fp8",t.MicroscalingFloatingPoint8="mxfp8",t.FloatingPoint16="fp16",t.BrainFloating16="bf16",t.FloatingPoint32="fp32",t.Unknown="unknown",t);let a={int4:["int4"],int8:["int8"],fp4:["fp4","mxfp4","nvfp4"],mxfp4:["mxfp4"],nvfp4:["nvfp4"],fp6:["fp6"],fp8:["fp8","mxfp8"],mxfp8:["mxfp8"],fp16:["fp16"],bf16:["bf16"],fp32:["fp32"],unknown:["unknown"]};e.s(["Quantization",()=>r,"getQuantizationDisplayName",0,function(e){switch(e){case"int4":return"Integer (4 bit)";case"int8":return"Integer (8 bit)";case"fp4":return"Floating point (4 bit)";case"mxfp4":return"Microscaling floating point (4 bit)";case"nvfp4":return"NVIDIA floating point (4 bit)";case"fp6":return"Floating point (6 bit)";case"fp8":return"Floating point (8 bit)";case"mxfp8":return"Microscaling floating point (8 bit)";case"fp16":return"Floating point (16 bit)";case"fp32":return"Floating point (32 bit)";case"bf16":return"Brain floating point (16 bit)";case"unknown":return"Unknown"}},"matchesQuantizationFamily",0,function(e,t){return a[e].includes(t)}])},996961,71975,e=>{"use strict";var t=e.i(505962),r=e.i(706527),a=e.i(179273),i=e.i(79247);e.i(270401);var n=e.i(864160),o=e.i(151960),p=e.i(626824),d=e.i(10684),s=e.i(8842),l=e.i(450740);let A=(0,p.createQueryKeys)("model-info",{available:()=>[],private:e=>[e]});function u(){return(0,s.queryOptions)({queryKey:A.available(),queryFn:({signal:e})=>(0,o.fetchAPIQuery)("/api/frontend/v1/catalog/models",{signal:e}),staleTime:d.StaleTime.CATALOG})}function c(e){return(0,s.queryOptions)({queryKey:A.private(e),queryFn:null===e?l.skipToken:({signal:e})=>(0,o.fetchAPIQuery)("/api/frontend/v1/private/models",{signal:e}),staleTime:d.StaleTime.CATALOG})}e.s(["availableModelsOptions",0,u,"privateModelsOptions",0,c],71975);let m=/:(?:nitro|floor|exacto|online|all)/g;function g(e){return e.clerkOrg?.id??e.entity?.clerk_user_id??null}e.s(["useModelInfo",0,function(e){let o,p,d,s,l,A,h,S,f,b,I,y,v,M,T=(0,t.c)(38);T[0]!==e?(o=void 0===e?{}:e,T[0]=e,T[1]=o):o=T[1];let{shouldFetchAvailableModels:P,shouldFetchPrivateModels:B}=o,k=void 0===P||P,G=void 0!==B&&B,z=(0,n.useUserStore)(g);T[2]!==G?(p=e=>G&&!e.isLoading&&!e.isOrgLoading&&e.isSignedIn,T[2]=G,T[3]=p):p=T[3];let C=(0,n.useUserStore)(p);T[4]!==G?(d=e=>G&&(e.isLoading||e.isOrgLoading),T[4]=G,T[5]=d):d=T[5];let V=(0,n.useUserStore)(d),N=C?z:null;T[6]===Symbol.for("react.memo_cache_sentinel")?(s=u(),T[6]=s):s=T[6],T[7]!==k?(l={...s,enabled:k},T[7]=k,T[8]=l):l=T[8];let{data:w,isError:R}=(0,i.useQuery)(l);T[9]!==N?(A=c(N),T[9]=N,T[10]=A):A=T[10];let{data:O,isPending:x}=(0,i.useQuery)(A);T[11]!==w?(h=w?.filter(r.isActiveModel)??[],T[11]=w,T[12]=h):h=T[12];let U=h,E=U.length,D=V||null!==N&&x;T[13]!==O?(S=O??[],T[13]=O,T[14]=S):S=T[14],T[15]!==w||T[16]!==S?(f=function({availableModels:e,privateModels:t=[]}){if(!e)return null;let a=new Map,i=new Map;for(let t of e)a.set((0,r.getModelVariantSlug)(t),t),i.set((0,r.getModelVariantPermaslug)(t),t);for(let e of t){let t=(0,r.getModelVariantSlug)(e),n=(0,r.getModelVariantPermaslug)(e);a.has(t)||a.set(t,e),i.has(n)||i.set(n,e)}return{modelVariantSlugMap:a,modelVariantPermaslugMap:i}}({availableModels:w,privateModels:S}),T[15]=w,T[16]=S,T[17]=f):f=T[17];let L=f,F=L?.modelVariantSlugMap??null,_=L?.modelVariantPermaslugMap??null;T[18]!==_||T[19]!==F?(b=e=>{let t=e.replace(m,"");return F?.has(t)?F.get(t):_?.has(t)?_.get(t):null},T[18]=_,T[19]=F,T[20]=b):b=T[20];let K=b;T[21]!==_?(I=e=>{let t=e.replace(m,"");return _?.has(t)?_.get(t):null},T[21]=_,T[22]=I):I=T[22];let q=I;T[23]!==q?(y=e=>{let t=q(e);return t||q(`${e}${a.sep}${a.Variant.Free}`)},T[23]=q,T[24]=y):y=T[24];let W=y;T[25]!==O?(v=O??[],T[25]=O,T[26]=v):v=T[26];let H=null!==F&&null!==_;return T[27]!==U||T[28]!==U||T[29]!==q||T[30]!==K||T[31]!==W||T[32]!==R||T[33]!==D||T[34]!==E||T[35]!==v||T[36]!==H?(M={modelCount:E,privateModels:v,isPrivateModelsLoading:D,hasAvailableModelsError:R,availableTextModels:U,featuredTextModels:U,getModelInfoByVariantSlug:K,getModelInfoByVariantPermaslug:q,getPrimaryModelInfoByPermaslug:W,isReady:H},T[27]=U,T[28]=U,T[29]=q,T[30]=K,T[31]=W,T[32]=R,T[33]=D,T[34]=E,T[35]=v,T[36]=H,T[37]=M):M=T[37],M}],996961)},217196,e=>{"use strict";var t=e.i(359424),r=e.i(8842),a=e.i(450740),i=e.i(151960);let n=(0,e.i(626824).createQueryKeys)("byok-providers",{granted:e=>[e]});e.s(["grantedByokProvidersOptions",0,function(e){return(0,r.queryOptions)({queryKey:n.granted(e),queryFn:null===e?a.skipToken:({signal:e})=>(0,i.fetchAPIQuery)("/api/frontend/v1/private/byok-providers",{schema:t.PublicProviderInfoListSchema,signal:e})})}])},773195,e=>{"use strict";var t=e.i(359424),r=e.i(151960),a=e.i(626824),i=e.i(10684),n=e.i(609266),o=e.i(8842);let p=(0,a.createQueryKeys)("provider-info",{available:()=>[],catalog:e=>[e]});e.s(["availableProvidersOptions",0,function(){return(0,o.queryOptions)({queryKey:p.available(),queryFn:({signal:e})=>(0,r.fetchAPIQuery)("/api/frontend/v1/all-providers",{schema:t.PublicProviderInfoListSchema,signal:e}),staleTime:i.StaleTime.CATALOG})},"providerCatalogOptions",0,function(e){return(0,o.queryOptions)({queryKey:p.catalog(e),queryFn:({signal:t})=>(0,r.fetchAPIQuery)("/api/frontend/v1/catalog/providers",{schema:n.ProviderNameSchema.array(),searchParams:e,signal:t}),staleTime:i.StaleTime.COALESCE_MOUNTS})}])},784510,e=>{"use strict";var t=e.i(505962),r=e.i(185473),a=e.i(461790),i=e.i(179273),n=e.i(749509),o=e.i(708991),p=e.i(270401),d=e.i(996961),s=e.i(79247),l=e.i(217196),A=e.i(773195),u=e.i(864160);function c(e){return[[e.slug,e]]}function m(e){return[[e.name,e]]}function g(e){return e.contextEntityId}let h={prefixes:["/activity","/apps/url","/chat","/compare","/discover","/fusion","/labs/image-sandbox","/labs/quality-tournament","/labs/simulate-price","/logs","/models","/provider","/providers/compare","/rankings","/request-builder","/settings/privacy","/settings/profile"],patterns:[/^\/apps\/[^/]+$/,/^\/private\/[^/]+\/[^/]+(?:\/(?:pricing|providers))?$/,/^\/settings\/organization-members\/[^/]+$/,/^\/workspaces\/[^/]+$/,/^\/workspaces\/[^/]+\/(?:activity|byok|guardrails|interns\/[^/]+|keys\/[^/]+|logs|observability\/destinations|presets|routing)(?:\/|$)/]},S={prefixes:["/logs","/activity","/chat"],patterns:[/^\/workspaces\/[^/]+\/(?:presets|byok|guardrails)(?:\/|$)/]},f={prefixes:["/settings/privacy"],patterns:[/^\/workspaces\/[^/]+\/(?:guardrails|presets)(?:\/|$)/]},b=(e,{prefixes:t,patterns:r})=>t.some(t=>e===t||e.startsWith(`${t}/`))||r.some(t=>t.test(e)),{BaseContext:I,Provider:y}=(0,o.createProvider)(e=>{let o,p,I,y,v,M,T,P=(0,t.c)(33),{routePathname:B,routeParams:k}=e,G=void 0===k?null:k,z=(0,n.usePathname)(),C=void 0===B?z:B;if(P[0]!==C||P[1]!==G)o=null===C||G?.["maker-id"]!==void 0&&!C.startsWith("/private/")||b(C,h),P[0]=C,P[1]=G,P[2]=o;else o=P[2];let V=o;P[3]!==C?(p=null!==C&&b(C,S),P[3]=C,P[4]=p):p=P[4],P[5]!==V||P[6]!==p?(I={shouldFetchAvailableModels:V,shouldFetchPrivateModels:p},P[5]=V,P[6]=p,P[7]=I):I=P[7];let N=(0,d.useModelInfo)(I);P[8]!==C?(y=null!==C&&b(C,f),P[8]=C,P[9]=y):y=P[9],P[10]!==V||P[11]!==y?(v={shouldFetchAvailableProviders:V,shouldFetchGrantedProviders:y},P[10]=V,P[11]=y,P[12]=v):v=P[12];let w=function(e){let r,a,i,n,o,p,d,h,S,f,b=(0,t.c)(24);b[0]!==e?(r=void 0===e?{}:e,b[0]=e,b[1]=r):r=b[1];let{shouldFetchAvailableProviders:I,shouldFetchGrantedProviders:y}=r,v=void 0===I||I;b[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,A.availableProvidersOptions)(),b[2]=a):a=b[2],b[3]!==v?(i={...a,enabled:v},b[3]=v,b[4]=i):i=b[4];let{data:M,isError:T}=(0,s.useQuery)(i),P=(0,u.useUserStore)(g),B=void 0!==y&&y?P:null;b[5]!==B?(n=(0,l.grantedByokProvidersOptions)(B),b[5]=B,b[6]=n):n=b[6];let{data:k}=(0,s.useQuery)(n);e:{let e;if(!M){o=null;break e}b[7]!==M||b[8]!==k?(e=function(e,t){let r=Array.isArray(t)?t:[];if(0===r.length)return e;let a=new Set(e.flatMap(e=>[e.name,e.slug]));return[...e,...r.filter(e=>!a.has(e.name)&&!a.has(e.slug))]}(M,k),b[7]=M,b[8]=k,b[9]=e):e=b[9],o=e}let G=o;t:{let e;if(!G){p=null;break t}b[10]!==G?(e=new Map(G.flatMap(m)),b[10]=G,b[11]=e):e=b[11],p=e}let z=p;r:{let e;if(!G){d=null;break r}b[12]!==G?(e=new Map(G.flatMap(c)),b[12]=G,b[13]=e):e=b[13],d=e}let C=d;b[14]!==z||b[15]!==C?(h=e=>z?.get(e)??C?.get(e)??null,b[14]=z,b[15]=C,b[16]=h):h=b[16];let V=h;b[17]!==z?(S=()=>z?Array.from(z.values()):[],b[17]=z,b[18]=S):S=b[18];let N=S,w=null!==z;return b[19]!==N||b[20]!==V||b[21]!==T||b[22]!==w?(f={getProviderInfo:V,getAllProviders:N,isReady:w,hasAvailableProvidersError:T},b[19]=N,b[20]=V,b[21]=T,b[22]=w,b[23]=f):f=b[23],f}(v);P[13]!==N||P[14]!==w?(M=e=>{let{slug:t,variant:n,providerName:o}=e,p=t?(0,a.getStandardSlug)(t):null,d=p&&n?(0,i.getSlugWithStaticVariant)(p,n):null,s=d?N.getModelInfoByVariantSlug(d):null,l=s?.short_name||"--",A=o?w.getProviderInfo(o):null,u=o&&A?A.displayName:null;return(0,r.toNonNullArray)([l,u]).join(" | ")},P[13]=N,P[14]=w,P[15]=M):M=P[15];let R=M,O=N.isReady&&w.isReady;return P[16]!==R||P[17]!==N.availableTextModels||P[18]!==N.featuredTextModels||P[19]!==N.getModelInfoByVariantPermaslug||P[20]!==N.getModelInfoByVariantSlug||P[21]!==N.getPrimaryModelInfoByPermaslug||P[22]!==N.hasAvailableModelsError||P[23]!==N.isPrivateModelsLoading||P[24]!==N.isReady||P[25]!==N.modelCount||P[26]!==N.privateModels||P[27]!==w.getAllProviders||P[28]!==w.getProviderInfo||P[29]!==w.hasAvailableProvidersError||P[30]!==w.isReady||P[31]!==O?(T={modelCount:N.modelCount,privateModels:N.privateModels,isPrivateModelsLoading:N.isPrivateModelsLoading,hasAvailableModelsError:N.hasAvailableModelsError,availableTextModels:N.availableTextModels,featuredTextModels:N.featuredTextModels,getModelInfoByVariantSlug:N.getModelInfoByVariantSlug,getModelInfoByVariantPermaslug:N.getModelInfoByVariantPermaslug,getPrimaryModelInfoByPermaslug:N.getPrimaryModelInfoByPermaslug,getProviderInfo:w.getProviderInfo,getAllProviders:w.getAllProviders,getEndpointDisplayName:R,isReady:O,isModelsReady:N.isReady,isProvidersReady:w.isReady,hasAvailableProvidersError:w.hasAvailableProvidersError},P[16]=R,P[17]=N.availableTextModels,P[18]=N.featuredTextModels,P[19]=N.getModelInfoByVariantPermaslug,P[20]=N.getModelInfoByVariantSlug,P[21]=N.getPrimaryModelInfoByPermaslug,P[22]=N.hasAvailableModelsError,P[23]=N.isPrivateModelsLoading,P[24]=N.isReady,P[25]=N.modelCount,P[26]=N.privateModels,P[27]=w.getAllProviders,P[28]=w.getProviderInfo,P[29]=w.hasAvailableProvidersError,P[30]=w.isReady,P[31]=O,P[32]=T):T=P[32],T});e.s(["GlobalProvider",0,y,"useGlobal",0,()=>{let e=(0,p.useContext)(I);if(!e)throw Error("useGlobal must be used within a GlobalProvider.");return e}],784510)},185473,e=>{"use strict";var t=e.i(81174);e.i(693697),e.s(["chunkArray",0,function(e,t){if(t<=0)throw Error(`chunkArray: size must be positive, got ${t}`);let r=[];for(let a=0;a{let a=e(t),i=e(r);return a&&!i?-1:!a&&i?1:0}},"ensureArray",0,e=>{if(void 0!==e)return Array.isArray(e)?e:[e]},"groupBy",0,function(e,t){let r=new Map;return e.forEach(e=>{let a=t(e),i=r.get(a);i?i.push(e):r.set(a,[e])}),Array.from(r,([e,t])=>({key:e,values:t}))},"intersectRestrictions",0,function(e,t){let r=null!==t&&t.length>0;if(null===e)return r?t:null;if(!r)return e;let a=new Set(t);return e.filter(e=>a.has(e))},"partition",0,function(e,t){let r=[],a=[];for(let i of e)t(i)?r.push(i):a.push(i);return{true:r,false:a}},"peek",0,e=>e.at(-1),"takeWhile",0,function(e,t){let r=e.findIndex(e=>!t(e));return -1===r?e:e.slice(0,r)},"toNonNullArray",0,e=>e.filter(e=>null!==e),"uniqueBy",0,function(e,r){if(!e)return(0,t.eLog)("uniqueBy: List is undefined"),[];let a=new Set;return e.filter(e=>{let t=r(e);return!a.has(t)&&(a.add(t),!0)})}])},555618,e=>{"use strict";var t=e.i(288027),r=e.i(204067),a=e.i(796805);let i=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"];i.length;let n=a.z.array(a.z.enum(i)).min(1).refine(e=>new Set(e).size===e.length,{message:"utc_days must not repeat a weekday"}),o=a.z.object({min_prompt_tokens:(0,r.zDouble)().optional().openapi({description:"Condition: the entry applies when the total prompt tokens of a request are strictly greater than this threshold"}),utc_start:(0,r.zDouble)().optional().openapi({description:"Condition: inclusive start of a daily UTC time window as an HHMM clock number (e.g. 100 = 01:00, 1030 = 10:30). The entry applies while the current UTC time is inside the half-open window [utc_start, utc_end), which may wrap past midnight (utc_start > utc_end)."}),utc_end:(0,r.zDouble)().optional().openapi({description:"Condition: exclusive end of a daily UTC time window as an HHMM clock number (e.g. 400 = 04:00)"}),utc_days:n.optional().openapi({description:"Condition: UTC weekdays the entry applies on, evaluated at the request instant. Scopes the utc_start/utc_end window (or, without a window, the whole UTC day) to the listed days. Absent means every day."}),prompt:t.BigNumberUnionSchemaBase.optional().openapi({description:"Overridden price in USD per token for prompt (input) processing",type:"string"}),completion:t.BigNumberUnionSchemaBase.optional().openapi({description:"Overridden price in USD per token for completion (output) generation",type:"string"}),audio:t.BigNumberUnionSchemaBase.optional().openapi({description:"Overridden price in USD per audio input token",type:"string"}),input_audio_cache:t.BigNumberUnionSchemaBase.optional().openapi({description:"Overridden price in USD per cached audio input token",type:"string"}),input_cache_read:t.BigNumberUnionSchemaBase.optional().openapi({description:"Overridden price in USD per cached input token (read)",type:"string"}),input_cache_write:t.BigNumberUnionSchemaBase.optional().openapi({description:"Overridden price in USD per cache-write token",type:"string"}),input_cache_write_1h:t.BigNumberUnionSchemaBase.optional().openapi({description:"Overridden price in USD per 1-hour cache-write token",type:"string"})}).openapi("PricingOverride",{description:"A conditional override of the base pricing. An entry applies only when all of its condition fields (e.g. min_prompt_tokens, or the utc_start/utc_end time window) match the request; among applicable entries, later entries win per price key; price keys absent from an entry inherit the base price.",example:{min_prompt_tokens:2e5,prompt:"0.000005",completion:"0.00002"}}),p=a.z.object({prompt:t.BigNumberUnionSchemaBase.openapi({description:"Price in USD per token for prompt (input) processing",type:"string"}),completion:t.BigNumberUnionSchemaBase.openapi({description:"Price in USD per token for completion (output) generation",type:"string"}),request:t.BigNumberUnionSchemaBase.optional().openapi({description:"Price in USD per request",type:"string"}),image:t.BigNumberUnionSchemaBase.optional().openapi({description:"Price in USD per input image",type:"string"}),image_token:t.BigNumberUnionSchemaBase.optional().openapi({description:"Price in USD per image token",type:"string"}),image_output:t.BigNumberUnionSchemaBase.optional().openapi({description:"Price in USD per output image",type:"string"}),audio:t.BigNumberUnionSchemaBase.optional().openapi({description:"Price in USD per audio input token",type:"string"}),audio_output:t.BigNumberUnionSchemaBase.optional().openapi({description:"Price in USD per audio output token",type:"string"}),input_audio_cache:t.BigNumberUnionSchemaBase.optional().openapi({description:"Price in USD per cached audio input token",type:"string"}),web_search:t.BigNumberUnionSchemaBase.optional().openapi({description:"Price in USD per web search",type:"string"}),internal_reasoning:t.BigNumberUnionSchemaBase.optional().openapi({description:"Price in USD per internal reasoning token",type:"string"}),input_cache_read:t.BigNumberUnionSchemaBase.optional().openapi({description:"Price in USD per cached input token (read)",type:"string"}),input_cache_write:t.BigNumberUnionSchemaBase.optional().openapi({description:"Price per cache-write token, in USD per token. For providers with multiple cache TTLs (e.g. Anthropic), this is the default (5-minute) cache-write rate.",type:"string"}),input_cache_write_1h:t.BigNumberUnionSchemaBase.optional().openapi({description:"Price per 1-hour cache-write token, in USD per token. Only present for providers that price an extended (1-hour) cache TTL separately, such as Anthropic.",type:"string"}),discount:(0,r.zDouble)().optional().openapi({description:"Fractional discount applied to this endpoint's pricing; the price is multiplied by (1 - discount) (0 = no discount, 1 = free)"}),overrides:a.z.array(o).optional().openapi({description:"Conditional overrides of the base pricing (e.g. long-context or time-based pricing). An entry applies when all of its condition fields (e.g. min_prompt_tokens, or the utc_start/utc_end time window) match the request; among applicable entries, later entries win per key; price keys absent from an entry inherit the base price. The top-level pricing keys always reflect the price that applies under default conditions."})}),d=a.z.object({prompt:t.BigNumberUnionSchemaBase.openapi({description:"Maximum price in USD per million prompt tokens",type:"string"}),completion:t.BigNumberUnionSchemaBase.openapi({description:"Maximum price in USD per million completion tokens",type:"string"}),image:t.BigNumberUnionSchemaBase.optional().openapi({description:"Maximum price in USD per image",type:"string"}),audio:t.BigNumberUnionSchemaBase.optional().openapi({description:"Maximum price in USD per audio unit",type:"string"}),request:t.BigNumberUnionSchemaBase.optional().openapi({description:"Maximum price in USD per request",type:"string"})}).partial().optional();e.s(["PublicPricingInputSchema",0,d,"PublicPricingSchema",0,p],555618)},609266,483951,e=>{"use strict";var t,r=e.i(611784),a=e.i(687421),i=e.i(928803),n=((t={}).Model="model",t.None="none",t);e.s(["SortPartition",()=>n],483951);var o=e.i(217631),p=e.i(204067),d=e.i(796805),s=e.i(220988),l=e.i(555618);let A=d.z.enum(["deny","allow"]).openapi("DataCollection",{example:"allow"}),u=d.z.enum(i.Quantization).openapi("Quantization",{example:i.Quantization.FloatingPoint16}),c=d.z.enum(r.ProviderSort).openapi("ProviderSort",{description:"The provider sorting strategy (price, throughput, latency)",example:r.ProviderSort.Price}),m=d.z.enum([n.Model,n.None]).openapi("SortPartition",{description:'Partitioning strategy for sorting: "model" (default) groups endpoints by model before sorting (fallback models remain fallbacks), "none" sorts all endpoints together regardless of model.',example:n.Model}),g=d.z.object({by:c.nullish().openapi({description:"The provider sorting strategy (price, throughput, latency)",example:r.ProviderSort.Price,enum:[...Object.values(r.ProviderSort),null]}),partition:m.nullish().openapi({description:'Partitioning strategy for sorting: "model" (default) groups endpoints by model before sorting (fallback models remain fallbacks), "none" sorts all endpoints together regardless of model.',example:n.Model,enum:[n.Model,n.None,null]})}).openapi("ProviderSortConfig",{description:"The provider sorting strategy (price, throughput, latency)",example:{by:r.ProviderSort.Price,partition:n.Model}}),h=d.z.union([c,g]).openapi("ProviderSortUnion",{description:"The provider sorting strategy (price, throughput, latency)",example:r.ProviderSort.Price}),S=d.z.enum(a.PublicProviderName).openapi("ProviderName",{example:a.PublicProviderName.OpenAI}),f=d.z.array(d.z.union([S,d.z.string()])).openapi("ProviderIdArray",{description:"An array of provider identifiers (names or slugs).",example:["openai","anthropic"]}),b=d.z.preprocess(e=>Array.isArray(e)?e.map(e=>"string"==typeof e?(0,o.isMember)(e,a.PublicProviderName)?a.providerSlugMap[a.legacyProviderNameMap[e]??e]:(0,a.getCanonicalProviderSlug)(e)??e:e):e,f),I=d.z.object({p50:(0,p.zDouble)().nullish().openapi({description:"Minimum p50 throughput (tokens/sec)"}),p75:(0,p.zDouble)().nullish().openapi({description:"Minimum p75 throughput (tokens/sec)"}),p90:(0,p.zDouble)().nullish().openapi({description:"Minimum p90 throughput (tokens/sec)"}),p99:(0,p.zDouble)().nullish().openapi({description:"Minimum p99 throughput (tokens/sec)"})}).openapi("PercentileThroughputCutoffs",{description:"Percentile-based throughput cutoffs. All specified cutoffs must be met for an endpoint to be preferred.",example:{p50:100,p90:50}}),y=d.z.object({p50:(0,p.zDouble)().nullish().openapi({description:"Maximum p50 latency (seconds)"}),p75:(0,p.zDouble)().nullish().openapi({description:"Maximum p75 latency (seconds)"}),p90:(0,p.zDouble)().nullish().openapi({description:"Maximum p90 latency (seconds)"}),p99:(0,p.zDouble)().nullish().openapi({description:"Maximum p99 latency (seconds)"})}).openapi("PercentileLatencyCutoffs",{description:"Percentile-based latency cutoffs. All specified cutoffs must be met for an endpoint to be preferred.",example:{p50:5,p90:10}}),v=d.z.union([(0,p.zDouble)(),I]).nullish().openapi("PreferredMinThroughput",{description:"Preferred minimum throughput. Can be a number (applies to p50) or an object with percentile-specific cutoffs (p50, p75, p90, p99). All specified cutoffs must be met for an endpoint to be preferred.",example:100}),M=d.z.union([(0,p.zDouble)(),y]).nullish().openapi("PreferredMaxLatency",{description:"Preferred maximum latency (in seconds). Can be a number (applies to p50) or an object with percentile-specific cutoffs (p50, p75, p90, p99). All specified cutoffs must be met for an endpoint to be preferred.",example:5}),T=d.z.object({allow_fallbacks:d.z.boolean().nullish().describe(`Whether to allow backup providers to serve requests - true: (default) when the primary provider (or your custom providers in "order") is unavailable, use the next best provider. - false: use only the primary/custom provider, and return the upstream error if it's unavailable. `),require_parameters:d.z.boolean().nullish().describe("Whether to filter providers to only those that support the parameters you've provided. If this setting is omitted or set to false, then providers will receive only the parameters they support, and ignore the rest."),data_collection:A.nullish().openapi({description:"Data collection setting. If no available model provider meets the requirement, your request will return an error.",example:"allow"}).describe((0,s.default)(`Data collection setting. If no available model provider meets the requirement, your request will return an error. - allow: (default) allow providers which store user data non-transiently and may train on it - deny: use only providers which do not collect user data. `)),zdr:d.z.boolean().nullish().openapi({description:"Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used.",example:!0}),enforce_distillable_text:d.z.boolean().nullish().openapi({description:"Whether to restrict routing to only models that allow text distillation. When true, only models where the author has allowed distillation will be used.",example:!0}),order:b.nullish().describe("An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message."),only:b.nullish().describe("List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider settings for this request."),ignore:b.nullish().describe("List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request."),quantizations:d.z.array(u).nullish().describe("A list of quantization levels to filter the provider by."),sort:h.nullish().describe('The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.'),max_price:l.PublicPricingInputSchema.describe("The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion."),preferred_min_throughput:v.openapi({description:"Preferred minimum throughput (in tokens per second). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints below the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.",example:100}).describe("Preferred minimum throughput (in tokens per second). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints below the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold."),preferred_max_latency:M.openapi({description:"Preferred maximum latency (in seconds). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints above the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.",example:5}).describe("Preferred maximum latency (in seconds). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints above the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.")}).openapi("ProviderPreferences",{description:"Provider routing preferences for the request.",example:{allow_fallbacks:!0}});e.s(["ProviderNameSchema",0,S,"ProviderPreferencesSchema",0,T,"QuantizationSchema",0,u,"SortPartitionSchema",0,m,"getProviderSortBy",0,function(e){return e?"string"==typeof e?e:e.by??null:null},"getSortPartition",0,function(e){return e&&"string"!=typeof e?e.partition??null:null}],609266)},461790,e=>{"use strict";var t=e.i(179273);e.s(["getStandardSlug",0,e=>e.split(t.sep)[0]])}]); //# sourceMappingURL=12k-j_bk3orvn.js.map //# chunkId=01a09e5b-4cf3-7ca1-a378-49b7206e9cbf