(()=>{var a={};a.id=115,a.ids=[115],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},5262:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{POST:()=>j,dynamic:()=>k});var e=c(23211),f=c(75430),g=c(98388),h=a([f,g]);[f,g]=h.then?(await h)():h;let k="force-dynamic";function i(a){return a.replace(/(好的，作为顶级\s*AI\s*图像提示词工程专家.*?[。！!])[\s\r\n]*[-*~_]{3,}[\s\r\n]*(###\s*(?:🖼️\s*)?深度图像拆解分析)/gi,"$1\n$2")}async function j(a){try{let b,{image:c,mimeType:d,provider:h,modelId:j}=await a.json();if(!c||!d)return e.NextResponse.json({error:"image and mimeType are required"},{status:400});let k=c.trim();if(k.startsWith("data:")){let a=k.indexOf(",");-1!==a&&(k=k.substring(a+1))}k=k.replace(/\s/g,"");try{if(b=Buffer.from(k,"base64"),0===b.length)return e.NextResponse.json({error:"Image data decoded to empty buffer — the base64 payload may be corrupt."},{status:400});k=b.toString("base64")}catch{return e.NextResponse.json({error:"Failed to decode base64 image data."},{status:400})}let l=d.toLowerCase().trim().split(";")[0].trim();"image/jpg"===l&&(l="image/jpeg");let m=b;255===m[0]&&216===m[1]&&255===m[2]?l="image/jpeg":137===m[0]&&80===m[1]&&78===m[2]&&71===m[3]?l="image/png":71===m[0]&&73===m[1]&&70===m[2]?l="image/gif":82===m[0]&&73===m[1]&&70===m[2]&&70===m[3]&&87===m[8]&&69===m[9]&&66===m[10]&&80===m[11]?l="image/webp":66===m[0]&&77===m[1]?l="image/bmp":["image/jpeg","image/png","image/gif","image/webp","image/bmp"].includes(l)||(console.warn(`[describe-image] Unknown image magic bytes 0x${m[0]?.toString(16)} 0x${m[1]?.toString(16)} 0x${m[2]?.toString(16)} and unsupported mimeType "${l}", defaulting to image/jpeg`),l="image/jpeg"),console.log(`[describe-image] buffer=${b.length}B, detectedMime=${l}, first4=0x${m[0]?.toString(16)}${m[1]?.toString(16)}${m[2]?.toString(16)}${m[3]?.toString(16)}, base64Len=${k.length}`);let n=f.AuthStorage.create(),o=f.ModelRegistry.create(n),p=h?h.toLowerCase().trim():"",q=j?j.trim():"",r="",s="",t={"Content-Type":"application/json"},u=!1,v=h&&j?(0,g.P6)(o,h,j):void 0;if(v){let a=await o.getApiKeyAndHeaders(v);if(!a.ok)return e.NextResponse.json({error:`无法解析模型认证: ${a.error}`},{status:400});s=`${v.baseUrl}/chat/completions`,a.apiKey&&(r=a.apiKey,t.Authorization=`Bearer ${r}`),a.headers&&(t={...t,...a.headers}),q=v.id,p=v.provider,("google"===p.toLowerCase()||"gemini"===p.toLowerCase())&&(u=!0)}else{if(p){let a=n.get(p);if(a?.key)r=a.key;else for(let a of[`${p.toUpperCase()}_API_KEY`,`${p.toUpperCase().replace("-","_")}_API_KEY`])if(process.env[a]){r=process.env[a];break}}if((p.includes("xiaomi-token-plan")||p.includes("mimo")||p.includes("lingya"))&&process.env.LINGYA_API_KEY&&(r=process.env.LINGYA_API_KEY),!r){let a=n.get("openai");if(a?.key)r=a.key,p="openai",q="gpt-4o-mini";else{let a=n.get("anthropic");a?.key&&(r=a.key,p="anthropic",q="claude-3-5-sonnet-20241022")}}if(!r&&(process.env.OPENAI_API_KEY?(r=process.env.OPENAI_API_KEY,p="openai",q="gpt-4o-mini"):process.env.ANTHROPIC_API_KEY?(r=process.env.ANTHROPIC_API_KEY,p="anthropic",q="claude-3-5-sonnet-20241022"):(process.env.GEMINI_API_KEY||process.env.GOOGLE_API_KEY)&&(r=process.env.GEMINI_API_KEY||process.env.GOOGLE_API_KEY||"",p="google",q="gemini-1.5-flash")),!r)return e.NextResponse.json({error:"未配置可用视觉模型的 API 密钥（OpenAI 或 Anthropic）。请先在侧边栏底部的 Models 中配置 API Key，或在系统环境变量中设置 OPENAI_API_KEY。"},{status:400});t.Authorization=`Bearer ${r}`,s="https://api.openai.com/v1/chat/completions","openrouter"===p?s="https://openrouter.ai/api/v1/chat/completions":p.includes("xiaomi-token-plan")||p.includes("mimo")||p.includes("lingya")?s=process.env.LINGYA_API_URL?`${process.env.LINGYA_API_URL}/chat/completions`:"https://token-plan.api.xiaomi.net/v1/chat/completions":("google"===p||"gemini"===p)&&(u=!0)}let w=`请作为顶级的 AI 图像提示词工程专家（Img2Prompt Expert），为我深度拆解我所上传的这张图片。

请严格按照以下精细化结构对图片进行拆解分析：

1. 核心主体 (core_subject): 画面里主要有什么人或物、在做什么、神态表情如何。
2. 服装/材质 (clothing): 主体的衣着打扮、配饰、或者核心物体的表面材质与细节。
3. 具体地点 (location): 画面所处的具体环境、城市、地标或空间场所。
4. 画面背景 (background): 主体身后的远景、天际线、陪衬元素及空间的左右布局。
5. 光照与色彩 (lighting): 光源方向（如逆光、侧光）、光效类型、色调基调与色彩氛围。
6. 艺术风格 (style): 是什么画风或视觉流派（如：电影感写实摄影、新海诚动漫风、3D渲染、极简主义 UI、胶片摄影等），以及具体的镜头和构图方式（如中景、大光圈虚化、垂直构图）。

---

## 🛠️ 【最终直调用 Prompt】
请根据上述分析，直接组合出可直接复制的流利中文 Prompt。请使用纯英文自然语言或短语（用逗号隔开），以便我直接复制粘贴：`;if(u){let a=await fetch(`https://generativelanguage.googleapis.com/v1beta/models/${q}:generateContent?key=${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({contents:[{parts:[{text:w},{inlineData:{mimeType:l,data:k}}]}],generationConfig:{maxOutputTokens:1e3}})});if(!a.ok){let b=await a.json();throw Error(`Gemini API returned status ${a.status}: ${JSON.stringify(b)}`)}let b=await a.json(),c=i(b.candidates?.[0]?.content?.parts?.[0]?.text?.trim()||"");return e.NextResponse.json({description:c})}if("anthropic"===p){let a=await fetch("https://api.anthropic.com/v1/messages",{method:"POST",headers:{"x-api-key":r,"anthropic-version":"2023-06-01","content-type":"application/json"},body:JSON.stringify({model:q||"claude-3-5-sonnet-20241022",max_tokens:1e3,messages:[{role:"user",content:[{type:"image",source:{type:"base64",media_type:l,data:k}},{type:"text",text:w}]}]})});if(!a.ok){let b=await a.json();throw Error(`Anthropic API returned status ${a.status}: ${JSON.stringify(b)}`)}let b=await a.json(),c=i(b.content?.[0]?.text?.trim()||"");return e.NextResponse.json({description:c})}{let a=`data:${l};base64,${k}`;q&&q.toLowerCase().includes("mimo")&&q.toLowerCase().includes("flash")&&(q="mimo-v2-omni");let b={model:q,messages:[{role:"user",content:[{type:"text",text:w},{type:"image_url",image_url:{url:a}}]}],max_tokens:1e3};console.log(`[describe-image] Sending to: ${s}`),console.log(`[describe-image] model: ${q}, provider: ${p}`),console.log(`[describe-image] imageUrl prefix: ${a.substring(0,60)}...`),console.log(`[describe-image] headers (keys): ${Object.keys(t).join(", ")}`);let c=await fetch(s,{method:"POST",headers:t,body:JSON.stringify(b)});if(!c.ok){let a=await c.json();throw Error(`${p.toUpperCase()} API returned status ${c.status}: ${JSON.stringify(a)}`)}let d=await c.json(),f=d.choices?.[0]?.message,g=f?.content?.trim()||"";if(!g&&f){let a=f.reasoning_content?.trim()||f.thinking_content?.trim()||f.thinking?.trim()||"";if(a){let b=a.split(/\n\n+/).map(a=>a.trim()).filter(Boolean),c=["不对","等等","可能","但是我","然而我","让我","先得","首先得","再想"];for(let a=b.length-1;a>=0;a--){let d=b[a],e=c.some(a=>d.startsWith(a));if(d.length>=40&&!e){g=d;break}}g||(g=a)}}return e.NextResponse.json({description:i(g)})}}catch(a){return console.error("Error in describe-image API:",a),e.NextResponse.json({error:String(a)},{status:500})}}d()}catch(a){d(a)}})},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},16510:(a,b,c)=>{"use strict";function d(a,b){let c=a.toLowerCase(),d=b.toLowerCase();return!(d.includes("tts")||d.includes("voiceclone")||d.includes("voicedesign")||d.includes("audio-gen")||d.includes("mimo")&&d.includes("flash"))&&(c.includes("deepseek")||d.includes("deepseek")?!!(d.includes("vl")||d.includes("v4")||d.includes("janus")||d.includes("ocr")):c.includes("openai")?!d.includes("o1-mini")&&!!(d.includes("gpt-4o")||d.includes("gpt-5")||d.includes("gpt-4.5")||d.includes("gpt-4-turbo")||d.includes("vision")||d.includes("multimodal")||"o1"===d||d.startsWith("o1-202")):c.includes("anthropic")?!!(d.includes("claude-3")||d.includes("claude-4")||d.includes("claude-5")||d.includes("claude-sonnet")||d.includes("claude-opus")||d.includes("claude-")&&(d.includes("vision")||d.includes("multimodal"))):c.includes("google")||c.includes("gemini")?!!(d.includes("gemini-")||d.includes("omni")||d.includes("vision")||d.includes("multimodal")):!!(d.includes("vision")||d.includes("multimodal")||d.includes("vlm")||d.includes("vla")||d.includes("gpt-4o")||d.includes("gpt-5")||d.includes("gpt-4.5")||d.includes("claude-3")||d.includes("claude-4")||d.includes("gemini-")||d.includes("pixtral")||d.includes("mimo")||d.includes("-vl")||d.includes("molmo")||d.includes("paligemma")||d.includes("gemma-3")||d.includes("gemma-4")||d.includes("gemma-5")||d.includes("llama")&&(d.includes("11b")||d.includes("90b")||d.includes("vision")||d.includes("multimodal"))||d.includes("qwen")&&d.includes("vl")||d.includes("glm")&&(d.includes("vision")||d.includes("vl")||d.includes("thinking")||/glm-(?:\d+(?:\.\d+)?v|edge-v|omni)/i.test(d))||d.includes("cogvlm")||d.includes("internvl")||d.includes("yi")&&d.includes("vl")||d.includes("step-")&&(d.includes("v")||d.includes("vision"))||d.includes("hunyuan")&&(d.includes("vision")||d.includes("vl"))||d.includes("doubao")&&(d.includes("vision")||d.includes("vl"))||(d.includes("kimi")||d.includes("moonshot"))&&(d.includes("vision")||d.includes("vl")||d.includes("2.6")||d.includes("k2"))||d.includes("abab")&&(d.includes("vision")||d.includes("vl"))||d.includes("minimax")&&(d.includes("vision")||d.includes("vl"))||d.includes("hailuo")))}c.d(b,{S:()=>d})},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33776:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(5262),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/agent/describe-image/route",pathname:"/api/agent/describe-image",filename:"route",bundlePath:"app/api/agent/describe-image/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"E:\\ink-xY\\app\\api\\agent\\describe-image\\route.ts",nextConfigOutput:"",userland:v}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/agent/describe-image/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,params:v,nextConfig:w,parsedUrl:x,isDraftMode:y,prerenderManifest:A,routerServerContext:B,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,resolvedPathname:E,clientReferenceManifest:F,serverActionsManifest:G}=e,H=(0,k.normalizeAppPath)(d),I=!!(A.dynamicRoutes[H]||A.routes[E]),J=async()=>((null==B?void 0:B.render404)?await B.render404(a,b,x,!1):b.end("This page could not be found"),null);if(I&&!y){let a=!!A.routes[E],b=A.dynamicRoutes[H];if(b&&!1===b.fallback&&!a){if(w.adapterPath)return await J();throw new t.NoFallbackError}}let K=null;!I||z.isDev||y||(K=E,K="/index"===K?"/":K);let L=!0===z.isDev||!I,M=I&&!L;G&&F&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:F,serverActionsManifest:G});let N=a.method||"GET",O=(0,i.getTracer)(),P=O.getActiveScopeSpan(),Q=!!(null==B?void 0:B.isWrappedByNextServer),R=!!(0,h.getRequestMeta)(a,"minimalMode"),S=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,w,A,R);null==S||S.resetRequestCache(),globalThis.__incrementalCache=S;let T={params:v,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!w.experimental.authInterrupts},cacheComponents:!!w.cacheComponents,supportsDynamicResponse:L,incrementalCache:S,cacheLifeProfiles:w.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,B)},sharedContext:{buildId:g}},U=new l.NodeNextRequest(a),V=new l.NodeNextResponse(b),W=m.NextRequestAdapter.fromNodeNextRequest(U,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(W,T).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=O.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${N} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${N} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!R&&C&&D&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=T.renderOpts.fetchMetrics;let h=T.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=T.renderOpts.collectedTags;if(!I)return await (0,p.I)(U,V,d,T.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==T.renderOpts.collectedRevalidate&&!(T.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&T.renderOpts.collectedRevalidate,e=void 0===T.renderOpts.collectedExpire||T.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:T.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:C})},!1,B),b}},k=await z.handleResponse({req:a,nextConfig:w,cacheKey:K,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:R});if(!I)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});R||b.setHeader("x-nextjs-cache",C?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return R&&I||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(U,V,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};Q&&P?await h(P):(e=O.getActiveScopeSpan(),await O.withPropagatedContext(a.headers,()=>O.trace(n.BaseServerSpan.handleRequest,{spanName:`${N} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":N,"http.target":a.url}},h),void 0,!Q))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:C})},!1,B),I)throw b;return await (0,p.I)(U,V,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},33873:a=>{"use strict";a.exports=require("path")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},75430:a=>{"use strict";a.exports=import("@earendil-works/pi-coding-agent")},78335:()=>{},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},96487:()=>{},98388:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{Lj:()=>k,P6:()=>m,QA:()=>l});var e=c(29021),f=c(33873),g=c(75430),h=c(16510),i=a([g]);function j(){return(0,f.join)((0,g.getAgentDir)(),"fetched-models-cache.json")}g=(i.then?(await i)():i)[0];let n=null;function k(){if(n)return n;let a=j();if((0,e.existsSync)(a))try{return n=JSON.parse((0,e.readFileSync)(a,"utf8"))}catch{}return n={}}function l(a){setTimeout(async()=>{try{let b=k(),c=Date.now(),d=(0,f.join)((0,g.getAgentDir)(),"auth.json");if(!(0,e.existsSync)(d))return;let i=JSON.parse((0,e.readFileSync)(d,"utf8")),l=Object.keys(i),m=!1;for(let d of l){let e=i[d]?.key;if(!e)continue;let f=b[d];if(f&&c-f.updatedAt<36e5)continue;console.log(`[model-resolver] Background syncing models list for provider: "${d}"...`);let g=a.models?.find(a=>a.provider===d),j=g?.baseUrl||"",k=function(a,b){let c=a.toLowerCase();if(c.startsWith("minimax"))return"https://api.minimaxi.com/v1/models";if(c.includes("google")||c.includes("gemini"))return"https://generativelanguage.googleapis.com/v1beta/models";let d=b;return d.endsWith("/anthropic")&&(d=d.replace("/anthropic","/v1")),d.endsWith("/")&&(d=d.slice(0,-1)),d.endsWith("/models")||(d=`${d}/models`),d}(d,j),l={},n=k,o=d.toLowerCase();o.includes("google")||o.includes("gemini")?n=`${k}?key=${e}`:l.Authorization=`Bearer ${e}`;try{let a=await fetch(n,{headers:l,signal:AbortSignal.timeout(6e3)});if(!a.ok){console.error(`[model-resolver] Failed to fetch models for "${d}": HTTP ${a.status}`);continue}let e=await a.json(),f=[];if((f=o.includes("google")||o.includes("gemini")?(e.models||[]).map(a=>{let b=a.name||"";return b.startsWith("models/")?b.replace("models/",""):b}).filter(a=>a.includes("gemini")):(e.data||[]).map(a=>a.id).filter(Boolean)).length>0){let a=f.map(a=>{let b=(0,h.S)(d,a);return{id:a,name:a,provider:d,supportsVision:b}});b[d]={updatedAt:c,models:a},m=!0,console.log(`[model-resolver] Successfully synced ${f.length} models for "${d}".`)}}catch(a){console.error(`[model-resolver] Fetch failed for "${d}":`,a)}}m&&function(a){n=a;try{(0,e.writeFileSync)(j(),JSON.stringify(a,null,2),"utf8")}catch(a){console.error("Failed to save models cache:",a)}}(b)}catch(a){console.error("[model-resolver] Error in triggerBackgroundModelsSync:",a)}},100)}function m(a,b,c){let d=a.find(b,c);if(d)return d;let e=b.toLowerCase(),f=c.toLowerCase();if("minimax-cn"===e&&"MiniMax-M3"===c){let b=a.find("minimax-cn","MiniMax-M2.7")||a.find("minimax-cn","MiniMax-M2.7-highspeed");return b?{...b,id:"MiniMax-M3",name:"MiniMax-M3",api:"openai-completions",baseUrl:b.baseUrl.includes("anthropic")?b.baseUrl.replace("/anthropic","/v1"):"https://api.minimaxi.com/v1",reasoning:!0}:{id:"MiniMax-M3",name:"MiniMax-M3",api:"openai-completions",provider:"minimax-cn",baseUrl:"https://api.minimaxi.com/v1",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:.375},contextWindow:204800,maxTokens:131072}}let g=(a.models||[]).find(a=>a.provider===b)||("function"==typeof a.getAll?a.getAll().find(a=>a.provider===b):void 0);if(g){let a=(0,h.S)(b,c);return{...g,id:c,name:c,reasoning:f.includes("reasoning")||f.includes("thinking")||f.includes("-r1")||g.reasoning,input:a?["text","image"]:["text"]}}}d()}catch(a){d(a)}})}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[741,813],()=>b(b.s=33776));module.exports=c})();