[{"data":1,"prerenderedAt":2400,"buildId":2401},["ShallowReactive",2],{"-en-docs-ai-ai-chat-description":3,"docs--en-docs-ai-ai-chat":16,"docs-navigation-en":2068,"mdc--tctnej-key":2388,"surround--en-docs-ai-ai-chat":2397},{"data":4,"body":5},{},{"type":6,"children":7},"root",[8],{"type":9,"tag":10,"props":11,"children":12},"element","p",{},[13],{"type":14,"value":15},"text","Enable the built-in docs assistant and configure its models, endpoints, and providers.",{"id":17,"title":18,"body":19,"category":2057,"description":15,"difficulty":2057,"extension":2058,"index":2059,"keywords":2057,"links":2057,"meta":2060,"navigation":2061,"path":2063,"requires":2057,"seo":2064,"sitemap":2065,"stem":2066,"__hash__":2067},"docs_en\u002Fen\u002Fdocs\u002F3.ai\u002F1.ai-chat.md","AI Chat",{"type":20,"value":21,"toc":2029},"minimark",[22,38,48,53,56,366,374,378,383,429,444,448,457,585,589,592,626,640,663,718,722,735,856,862,866,880,1065,1093,1097,1100,1156,1162,1165,1169,1173,1187,1196,1200,1210,1411,1421,1530,1534,1538,1557,1617,1620,1794,1807,1810,1847,1883,1893,1896,1932,1942,1982,2004,2025],[10,23,24,25,32,33,37],{},"AI Chat is a chat panel built on the ",[26,27,31],"a",{"href":28,"rel":29},"https:\u002F\u002Fai-sdk.dev",[30],"nofollow","Vercel AI SDK",". It hands the tools of the site's built-in ",[26,34,36],{"href":35},"\u002Fen\u002Fdocs\u002Fai\u002Fmcp","MCP Server"," straight to the model, so it searches and reads the docs before answering and shows which pages it is searching or reading.",[39,40],"u-color-mode-image",{"alt":41,"className":42,"dark":46,"light":47},"The AI Chat panel open beside a docs page",[43,44,45],"rounded-md","border","border-default","\u002Fscreenshots\u002Fai-chat-dark.png","\u002Fscreenshots\u002Fai-chat-light.png",[49,50,52],"h2",{"id":51},"enable","Enable",[10,54,55],{},"AI Chat is off by default. Three things are needed:",[57,58,59,64,67,194,197,201,251,265,269,355],"steps",{},[60,61,63],"h3",{"id":62},"install-the-dependencies","Install the dependencies",[10,65,66],{},"The AI dependencies are optional peers of the layer. Install them in your project first:",[68,69,71,115,142,168],"code-group",{"sync":70},"package-manager",[72,73,79],"pre",{"className":74,"code":75,"filename":76,"language":77,"meta":78,"style":78},"language-bash shiki shiki-themes github-light github-light github-dark","pnpm add ai @ai-sdk\u002Fopenai @ai-sdk\u002Fvue @comark\u002Fvue @shikijs\u002Fengine-javascript @shikijs\u002Flangs @shikijs\u002Fthemes\n","pnpm","bash","",[80,81,82],"code",{"__ignoreMap":78},[83,84,87,90,94,97,100,103,106,109,112],"span",{"class":85,"line":86},"line",1,[83,88,76],{"class":89},"snPdu",[83,91,93],{"class":92},"sIIMD"," add",[83,95,96],{"class":92}," ai",[83,98,99],{"class":92}," @ai-sdk\u002Fopenai",[83,101,102],{"class":92}," @ai-sdk\u002Fvue",[83,104,105],{"class":92}," @comark\u002Fvue",[83,107,108],{"class":92}," @shikijs\u002Fengine-javascript",[83,110,111],{"class":92}," @shikijs\u002Flangs",[83,113,114],{"class":92}," @shikijs\u002Fthemes\n",[72,116,119],{"className":74,"code":117,"filename":118,"language":77,"meta":78,"style":78},"npm install ai @ai-sdk\u002Fopenai @ai-sdk\u002Fvue @comark\u002Fvue @shikijs\u002Fengine-javascript @shikijs\u002Flangs @shikijs\u002Fthemes\n","npm",[80,120,121],{"__ignoreMap":78},[83,122,123,125,128,130,132,134,136,138,140],{"class":85,"line":86},[83,124,118],{"class":89},[83,126,127],{"class":92}," install",[83,129,96],{"class":92},[83,131,99],{"class":92},[83,133,102],{"class":92},[83,135,105],{"class":92},[83,137,108],{"class":92},[83,139,111],{"class":92},[83,141,114],{"class":92},[72,143,146],{"className":74,"code":144,"filename":145,"language":77,"meta":78,"style":78},"yarn add ai @ai-sdk\u002Fopenai @ai-sdk\u002Fvue @comark\u002Fvue @shikijs\u002Fengine-javascript @shikijs\u002Flangs @shikijs\u002Fthemes\n","yarn",[80,147,148],{"__ignoreMap":78},[83,149,150,152,154,156,158,160,162,164,166],{"class":85,"line":86},[83,151,145],{"class":89},[83,153,93],{"class":92},[83,155,96],{"class":92},[83,157,99],{"class":92},[83,159,102],{"class":92},[83,161,105],{"class":92},[83,163,108],{"class":92},[83,165,111],{"class":92},[83,167,114],{"class":92},[72,169,172],{"className":74,"code":170,"filename":171,"language":77,"meta":78,"style":78},"bun add ai @ai-sdk\u002Fopenai @ai-sdk\u002Fvue @comark\u002Fvue @shikijs\u002Fengine-javascript @shikijs\u002Flangs @shikijs\u002Fthemes\n","bun",[80,173,174],{"__ignoreMap":78},[83,175,176,178,180,182,184,186,188,190,192],{"class":85,"line":86},[83,177,171],{"class":89},[83,179,93],{"class":92},[83,181,96],{"class":92},[83,183,99],{"class":92},[83,185,102],{"class":92},[83,187,105],{"class":92},[83,189,108],{"class":92},[83,191,111],{"class":92},[83,193,114],{"class":92},[10,195,196],{},"If any of them is missing once AI Chat is enabled, the build stops and prints the packages to install.",[60,198,200],{"id":199},"set-the-environment-variables","Set the environment variables",[72,202,205],{"className":74,"code":203,"filename":204,"language":77,"meta":78,"style":78},"# Required: its presence enables AI Chat\nAI_API_KEY=your-api-key\n\n# Optional: an OpenAI-compatible endpoint; leave empty to use AI Gateway\nAI_BASE_URL=https:\u002F\u002Fdashscope.aliyuncs.com\u002Fcompatible-mode\u002Fv1\n",".env",[80,206,207,213,227,234,240],{"__ignoreMap":78},[83,208,209],{"class":85,"line":86},[83,210,212],{"class":211},"sCsY4","# Required: its presence enables AI Chat\n",[83,214,216,220,224],{"class":85,"line":215},2,[83,217,219],{"class":218},"sxrX7","AI_API_KEY",[83,221,223],{"class":222},"s8jYJ","=",[83,225,226],{"class":92},"your-api-key\n",[83,228,230],{"class":85,"line":229},3,[83,231,233],{"emptyLinePlaceholder":232},true,"\n",[83,235,237],{"class":85,"line":236},4,[83,238,239],{"class":211},"# Optional: an OpenAI-compatible endpoint; leave empty to use AI Gateway\n",[83,241,243,246,248],{"class":85,"line":242},5,[83,244,245],{"class":218},"AI_BASE_URL",[83,247,223],{"class":222},[83,249,250],{"class":92},"https:\u002F\u002Fdashscope.aliyuncs.com\u002Fcompatible-mode\u002Fv1\n",[10,252,253,255,256,260,261,264],{},[80,254,219],{}," is read ",[257,258,259],"strong",{},"at build time",": when ",[80,262,263],{},"aiChat.enabled"," is not set, AI Chat is enabled if the variable exists in the build environment. Your hosting platform must expose it to both the build and the runtime.",[60,266,268],{"id":267},"configure-the-models","Configure the models",[72,270,275],{"className":271,"code":272,"filename":273,"language":274,"meta":78,"style":78},"language-ts shiki shiki-themes github-light github-light github-dark","export default defineNuxtConfig({\n  extends: ['@movk\u002Fnuxt-docs'],\n  aiChat: {\n    model: 'alibaba\u002Fqwen3.8-27b',\n    models: [\n      'alibaba\u002Fqwen3.8-27b',\n      'deepseek\u002Fdeepseek-v4-pro-0813'\n    ]\n  }\n})\n","nuxt.config.ts","ts",[80,276,277,291,302,307,318,323,331,337,343,349],{"__ignoreMap":78},[83,278,279,282,285,288],{"class":85,"line":86},[83,280,281],{"class":222},"export",[83,283,284],{"class":222}," default",[83,286,287],{"class":89}," defineNuxtConfig",[83,289,290],{"class":218},"({\n",[83,292,293,296,299],{"class":85,"line":215},[83,294,295],{"class":218},"  extends: [",[83,297,298],{"class":92},"'@movk\u002Fnuxt-docs'",[83,300,301],{"class":218},"],\n",[83,303,304],{"class":85,"line":229},[83,305,306],{"class":218},"  aiChat: {\n",[83,308,309,312,315],{"class":85,"line":236},[83,310,311],{"class":218},"    model: ",[83,313,314],{"class":92},"'alibaba\u002Fqwen3.8-27b'",[83,316,317],{"class":218},",\n",[83,319,320],{"class":85,"line":242},[83,321,322],{"class":218},"    models: [\n",[83,324,326,329],{"class":85,"line":325},6,[83,327,328],{"class":92},"      'alibaba\u002Fqwen3.8-27b'",[83,330,317],{"class":218},[83,332,334],{"class":85,"line":333},7,[83,335,336],{"class":92},"      'deepseek\u002Fdeepseek-v4-pro-0813'\n",[83,338,340],{"class":85,"line":339},8,[83,341,342],{"class":218},"    ]\n",[83,344,346],{"class":85,"line":345},9,[83,347,348],{"class":218},"  }\n",[83,350,352],{"class":85,"line":351},10,[83,353,354],{"class":218},"})\n",[10,356,357,358,361,362,365],{},"This is the configuration this site runs. ",[80,359,360],{},"model"," is the default model, ",[80,363,364],{},"models"," is the list readers can switch between in the panel.",[367,368,369,370,373],"warning",{},"AI Chat gets its documentation tools from the MCP Server, so ",[80,371,372],{},"movkNuxtDocs.mcp: false"," cannot be combined with AI Chat; the build fails if you try.",[60,375,377],{"id":376},"explicit-switch","Explicit switch",[10,379,380,382],{},[80,381,263],{}," overrides the environment check:",[72,384,386],{"className":271,"code":385,"filename":273,"language":274,"meta":78,"style":78},"export default defineNuxtConfig({\n  aiChat: {\n    \u002F\u002F true: enable even without AI_API_KEY at build time (it is still required at runtime, otherwise the endpoint answers 503)\n    \u002F\u002F false: disable even when AI_API_KEY is set\n    enabled: true\n  }\n})\n",[80,387,388,398,402,407,412,421,425],{"__ignoreMap":78},[83,389,390,392,394,396],{"class":85,"line":86},[83,391,281],{"class":222},[83,393,284],{"class":222},[83,395,287],{"class":89},[83,397,290],{"class":218},[83,399,400],{"class":85,"line":215},[83,401,306],{"class":218},[83,403,404],{"class":85,"line":229},[83,405,406],{"class":211},"    \u002F\u002F true: enable even without AI_API_KEY at build time (it is still required at runtime, otherwise the endpoint answers 503)\n",[83,408,409],{"class":85,"line":236},[83,410,411],{"class":211},"    \u002F\u002F false: disable even when AI_API_KEY is set\n",[83,413,414,417],{"class":85,"line":242},[83,415,416],{"class":218},"    enabled: ",[83,418,420],{"class":419},"sBjJW","true\n",[83,422,423],{"class":85,"line":325},[83,424,348],{"class":218},[83,426,427],{"class":85,"line":333},[83,428,354],{"class":218},[10,430,431,432,435,436,439,440,443],{},"When disabled, ",[80,433,434],{},"AiChat",", ",[80,437,438],{},"AiChatPanel"," and the other components are replaced by empty components, ",[80,441,442],{},"useAIChat()"," returns a disabled implementation, and the AI dependencies are left out of the bundle and of type checking. Page code never needs to check the switch.",[49,445,447],{"id":446},"module-options","Module options",[10,449,450,453,454,456],{},[80,451,452],{},"aiChat"," in ",[80,455,273],{},":",[458,459,460,479],"table",{},[461,462,463],"thead",{},[464,465,466,470,473,476],"tr",{},[467,468,469],"th",{},"Option",[467,471,472],{},"Type",[467,474,475],{},"Default",[467,477,478],{},"Description",[480,481,482,503,522,547,566],"tbody",{},[464,483,484,490,495,500],{},[485,486,487],"td",{},[80,488,489],{},"enabled",[485,491,492],{},[80,493,494],{},"boolean",[485,496,497,498],{},"Derived from ",[80,499,219],{},[485,501,502],{},"Enable AI Chat",[464,504,505,509,514,519],{},[485,506,507],{},[80,508,360],{},[485,510,511],{},[80,512,513],{},"string",[485,515,516],{},[80,517,518],{},"''",[485,520,521],{},"Default model id",[464,523,524,528,533,538],{},[485,525,526],{},[80,527,364],{},[485,529,530],{},[80,531,532],{},"string[]",[485,534,535],{},[80,536,537],{},"[]",[485,539,540,541,544,545],{},"Models available in the panel, as ",[80,542,543],{},"provider\u002Fmodel"," or ",[80,546,360],{},[464,548,549,554,558,563],{},[485,550,551],{},[80,552,553],{},"apiPath",[485,555,556],{},[80,557,513],{},[485,559,560],{},[80,561,562],{},"'\u002Fapi\u002Fai-chat'",[485,564,565],{},"Chat endpoint path",[464,567,568,573,577,582],{},[485,569,570],{},[80,571,572],{},"mcpPath",[485,574,575],{},[80,576,513],{},[485,578,579],{},[80,580,581],{},"'\u002Fmcp'",[485,583,584],{},"MCP Server path",[49,586,588],{"id":587},"model-routing","Model routing",[10,590,591],{},"On every request the server resolves the model id in this order:",[593,594,595,606,615],"ol",{},[596,597,598,601,602,605],"li",{},[257,599,600],{},"Registered provider",": the id's prefix matches a provider registered in ",[80,603,604],{},"modelProviderRegistry",", which creates the model",[596,607,608,611,612,614],{},[257,609,610],{},"OpenAI-compatible endpoint",": ",[80,613,245],{}," is set, so the request goes straight to that endpoint over chat completions",[596,616,617,620,621],{},[257,618,619],{},"AI Gateway",": otherwise the model is called through ",[26,622,625],{"href":623,"rel":624},"https:\u002F\u002Fvercel.com\u002Fdocs\u002Fai-gateway",[30],"Vercel AI Gateway",[10,627,628,630,631,633,634,636,637,639],{},[257,629,619],{}," needs a single ",[80,632,219],{},"; ",[80,635,364],{}," can mix providers, and ids are sent as ",[80,638,543],{},".",[10,641,642,643,645,646,649,650,653,654,656,657,659,660,662],{},"With an ",[257,644,610],{}," the prefix only picks the provider icon in the model menu and is stripped before the request: ",[80,647,648],{},"deepseek\u002Fdeepseek-v4-pro-0813"," is sent as ",[80,651,652],{},"deepseek-v4-pro-0813",". One ",[80,655,219],{}," + ",[80,658,245],{}," pair maps to one upstream, so ",[80,661,364],{}," should list models that upstream serves.",[458,664,665,676],{},[461,666,667],{},[464,668,669,672],{},[467,670,671],{},"Provider",[467,673,674],{},[80,675,245],{},[480,677,678,688,698,708],{},[464,679,680,683],{},[485,681,682],{},"Alibaba Cloud Model Studio (China)",[485,684,685],{},[80,686,687],{},"https:\u002F\u002Fdashscope.aliyuncs.com\u002Fcompatible-mode\u002Fv1",[464,689,690,693],{},[485,691,692],{},"Alibaba Cloud Model Studio (International)",[485,694,695],{},[80,696,697],{},"https:\u002F\u002Fdashscope-intl.aliyuncs.com\u002Fcompatible-mode\u002Fv1",[464,699,700,703],{},[485,701,702],{},"DeepSeek",[485,704,705],{},[80,706,707],{},"https:\u002F\u002Fapi.deepseek.com\u002Fv1",[464,709,710,713],{},[485,711,712],{},"Zhipu GLM",[485,714,715],{},[80,716,717],{},"https:\u002F\u002Fopen.bigmodel.cn\u002Fapi\u002Fpaas\u002Fv4",[60,719,721],{"id":720},"add-other-providers","Add other providers",[10,723,724,725,728,729,734],{},"The layer ships only ",[80,726,727],{},"@ai-sdk\u002Fopenai",". To use several providers at once, or one that does not speak the OpenAI protocol, install its ",[26,730,733],{"href":731,"rel":732},"https:\u002F\u002Fai-sdk.dev\u002Fproviders\u002Fai-sdk-providers",[30],"AI SDK provider"," package and register it by prefix:",[72,736,739],{"className":271,"code":737,"filename":738,"language":274,"meta":78,"style":78},"import { createAnthropic } from '@ai-sdk\u002Fanthropic'\nimport { modelProviderRegistry } from '#ai-chat\u002Fserver\u002Futils\u002FmodelProviders'\n\nexport default defineNitroPlugin(() => {\n  const anthropic = createAnthropic({ apiKey: process.env.ANTHROPIC_API_KEY })\n\n  \u002F\u002F anthropic\u002Fclaude-sonnet-5-5 lands here; the factory receives the id without its prefix\n  modelProviderRegistry.register('anthropic', ({ modelId }) => anthropic(modelId))\n})\n","server\u002Fplugins\u002Fmodel-providers.ts",[80,740,741,755,767,771,789,812,816,821,852],{"__ignoreMap":78},[83,742,743,746,749,752],{"class":85,"line":86},[83,744,745],{"class":222},"import",[83,747,748],{"class":218}," { createAnthropic } ",[83,750,751],{"class":222},"from",[83,753,754],{"class":92}," '@ai-sdk\u002Fanthropic'\n",[83,756,757,759,762,764],{"class":85,"line":215},[83,758,745],{"class":222},[83,760,761],{"class":218}," { modelProviderRegistry } ",[83,763,751],{"class":222},[83,765,766],{"class":92}," '#ai-chat\u002Fserver\u002Futils\u002FmodelProviders'\n",[83,768,769],{"class":85,"line":229},[83,770,233],{"emptyLinePlaceholder":232},[83,772,773,775,777,780,783,786],{"class":85,"line":236},[83,774,281],{"class":222},[83,776,284],{"class":222},[83,778,779],{"class":89}," defineNitroPlugin",[83,781,782],{"class":218},"(() ",[83,784,785],{"class":222},"=>",[83,787,788],{"class":218}," {\n",[83,790,791,794,797,800,803,806,809],{"class":85,"line":242},[83,792,793],{"class":222},"  const",[83,795,796],{"class":419}," anthropic",[83,798,799],{"class":222}," =",[83,801,802],{"class":89}," createAnthropic",[83,804,805],{"class":218},"({ apiKey: process.env.",[83,807,808],{"class":419},"ANTHROPIC_API_KEY",[83,810,811],{"class":218}," })\n",[83,813,814],{"class":85,"line":325},[83,815,233],{"emptyLinePlaceholder":232},[83,817,818],{"class":85,"line":333},[83,819,820],{"class":211},"  \u002F\u002F anthropic\u002Fclaude-sonnet-5-5 lands here; the factory receives the id without its prefix\n",[83,822,823,826,829,832,835,838,842,845,847,849],{"class":85,"line":339},[83,824,825],{"class":218},"  modelProviderRegistry.",[83,827,828],{"class":89},"register",[83,830,831],{"class":218},"(",[83,833,834],{"class":92},"'anthropic'",[83,836,837],{"class":218},", ({ ",[83,839,841],{"class":840},"sP4rz","modelId",[83,843,844],{"class":218}," }) ",[83,846,785],{"class":222},[83,848,796],{"class":89},[83,850,851],{"class":218},"(modelId))\n",[83,853,854],{"class":85,"line":345},[83,855,354],{"class":218},[10,857,858,859,861],{},"Registered prefixes take precedence; every other model is still routed through ",[80,860,245],{}," or AI Gateway.",[49,863,865],{"id":864},"interface-settings","Interface settings",[10,867,868,869,453,871,874,875,879],{},"The floating input, the \"Explain with AI\" button, shortcuts, texts, icons and suggested questions live under ",[80,870,452],{},[80,872,873],{},"app.config.ts",". See the ",[26,876,878],{"href":877},"\u002Fen\u002Fdocs\u002Freference\u002Fapp-config#aichat","app.config reference"," for every field. The common ones:",[72,881,884],{"className":271,"code":882,"filename":883,"language":274,"meta":78,"style":78},"export default defineAppConfig({\n  aiChat: {\n    floatingInput: true,\n    explainWithAi: true,\n    shortcuts: {\n      focusInput: 'meta_i'\n    },\n    icons: {\n      providers: {\n        alibaba: 'i-hugeicons-qwen'\n      }\n    },\n    faqQuestions: {\n      'zh-CN': [\n        { category: '安装与配置', items: ['如何从零创建文档站？', '如何启用多语言？'] }\n      ],\n      'en': [\n        { category: 'Setup', items: ['How do I create a docs site?', 'How do I enable multiple languages?'] }\n      ]\n    }\n  }\n})\n","app\u002Fapp.config.ts",[80,885,886,897,901,911,920,925,933,938,943,948,960,966,971,977,986,1009,1015,1023,1043,1049,1055,1060],{"__ignoreMap":78},[83,887,888,890,892,895],{"class":85,"line":86},[83,889,281],{"class":222},[83,891,284],{"class":222},[83,893,894],{"class":89}," defineAppConfig",[83,896,290],{"class":218},[83,898,899],{"class":85,"line":215},[83,900,306],{"class":218},[83,902,903,906,909],{"class":85,"line":229},[83,904,905],{"class":218},"    floatingInput: ",[83,907,908],{"class":419},"true",[83,910,317],{"class":218},[83,912,913,916,918],{"class":85,"line":236},[83,914,915],{"class":218},"    explainWithAi: ",[83,917,908],{"class":419},[83,919,317],{"class":218},[83,921,922],{"class":85,"line":242},[83,923,924],{"class":218},"    shortcuts: {\n",[83,926,927,930],{"class":85,"line":325},[83,928,929],{"class":218},"      focusInput: ",[83,931,932],{"class":92},"'meta_i'\n",[83,934,935],{"class":85,"line":333},[83,936,937],{"class":218},"    },\n",[83,939,940],{"class":85,"line":339},[83,941,942],{"class":218},"    icons: {\n",[83,944,945],{"class":85,"line":345},[83,946,947],{"class":218},"      providers: {\n",[83,949,950,953],{"class":85,"line":351},[83,951,952],{"class":218},"        alibaba: ",[83,954,955,959],{"class":92},[956,957],"i",{"class":958},"shiki-icon-highlight siCUq","'i-hugeicons-qwen'\n",[83,961,963],{"class":85,"line":962},11,[83,964,965],{"class":218},"      }\n",[83,967,969],{"class":85,"line":968},12,[83,970,937],{"class":218},[83,972,974],{"class":85,"line":973},13,[83,975,976],{"class":218},"    faqQuestions: {\n",[83,978,980,983],{"class":85,"line":979},14,[83,981,982],{"class":92},"      'zh-CN'",[83,984,985],{"class":218},": [\n",[83,987,989,992,995,998,1001,1003,1006],{"class":85,"line":988},15,[83,990,991],{"class":218},"        { category: ",[83,993,994],{"class":92},"'安装与配置'",[83,996,997],{"class":218},", items: [",[83,999,1000],{"class":92},"'如何从零创建文档站？'",[83,1002,435],{"class":218},[83,1004,1005],{"class":92},"'如何启用多语言？'",[83,1007,1008],{"class":218},"] }\n",[83,1010,1012],{"class":85,"line":1011},16,[83,1013,1014],{"class":218},"      ],\n",[83,1016,1018,1021],{"class":85,"line":1017},17,[83,1019,1020],{"class":92},"      'en'",[83,1022,985],{"class":218},[83,1024,1026,1028,1031,1033,1036,1038,1041],{"class":85,"line":1025},18,[83,1027,991],{"class":218},[83,1029,1030],{"class":92},"'Setup'",[83,1032,997],{"class":218},[83,1034,1035],{"class":92},"'How do I create a docs site?'",[83,1037,435],{"class":218},[83,1039,1040],{"class":92},"'How do I enable multiple languages?'",[83,1042,1008],{"class":218},[83,1044,1046],{"class":85,"line":1045},19,[83,1047,1048],{"class":218},"      ]\n",[83,1050,1052],{"class":85,"line":1051},20,[83,1053,1054],{"class":218},"    }\n",[83,1056,1058],{"class":85,"line":1057},21,[83,1059,348],{"class":218},[83,1061,1063],{"class":85,"line":1062},22,[83,1064,354],{"class":218},[1066,1067,1068,1078,1084],"ul",{},[596,1069,1070,1073,1074,1077],{},[80,1071,1072],{},"faqQuestions"," accepts a string array, a ",[80,1075,1076],{},"{ category, items }"," array, or an object keyed by locale; the questions show while the panel is empty",[596,1079,1080,1083],{},[80,1081,1082],{},"texts.*"," fall back to the built-in translation of the current locale, so set them only to change wording",[596,1085,1086,1089,1090],{},[80,1087,1088],{},"icons.providers"," maps model prefixes to icons; unmapped prefixes fall back to ",[80,1091,1092],{},"i-simple-icons-{provider}",[49,1094,1096],{"id":1095},"built-in-entry-points","Built-in entry points",[10,1098,1099],{},"Once enabled, the layer mounts these for you:",[1066,1101,1102,1114,1139,1145],{},[596,1103,1104,611,1107,1109,1110,1113],{},[257,1105,1106],{},"Header button",[80,1108,434],{}," inside ",[80,1111,1112],{},"HeaderCTA"," toggles the panel",[596,1115,1116,611,1119,1122,1123,1126,1127,1130,1131,1134,1135,1138],{},[257,1117,1118],{},"Floating input",[80,1120,1121],{},"AiChatFloatingInput"," at the bottom of docs pages. ",[80,1124,1125],{},"⌘I"," \u002F ",[80,1128,1129],{},"Ctrl+I"," focuses it, ",[80,1132,1133],{},"Esc"," blurs it, ",[80,1136,1137],{},"Enter"," sends",[596,1140,1141,1144],{},[257,1142,1143],{},"Explain with AI",": a button below the table of contents that asks about the current page",[596,1146,1147,611,1150,1152,1153],{},[257,1148,1149],{},"Chat panel",[80,1151,438],{}," pushes the content aside instead of covering it; messages and the open state persist in ",[80,1154,1155],{},"localStorage",[39,1157],{"alt":1158,"className":1159,"dark":1160,"light":1161},"The floating AI input at the bottom of a docs page",[43,44,45],"\u002Fscreenshots\u002Fai-chat-floating-input-dark.png","\u002Fscreenshots\u002Fai-chat-floating-input-light.png",[10,1163,1164],{},"Each user message carries the current page path, so the model reads that page first when asked to \"explain this page\".",[49,1166,1168],{"id":1167},"customization","Customization",[60,1170,1172],{"id":1171},"system-prompt-and-endpoint","System prompt and endpoint",[10,1174,1175,1176,1179,1180,1182,1183,1186],{},"The default endpoint is ",[80,1177,1178],{},"layer\u002Fmodules\u002Fai-chat\u002Fruntime\u002Fserver\u002Fapi\u002Fai-chat.ts",". Create the file matching ",[80,1181,553],{}," in your project (by default ",[80,1184,1185],{},"server\u002Fapi\u002Fai-chat.ts",") and the layer skips registering its own, letting yours change the system prompt, tools or step limit.",[1188,1189,1195],"u-button",{"color":1190,"icon":1191,"target":1192,"to":1193,"variant":1194},"neutral","i-lucide-code-xml","_blank","https:\u002F\u002Fgithub.com\u002Fmhaibaraai\u002Fmovk-nuxt-docs\u002Fblob\u002Fmain\u002Flayer\u002Fmodules\u002Fai-chat\u002Fruntime\u002Fserver\u002Fapi\u002Fai-chat.ts","link","View the default endpoint",[60,1197,1199],{"id":1198},"tool-call-display","Tool call display",[10,1201,1202,1203,1206,1207,456],{},"Built-in tools show messages such as \"Searching docs pages\". To label the MCP tools you register yourself, create a ",[80,1204,1205],{},"useToolCall"," with the same name in ",[80,1208,1209],{},"app\u002Fcomposables\u002F",[72,1211,1214],{"className":271,"code":1212,"filename":1213,"language":274,"meta":78,"style":78},"export function useToolCall(state: string, toolName: string, input: Record\u003Cstring, string | undefined>) {\n  const done = state === 'output-available'\n\n  return {\n    toolMessage: {\n      'search-api': `${done ? 'Searched' : 'Searching'} API ${input.query ?? ''}`\n    } as Record\u003Cstring, string>,\n    toolIcon: {\n      'search-api': 'i-lucide-book-open'\n    } as Record\u003Cstring, string>\n  }\n}\n","app\u002Fcomposables\u002FuseToolCall.ts",[80,1215,1216,1273,1291,1295,1302,1307,1345,1366,1371,1383,1402,1406],{"__ignoreMap":78},[83,1217,1218,1220,1223,1226,1228,1231,1233,1236,1238,1241,1243,1245,1247,1250,1252,1255,1258,1260,1262,1264,1267,1270],{"class":85,"line":86},[83,1219,281],{"class":222},[83,1221,1222],{"class":222}," function",[83,1224,1225],{"class":89}," useToolCall",[83,1227,831],{"class":218},[83,1229,1230],{"class":840},"state",[83,1232,456],{"class":222},[83,1234,1235],{"class":419}," string",[83,1237,435],{"class":218},[83,1239,1240],{"class":840},"toolName",[83,1242,456],{"class":222},[83,1244,1235],{"class":419},[83,1246,435],{"class":218},[83,1248,1249],{"class":840},"input",[83,1251,456],{"class":222},[83,1253,1254],{"class":89}," Record",[83,1256,1257],{"class":218},"\u003C",[83,1259,513],{"class":419},[83,1261,435],{"class":218},[83,1263,513],{"class":419},[83,1265,1266],{"class":222}," |",[83,1268,1269],{"class":419}," undefined",[83,1271,1272],{"class":218},">) {\n",[83,1274,1275,1277,1280,1282,1285,1288],{"class":85,"line":215},[83,1276,793],{"class":222},[83,1278,1279],{"class":419}," done",[83,1281,799],{"class":222},[83,1283,1284],{"class":218}," state ",[83,1286,1287],{"class":222},"===",[83,1289,1290],{"class":92}," 'output-available'\n",[83,1292,1293],{"class":85,"line":229},[83,1294,233],{"emptyLinePlaceholder":232},[83,1296,1297,1300],{"class":85,"line":236},[83,1298,1299],{"class":222},"  return",[83,1301,788],{"class":218},[83,1303,1304],{"class":85,"line":242},[83,1305,1306],{"class":218},"    toolMessage: {\n",[83,1308,1309,1312,1314,1317,1320,1323,1326,1329,1332,1334,1336,1339,1342],{"class":85,"line":325},[83,1310,1311],{"class":92},"      'search-api'",[83,1313,611],{"class":218},[83,1315,1316],{"class":92},"`${",[83,1318,1319],{"class":218},"done",[83,1321,1322],{"class":222}," ?",[83,1324,1325],{"class":92}," 'Searched'",[83,1327,1328],{"class":222}," :",[83,1330,1331],{"class":92}," 'Searching'} API ${",[83,1333,1249],{"class":218},[83,1335,639],{"class":92},[83,1337,1338],{"class":218},"query",[83,1340,1341],{"class":222}," ??",[83,1343,1344],{"class":92}," ''}`\n",[83,1346,1347,1350,1353,1355,1357,1359,1361,1363],{"class":85,"line":333},[83,1348,1349],{"class":218},"    } ",[83,1351,1352],{"class":222},"as",[83,1354,1254],{"class":89},[83,1356,1257],{"class":218},[83,1358,513],{"class":419},[83,1360,435],{"class":218},[83,1362,513],{"class":419},[83,1364,1365],{"class":218},">,\n",[83,1367,1368],{"class":85,"line":339},[83,1369,1370],{"class":218},"    toolIcon: {\n",[83,1372,1373,1375,1377],{"class":85,"line":345},[83,1374,1311],{"class":92},[83,1376,611],{"class":218},[83,1378,1379,1382],{"class":92},[956,1380],{"class":1381},"shiki-icon-highlight sIu1a","'i-lucide-book-open'\n",[83,1384,1385,1387,1389,1391,1393,1395,1397,1399],{"class":85,"line":351},[83,1386,1349],{"class":218},[83,1388,1352],{"class":222},[83,1390,1254],{"class":89},[83,1392,1257],{"class":218},[83,1394,513],{"class":419},[83,1396,435],{"class":218},[83,1398,513],{"class":419},[83,1400,1401],{"class":218},">\n",[83,1403,1404],{"class":85,"line":962},[83,1405,348],{"class":218},[83,1407,1408],{"class":85,"line":968},[83,1409,1410],{"class":218},"}\n",[10,1412,1413,1414,1416,1417,1420],{},"Return only your own tools; ",[80,1415,438],{}," handles the built-in ones. Unmatched tools show as \"Searching {toolName}\" with the ",[80,1418,1419],{},"i-lucide-search"," icon.",[458,1422,1423,1433],{},[461,1424,1425],{},[464,1426,1427,1430],{},[467,1428,1429],{},"Built-in tool",[467,1431,1432],{},"Icon",[480,1434,1435,1447,1459,1471,1482,1494,1506,1518],{},[464,1436,1437,1442],{},[485,1438,1439],{},[80,1440,1441],{},"search-documentation",[485,1443,1444],{},[80,1445,1446],{},"i-lucide-book-search",[464,1448,1449,1454],{},[485,1450,1451],{},[80,1452,1453],{},"get-documentation-page",[485,1455,1456],{},[80,1457,1458],{},"i-lucide-book-open",[464,1460,1461,1466],{},[485,1462,1463],{},[80,1464,1465],{},"search-composables",[485,1467,1468],{},[80,1469,1470],{},"i-lucide-braces",[464,1472,1473,1478],{},[485,1474,1475],{},[80,1476,1477],{},"search-icons",[485,1479,1480],{},[80,1481,1419],{},[464,1483,1484,1489],{},[485,1485,1486],{},[80,1487,1488],{},"list-examples",[485,1490,1491],{},[80,1492,1493],{},"i-lucide-codesandbox",[464,1495,1496,1501],{},[485,1497,1498],{},[80,1499,1500],{},"get-example",[485,1502,1503],{},[80,1504,1505],{},"i-lucide-codepen",[464,1507,1508,1513],{},[485,1509,1510],{},[80,1511,1512],{},"get-component",[485,1514,1515],{},[80,1516,1517],{},"i-lucide-box",[464,1519,1520,1525],{},[485,1521,1522],{},[80,1523,1524],{},"get-component-metadata",[485,1526,1527],{},[80,1528,1529],{},"i-lucide-file-code",[49,1531,1533],{"id":1532},"api","API",[60,1535,1537],{"id":1536},"components","Components",[10,1539,1540,1541,1543,1544,1546,1547,1549,1550,1553,1554,639],{},"None of these take props; they read ",[80,1542,452],{}," from ",[80,1545,273],{}," and ",[80,1548,873],{},". With AI Chat disabled they are all replaced by ",[80,1551,1552],{},"AiChatDisabled",", which renders an empty ",[80,1555,1556],{},"div",[458,1558,1559,1568],{},[461,1560,1561],{},[464,1562,1563,1566],{},[467,1564,1565],{},"Component",[467,1567,478],{},[480,1569,1570,1582,1591,1604],{},[464,1571,1572,1576],{},[485,1573,1574],{},[80,1575,434],{},[485,1577,1578,1579],{},"Button that opens or closes the panel; its tooltip comes from ",[80,1580,1581],{},"aiChat.texts.trigger",[464,1583,1584,1588],{},[485,1585,1586],{},[80,1587,438],{},[485,1589,1590],{},"The chat panel with messages, streaming, reasoning and tool calls",[464,1592,1593,1597],{},[485,1594,1595],{},[80,1596,1121],{},[485,1598,1599,1600,1603],{},"Floating input at the bottom of docs pages; its shortcut only responds on the ",[80,1601,1602],{},"docs"," layout",[464,1605,1606,1611],{},[485,1607,1608],{},[80,1609,1610],{},"AiChatModelSelect",[485,1612,1613,1614],{},"Model menu listing ",[80,1615,1616],{},"aiChat.models",[10,1618,1619],{},"To use them on a custom page, mount them the way the layer does:",[72,1621,1626],{"className":1622,"code":1623,"filename":1624,"language":1625,"meta":78,"style":78},"language-vue shiki shiki-themes github-light github-light github-dark","\u003Cscript setup lang=\"ts\">\nconst { isEnabled } = useAIChat()\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv>\n    \u003CAiChat \u002F>\n    \u003Ctemplate v-if=\"isEnabled\">\n      \u003CAiChatPanel \u002F>\n      \u003CClientOnly>\n        \u003CAiChatFloatingInput \u002F>\n      \u003C\u002FClientOnly>\n    \u003C\u002Ftemplate>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","app\u002Fpages\u002Fplayground.vue","vue",[80,1627,1628,1649,1671,1680,1684,1693,1702,1712,1732,1741,1750,1759,1768,1777,1786],{"__ignoreMap":78},[83,1629,1630,1632,1636,1639,1642,1644,1647],{"class":85,"line":86},[83,1631,1257],{"class":218},[83,1633,1635],{"class":1634},"sovSZ","script",[83,1637,1638],{"class":89}," setup",[83,1640,1641],{"class":89}," lang",[83,1643,223],{"class":218},[83,1645,1646],{"class":92},"\"ts\"",[83,1648,1401],{"class":218},[83,1650,1651,1654,1657,1660,1663,1665,1668],{"class":85,"line":215},[83,1652,1653],{"class":222},"const",[83,1655,1656],{"class":218}," { ",[83,1658,1659],{"class":419},"isEnabled",[83,1661,1662],{"class":218}," } ",[83,1664,223],{"class":222},[83,1666,1667],{"class":89}," useAIChat",[83,1669,1670],{"class":218},"()\n",[83,1672,1673,1676,1678],{"class":85,"line":229},[83,1674,1675],{"class":218},"\u003C\u002F",[83,1677,1635],{"class":1634},[83,1679,1401],{"class":218},[83,1681,1682],{"class":85,"line":236},[83,1683,233],{"emptyLinePlaceholder":232},[83,1685,1686,1688,1691],{"class":85,"line":242},[83,1687,1257],{"class":218},[83,1689,1690],{"class":1634},"template",[83,1692,1401],{"class":218},[83,1694,1695,1698,1700],{"class":85,"line":325},[83,1696,1697],{"class":218},"  \u003C",[83,1699,1556],{"class":1634},[83,1701,1401],{"class":218},[83,1703,1704,1707,1709],{"class":85,"line":333},[83,1705,1706],{"class":218},"    \u003C",[83,1708,434],{"class":1634},[83,1710,1711],{"class":218}," \u002F>\n",[83,1713,1714,1716,1718,1721,1723,1726,1728,1730],{"class":85,"line":339},[83,1715,1706],{"class":218},[83,1717,1690],{"class":1634},[83,1719,1720],{"class":222}," v-if",[83,1722,223],{"class":218},[83,1724,1725],{"class":92},"\"",[83,1727,1659],{"class":218},[83,1729,1725],{"class":92},[83,1731,1401],{"class":218},[83,1733,1734,1737,1739],{"class":85,"line":345},[83,1735,1736],{"class":218},"      \u003C",[83,1738,438],{"class":1634},[83,1740,1711],{"class":218},[83,1742,1743,1745,1748],{"class":85,"line":351},[83,1744,1736],{"class":218},[83,1746,1747],{"class":1634},"ClientOnly",[83,1749,1401],{"class":218},[83,1751,1752,1755,1757],{"class":85,"line":962},[83,1753,1754],{"class":218},"        \u003C",[83,1756,1121],{"class":1634},[83,1758,1711],{"class":218},[83,1760,1761,1764,1766],{"class":85,"line":968},[83,1762,1763],{"class":218},"      \u003C\u002F",[83,1765,1747],{"class":1634},[83,1767,1401],{"class":218},[83,1769,1770,1773,1775],{"class":85,"line":973},[83,1771,1772],{"class":218},"    \u003C\u002F",[83,1774,1690],{"class":1634},[83,1776,1401],{"class":218},[83,1778,1779,1782,1784],{"class":85,"line":979},[83,1780,1781],{"class":218},"  \u003C\u002F",[83,1783,1556],{"class":1634},[83,1785,1401],{"class":218},[83,1787,1788,1790,1792],{"class":85,"line":988},[83,1789,1675],{"class":218},[83,1791,1690],{"class":1634},[83,1793,1401],{"class":218},[60,1795,1797],{"id":1796},"useaichat",[80,1798,1801,1804],{"className":1799,"language":1800,"style":78},"language-ts-type shiki shiki-themes github-light github-light github-dark","ts-type",[83,1802,1803],{"class":89},"useAIChat",[83,1805,1806],{"class":218},"()",[10,1808,1809],{},"Chat state shared across the app.",[1811,1812,1813,1818,1825,1832,1837,1842],"field-group",{},[1814,1815,1817],"field",{"name":1659,"type":1816},"ComputedRef\u003Cboolean>","Whether AI Chat is enabled.",[1814,1819,1822,1823,639],{"name":1820,"type":1821},"isOpen","Ref\u003Cboolean>","Whether the panel is open, persisted to ",[80,1824,1155],{},[1814,1826,1829,1830,639],{"name":1827,"type":1828},"messages","Ref\u003CUIMessage[]>","Chat history, persisted to ",[80,1831,1155],{},[1814,1833,1836],{"name":1834,"type":1835},"currentPage","ComputedRef\u003Cstring>","Current route path, sent along with user messages.",[1814,1838,1841],{"name":1839,"type":1840},"open","(text: string) => void","Append a user message and open the panel.",[1814,1843,1846],{"name":1844,"type":1845},"toggleChat","() => void","Toggle the panel.",[72,1848,1850],{"className":271,"code":1849,"language":274,"meta":78,"style":78},"const { open } = useAIChat()\n\nopen('How do I enable multiple languages?')\n",[80,1851,1852,1868,1872],{"__ignoreMap":78},[83,1853,1854,1856,1858,1860,1862,1864,1866],{"class":85,"line":86},[83,1855,1653],{"class":222},[83,1857,1656],{"class":218},[83,1859,1839],{"class":419},[83,1861,1662],{"class":218},[83,1863,223],{"class":222},[83,1865,1667],{"class":89},[83,1867,1670],{"class":218},[83,1869,1870],{"class":85,"line":215},[83,1871,233],{"emptyLinePlaceholder":232},[83,1873,1874,1876,1878,1880],{"class":85,"line":229},[83,1875,1839],{"class":89},[83,1877,831],{"class":218},[83,1879,1040],{"class":92},[83,1881,1882],{"class":218},")\n",[60,1884,1886],{"id":1885},"usemodels",[80,1887,1888,1891],{"className":1799,"language":1800,"style":78},[83,1889,1890],{"class":89},"useModels",[83,1892,1806],{"class":218},[10,1894,1895],{},"The model list and the current selection.",[1811,1897,1898,1903,1913,1924],{},[1814,1899,1900,1901,639],{"name":364,"type":532},"The value of ",[80,1902,1616],{},[1814,1904,1906,1907,1909,1910,639],{"name":360,"type":1905},"Ref\u003Cstring>","Current model, stored in a cookie named ",[80,1908,360],{}," and defaulting to ",[80,1911,1912],{},"aiChat.model",[1814,1914,1917,1918,1920,1921,639],{"name":1915,"type":1916},"formatModelName","(modelId: string) => string","Strip the prefix and format a display name, e.g. ",[80,1919,648],{}," becomes ",[80,1922,1923],{},"Deepseek V4 Pro 0813",[1814,1925,1927,1928,1931],{"name":1926,"type":1916},"getModelIcon","Return the icon from ",[80,1929,1930],{},"aiChat.icons.providers"," for the id's prefix.",[60,1933,1935],{"id":1934},"usehighlighter",[80,1936,1937,1940],{"className":1799,"language":1800,"style":78},[83,1938,1939],{"class":89},"useHighlighter",[83,1941,1806],{"class":218},[10,1943,1944,1945,1948,1949,435,1951,435,1954,435,1957,435,1960,435,1963,435,1966,435,1969,1546,1972,1974,1975,1546,1978,1981],{},"Returns ",[80,1946,1947],{},"Promise\u003CHighlighterCore>",", the Shiki instance used for code blocks in the panel, loaded on demand and created once. It bundles ",[80,1950,1625],{},[80,1952,1953],{},"javascript",[80,1955,1956],{},"typescript",[80,1958,1959],{},"css",[80,1961,1962],{},"html",[80,1964,1965],{},"json",[80,1967,1968],{},"yaml",[80,1970,1971],{},"markdown",[80,1973,77],{},", with the ",[80,1976,1977],{},"github-light",[80,1979,1980],{},"github-dark"," themes, matching the code blocks in the docs.",[60,1983,1985],{"id":1984},"usetoolcallstate-toolname-input",[80,1986,1987,1989,1991,1993,1995,1997,1999,2001],{"className":1799,"language":1800,"style":78},[83,1988,1205],{"class":89},[83,1990,831],{"class":218},[83,1992,1230],{"class":840},[83,1994,435],{"class":218},[83,1996,1240],{"class":840},[83,1998,435],{"class":218},[83,2000,1249],{"class":840},[83,2002,2003],{"class":218},")",[10,2005,2006,2007,2010,2011,2013,2014,2017,2018,2020,2021,2024],{},"The extension point for tool call display, see ",[26,2008,1199],{"href":2009},"#tool-call-display",". ",[80,2012,1230],{}," is the AI SDK tool state (",[80,2015,2016],{},"'output-available'"," means finished), typed as ",[80,2019,513],{}," so the layer core does not depend on the optional ",[80,2022,2023],{},"ai"," package.",[2026,2027,2028],"style",{},"html pre.shiki code .snPdu, html code.shiki .snPdu{--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sIIMD, html code.shiki .sIIMD{--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sCsY4, html code.shiki .sCsY4{--shiki-light:#6A737D;--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .sxrX7, html code.shiki .sxrX7{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .s8jYJ, html code.shiki .s8jYJ{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sBjJW, html code.shiki .sBjJW{--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sP4rz, html code.shiki .sP4rz{--shiki-light:#E36209;--shiki-default:#E36209;--shiki-dark:#FFAB70}html pre.shiki code .siCUq, html code.shiki .siCUq{--shiki-icon-url:url(https:\u002F\u002Fapi.iconify.design\u002Fhugeicons\u002Fqwen.svg?color=%23000)}html pre.shiki code .sIu1a, html code.shiki .sIu1a{--shiki-icon-url:url(https:\u002F\u002Fapi.iconify.design\u002Flucide\u002Fbook-open.svg?color=%23000)}html pre.shiki code .sovSZ, html code.shiki .sovSZ{--shiki-light:#22863A;--shiki-default:#22863A;--shiki-dark:#85E89D}",{"title":78,"searchDepth":215,"depth":215,"links":2030},[2031,2037,2038,2041,2042,2043,2047],{"id":51,"depth":215,"text":52,"children":2032},[2033,2034,2035,2036],{"id":62,"depth":229,"text":63},{"id":199,"depth":229,"text":200},{"id":267,"depth":229,"text":268},{"id":376,"depth":229,"text":377},{"id":446,"depth":215,"text":447},{"id":587,"depth":215,"text":588,"children":2039},[2040],{"id":720,"depth":229,"text":721},{"id":864,"depth":215,"text":865},{"id":1095,"depth":215,"text":1096},{"id":1167,"depth":215,"text":1168,"children":2044},[2045,2046],{"id":1171,"depth":229,"text":1172},{"id":1198,"depth":229,"text":1199},{"id":1532,"depth":215,"text":1533,"children":2048},[2049,2050,2051,2053,2055],{"id":1536,"depth":229,"text":1537},{"id":1796,"depth":229,"text":442},{"id":1885,"depth":229,"text":2052},"useModels()",{"id":1934,"depth":229,"text":2054},"useHighlighter()",{"id":1984,"depth":229,"text":2056},"useToolCall(state, toolName, input)",null,"md",false,{},{"icon":2062},"i-lucide-bot","\u002Fen\u002Fdocs\u002Fai\u002Fai-chat",{"title":18,"description":15},{"loc":2063},"en\u002Fdocs\u002F3.ai\u002F1.ai-chat","JmaGpwztlasQQuSKhTdz31q6oeB4iZqiV7Rwwa07PxU",[2069],{"title":2070,"path":2071,"stem":2072,"children":2073,"page":2059},"Docs","\u002Fen\u002Fdocs","en\u002Fdocs",[2074,2101,2174,2203,2244,2291],{"title":2075,"path":2076,"stem":2077,"children":2078,"category":2057,"description":2057,"icon":2100},"Get Started","\u002Fen\u002Fdocs\u002Fgetting-started","en\u002Fdocs\u002F1.getting-started\u002F1.index",[2079,2082,2088,2094],{"title":2080,"path":2076,"stem":2077,"category":2057,"description":2081,"icon":1458},"Introduction","Build a Nuxt documentation site with built-in typography, navigation, search, SEO, and AI features.",{"title":2083,"path":2084,"stem":2085,"category":2057,"description":2086,"icon":2087},"Installation","\u002Fen\u002Fdocs\u002Fgetting-started\u002Finstallation","en\u002Fdocs\u002F1.getting-started\u002F2.installation","Start from an official template or add the layer to an existing Nuxt project. Compare setups and requirements.","i-lucide-download",{"title":2089,"path":2090,"stem":2091,"category":2057,"description":2092,"icon":2093},"Project Structure","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fproject-structure","en\u002Fdocs\u002F1.getting-started\u002F3.project-structure","See where content lives, how it becomes routes, and what each configuration file controls.","i-lucide-folder-tree",{"title":2095,"path":2096,"stem":2097,"category":2057,"description":2098,"icon":2099},"Migrating from v2","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fmigration","en\u002Fdocs\u002F1.getting-started\u002F4.migration","Upgrade from v2 to v3 with side-by-side examples for dependencies, content, configuration, and component overrides.","i-lucide-arrow-right-left","i-lucide-square-play",{"title":2102,"category":2057,"description":2057,"icon":2103,"path":2104,"stem":2105,"children":2106,"page":2059},"Guide","i-lucide-compass","\u002Fen\u002Fdocs\u002Fguide","en\u002Fdocs\u002F2.guide",[2107,2114,2121,2127,2133,2139,2145,2150,2156,2162,2168],{"title":2108,"path":2109,"stem":2110,"category":2111,"description":2112,"icon":2113},"Configuration Overview","\u002Fen\u002Fdocs\u002Fguide\u002Fconfiguration","en\u002Fdocs\u002F2.guide\u002F1.configuration","basics","Use nuxt.config.ts for build-time features and app.config.ts for UI, copy, and navigation.","i-lucide-settings",{"title":2115,"path":2116,"stem":2117,"category":2118,"description":2119,"icon":2120},"Troubleshooting","\u002Fen\u002Fdocs\u002Fguide\u002Ftroubleshooting","en\u002Fdocs\u002F2.guide\u002F10.troubleshooting","shipping","Troubleshoot missing dependencies, docs 404s, i18n, AI Chat, and other build or runtime errors.","i-lucide-life-buoy",{"title":2122,"path":2123,"stem":2124,"category":2118,"description":2125,"icon":2126},"FAQ","\u002Fen\u002Fdocs\u002Fguide\u002Ffaq","en\u002Fdocs\u002F2.guide\u002F11.faq","Find answers about runtime requirements, GitHub integration, AI providers, upgrades, and static hosting.","i-lucide-circle-help",{"title":2128,"path":2129,"stem":2130,"category":2111,"description":2131,"icon":2132},"Theme & Fonts","\u002Fen\u002Fdocs\u002Fguide\u002Ftheme","en\u002Fdocs\u002F2.guide\u002F2.theme","Customize the palette and heading fonts, add a CJK serif font, and configure visitor theme and motion preferences.","i-lucide-palette",{"title":2134,"path":2135,"stem":2136,"category":2111,"description":2137,"icon":2138},"Navigation & Categories","\u002Fen\u002Fdocs\u002Fguide\u002Fnavigation","en\u002Fdocs\u002F2.guide\u002F3.navigation","Configure header links, mobile menus, and sidebar groups, with localized links, navigation filtering, and search.","i-lucide-map",{"title":2140,"path":2141,"stem":2142,"category":2111,"description":2143,"icon":2144},"Feature Flags","\u002Fen\u002Fdocs\u002Fguide\u002Ffeatures","en\u002Fdocs\u002F2.guide\u002F4.features","Check which optional features are enabled by default, what they require, and what happens when you turn them off.","i-lucide-toggle-right",{"title":1168,"path":2146,"stem":2147,"category":1167,"description":2148,"icon":2149},"\u002Fen\u002Fdocs\u002Fguide\u002Fcustomization","en\u002Fdocs\u002F2.guide\u002F5.customization","Override the header, sidebars, and footer with same-named Vue components. See supported overrides and examples.","i-lucide-paintbrush",{"title":2151,"path":2152,"stem":2153,"category":1167,"description":2154,"icon":2155},"Pages & Layouts","\u002Fen\u002Fdocs\u002Fguide\u002Fpages","en\u002Fdocs\u002F2.guide\u002F6.pages","Generate landing, releases, and showcase pages from content, or create custom pages and layouts in app\u002Fpages.","i-lucide-layout-panel-top",{"title":2157,"path":2158,"stem":2159,"category":1167,"description":2160,"icon":2161},"Internationalization","\u002Fen\u002Fdocs\u002Fguide\u002Fi18n","en\u002Fdocs\u002F2.guide\u002F7.i18n","Use @nuxtjs\u002Fi18n to organize translated docs, override UI strings, and generate hreflang links.","i-lucide-languages",{"title":2163,"path":2164,"stem":2165,"category":1167,"description":2166,"icon":2167},"OG Images","\u002Fen\u002Fdocs\u002Fguide\u002Fog-image","en\u002Fdocs\u002F2.guide\u002F8.og-image","Generate social sharing images for your docs and configure the built-in template, CJK fonts, or custom cards.","i-lucide-image",{"title":2169,"path":2170,"stem":2171,"category":2118,"description":2172,"icon":2173},"Deployment","\u002Fen\u002Fdocs\u002Fguide\u002Fdeployment","en\u002Fdocs\u002F2.guide\u002F9.deployment","Deploy to Cloudflare, Vercel, Netlify, or Node.js, or generate a static site. Check build settings and hosting limits.","i-lucide-rocket",{"title":2175,"category":2057,"description":2057,"icon":2176,"path":2177,"stem":2178,"children":2179,"page":2059},"AI","i-lucide-sparkles","\u002Fen\u002Fdocs\u002Fai","en\u002Fdocs\u002F3.ai",[2180,2181,2185,2191,2197],{"title":18,"path":2063,"stem":2066,"category":2057,"description":15,"icon":2062},{"title":36,"path":35,"stem":2182,"category":2057,"description":2183,"icon":2184},"en\u002Fdocs\u002F3.ai\u002F2.mcp","Connect to the docs tools, resources, and prompts at \u002Fmcp, then configure or extend the server.","i-lucide-plug",{"title":2186,"path":2187,"stem":2188,"category":2057,"description":2189,"icon":2190},"Agent Skills","\u002Fen\u002Fdocs\u002Fai\u002Fskills","en\u002Fdocs\u002F3.ai\u002F3.skills","Publish Agent Skills from skills\u002F so readers can install them in supported AI assistants.","i-lucide-wand-sparkles",{"title":2192,"path":2193,"stem":2194,"category":2057,"description":2195,"icon":2196},"llms.txt","\u002Fen\u002Fdocs\u002Fai\u002Fllms-txt","en\u002Fdocs\u002F3.ai\u002F4.llms-txt","Organize the docs index in llms.txt and publish the full Markdown content in llms-full.txt.","i-lucide-file-text",{"title":2198,"path":2199,"stem":2200,"category":2057,"description":2201,"icon":2202},"Agent Discovery","\u002Fen\u002Fdocs\u002Fai\u002Fagent-discovery","en\u002Fdocs\u002F3.ai\u002F5.agent-discovery","Help AI agents discover and read the docs through Markdown, a sitemap, and \u002F.well-known endpoints.","i-lucide-radar",{"title":2204,"category":2057,"description":2057,"icon":2205,"path":2206,"stem":2207,"children":2208,"page":2059},"Writing","i-lucide-square-pilcrow","\u002Fen\u002Fdocs\u002Fwriting","en\u002Fdocs\u002F4.writing",[2209,2215,2221,2227,2232,2238],{"title":2210,"path":2211,"stem":2212,"category":2057,"description":2213,"icon":2214},"Markdown Syntax","\u002Fen\u002Fdocs\u002Fwriting\u002Fmarkdown-syntax","en\u002Fdocs\u002F4.writing\u002F1.markdown-syntax","See how Markdown headings, links, lists, tables, and blockquotes render in the docs.","i-lucide-heading",{"title":2216,"path":2217,"stem":2218,"category":2057,"description":2219,"icon":2220},"Code Blocks","\u002Fen\u002Fdocs\u002Fwriting\u002Fcode-blocks","en\u002Fdocs\u002F4.writing\u002F2.code-blocks","Label and highlight code blocks, then organize multi-file and package-manager examples.","i-lucide-square-code",{"title":2222,"path":2223,"stem":2224,"category":2057,"description":2225,"icon":2226},"MDC Components","\u002Fen\u002Fdocs\u002Fwriting\u002Fmdc-components","en\u002Fdocs\u002F4.writing\u002F3.mdc-components","Use MDC to add Nuxt UI callouts, cards, tabs, and other prose components to Markdown.","i-lucide-puzzle",{"title":2228,"path":2229,"stem":2230,"category":2057,"description":2231,"icon":2167},"Images and Video","\u002Fen\u002Fdocs\u002Fwriting\u002Fmedia","en\u002Fdocs\u002F4.writing\u002F4.media","Embed images and videos, provide light and dark screenshots, and write descriptive alt text.",{"title":2233,"path":2234,"stem":2235,"category":2057,"description":2236,"icon":2237},"Mermaid Diagrams","\u002Fen\u002Fdocs\u002Fwriting\u002Fmermaid","en\u002Fdocs\u002F4.writing\u002F5.mermaid","Enable Mermaid to render theme-aware flowcharts, sequence diagrams, and class diagrams from Markdown.","i-lucide-workflow",{"title":2239,"path":2240,"stem":2241,"category":2057,"description":2242,"icon":2243},"Content Components","\u002Fen\u002Fdocs\u002Fwriting\u002Fcontent-components","en\u002Fdocs\u002F4.writing\u002F6.content-components","Use the layer's content components to add animations, backgrounds, and landing sections in Markdown.","i-lucide-sparkle",{"title":1537,"category":2057,"description":2057,"icon":2245,"path":2246,"stem":2247,"children":2248,"page":2059},"i-lucide-component","\u002Fen\u002Fdocs\u002Fcomponents","en\u002Fdocs\u002F5.components",[2249,2255,2261,2267,2273,2279,2285],{"title":2250,"path":2251,"stem":2252,"category":2057,"description":2253,"icon":2254},"ComponentProps","\u002Fen\u002Fdocs\u002Fcomponents\u002Fcomponent-props","en\u002Fdocs\u002F5.components\u002F1.component-props","Generate a Vue props table with `:component-props`, using types, defaults, and descriptions from component metadata.","i-lucide-list",{"title":2256,"path":2257,"stem":2258,"category":2057,"description":2259,"icon":2260},"ComponentSlots","\u002Fen\u002Fdocs\u002Fcomponents\u002Fcomponent-slots","en\u002Fdocs\u002F5.components\u002F2.component-slots","Use `:component-slots` to list slot names, scoped parameter types, and descriptions from `defineSlots`.","i-lucide-layout-panel-left",{"title":2262,"path":2263,"stem":2264,"category":2057,"description":2265,"icon":2266},"ComponentEmits","\u002Fen\u002Fdocs\u002Fcomponents\u002Fcomponent-emits","en\u002Fdocs\u002F5.components\u002F3.component-emits","Use `:component-emits` to list event names, parameters, and descriptions from `defineEmits`.","i-lucide-radio-tower",{"title":2268,"path":2269,"stem":2270,"category":2057,"description":2271,"icon":2272},"ComponentExample","\u002Fen\u002Fdocs\u002Fcomponents\u002Fcomponent-example","en\u002Fdocs\u002F5.components\u002F4.component-example","Show a live Vue example and its highlighted source together with `:component-example`.","i-lucide-app-window",{"title":2274,"path":2275,"stem":2276,"category":2057,"description":2277,"icon":2278},"ComponentCode","\u002Fen\u002Fdocs\u002Fcomponents\u002Fcomponent-code","en\u002Fdocs\u002F5.components\u002F5.component-code","Use `::component-code` to adjust component props and generate a matching Vue snippet you can copy.","i-lucide-sliders-horizontal",{"title":2280,"path":2281,"stem":2282,"category":2057,"description":2283,"icon":2284},"CommitChangelog","\u002Fen\u002Fdocs\u002Fcomponents\u002Fcommit-changelog","en\u002Fdocs\u002F5.components\u002F6.commit-changelog","Use `:commit-changelog` to display GitHub commits for a component or file, grouped by release.","i-lucide-git-commit-horizontal",{"title":2286,"path":2287,"stem":2288,"category":2057,"description":2289,"icon":2290},"PageLastCommit","\u002Fen\u002Fdocs\u002Fcomponents\u002Fpage-last-commit","en\u002Fdocs\u002F5.components\u002F7.page-last-commit","Show the date, author, and message of the latest commit to a docs page's Markdown file.","i-lucide-history",{"title":2292,"category":2057,"description":2057,"icon":2293,"path":2294,"stem":2295,"children":2296,"page":2059},"Reference","i-lucide-book-marked","\u002Fen\u002Fdocs\u002Freference","en\u002Fdocs\u002F6.reference",[2297,2303,2309,2382],{"title":2298,"path":2299,"stem":2300,"category":2057,"description":2301,"icon":2302},"app.config Reference","\u002Fen\u002Fdocs\u002Freference\u002Fapp-config","en\u002Fdocs\u002F6.reference\u002F1.app-config","Look up app.config.ts fields, types, and defaults, with links to the relevant guides.","i-lucide-file-cog",{"title":2304,"path":2305,"stem":2306,"category":2057,"description":2307,"icon":2308},"nuxt.config Options","\u002Fen\u002Fdocs\u002Freference\u002Fnuxt-config","en\u002Fdocs\u002F6.reference\u002F2.nuxt-config","Look up the nuxt.config options and environment variables the layer reads at build time.","i-lucide-settings-2",{"title":2310,"category":2057,"description":2057,"icon":2311,"path":2312,"stem":2313,"children":2314,"page":2059},"Composables","i-lucide-square-function","\u002Fen\u002Fdocs\u002Freference\u002Fcomposables","en\u002Fdocs\u002F6.reference\u002F3.composables",[2315,2320,2326,2331,2336,2342,2348,2354,2360,2365,2371,2377],{"title":2316,"path":2317,"stem":2318,"category":2057,"description":2319,"icon":2161},"useMovkI18n","\u002Fen\u002Fdocs\u002Freference\u002Fcomposables\u002Fuse-movk-i18n","en\u002Fdocs\u002F6.reference\u002F3.composables\u002F1.use-movk-i18n","Read the current locale, translate UI strings, generate localized links, and find the active content collection.",{"title":2321,"path":2322,"stem":2323,"category":2057,"description":2324,"icon":2325},"useLocaleSeo","\u002Fen\u002Fdocs\u002Freference\u002Fcomposables\u002Fuse-locale-seo","en\u002Fdocs\u002F6.reference\u002F3.composables\u002F10.use-locale-seo","Generate hreflang, x-default, and og:locale tags for localized pages.","i-lucide-globe",{"title":2327,"path":2328,"stem":2329,"category":2057,"description":2330,"icon":1470},"useFetchComponentMeta","\u002Fen\u002Fdocs\u002Freference\u002Fcomposables\u002Fuse-fetch-component-meta","en\u002Fdocs\u002F6.reference\u002F3.composables\u002F11.use-fetch-component-meta","Read prop, slot, and event types and descriptions when component docs are enabled.",{"title":2332,"path":2333,"stem":2334,"category":2057,"description":2335,"icon":1529},"useFetchComponentExample","\u002Fen\u002Fdocs\u002Freference\u002Fcomposables\u002Fuse-fetch-component-example","en\u002Fdocs\u002F6.reference\u002F3.composables\u002F12.use-fetch-component-example","Read the source, file path, and name of a Vue example when component docs are enabled.",{"title":2337,"path":2338,"stem":2339,"category":2057,"description":2340,"icon":2341},"useDocsNavigation","\u002Fen\u002Fdocs\u002Freference\u002Fcomposables\u002Fuse-docs-navigation","en\u002Fdocs\u002F6.reference\u002F3.composables\u002F2.use-docs-navigation","Reuse the docs navigation tree loaded by the site shell in your own navigation components.","i-lucide-list-tree",{"title":2343,"path":2344,"stem":2345,"category":2057,"description":2346,"icon":2347},"useNavigation","\u002Fen\u002Fdocs\u002Freference\u002Fcomposables\u002Fuse-navigation","en\u002Fdocs\u002F6.reference\u002F3.composables\u002F3.use-navigation","Build section lists, grouped sidebars, and breadcrumbs from the docs navigation tree.","i-lucide-panel-left",{"title":2349,"path":2350,"stem":2351,"category":2057,"description":2352,"icon":2353},"useHeader","\u002Fen\u002Fdocs\u002Freference\u002Fcomposables\u002Fuse-header","en\u002Fdocs\u002F6.reference\u002F3.composables\u002F4.use-header","Read desktop and mobile header links or override the composable for dynamic navigation.","i-lucide-panel-top",{"title":2355,"path":2356,"stem":2357,"category":2057,"description":2358,"icon":2359},"useCategory","\u002Fen\u002Fdocs\u002Freference\u002Fcomposables\u002Fuse-category","en\u002Fdocs\u002F6.reference\u002F3.composables\u002F5.use-category","Read the category definitions that group and order pages in the sidebar.","i-lucide-folders",{"title":2361,"path":2362,"stem":2363,"category":2057,"description":2364,"icon":2132},"useTheme","\u002Fen\u002Fdocs\u002Freference\u002Fcomposables\u002Fuse-theme","en\u002Fdocs\u002F6.reference\u002F3.composables\u002F6.use-theme","Manage colors, radius, icons, and color mode, persist visitor preferences, and export theme settings.",{"title":2366,"path":2367,"stem":2368,"category":2057,"description":2369,"icon":2370},"useDocsRoute","\u002Fen\u002Fdocs\u002Freference\u002Fcomposables\u002Fuse-docs-route","en\u002Fdocs\u002F6.reference\u002F3.composables\u002F7.use-docs-route","Check whether the current route is a docs page, including routes with locale prefixes.","i-lucide-route",{"title":2372,"path":2373,"stem":2374,"category":2057,"description":2375,"icon":2376},"useDocsFilterConfig","\u002Fen\u002Fdocs\u002Freference\u002Fcomposables\u002Fuse-docs-filter-config","en\u002Fdocs\u002F6.reference\u002F3.composables\u002F8.use-docs-filter-config","Read sidebar filter settings, check visibility, and reuse the default filtering behavior.","i-lucide-list-filter",{"title":2378,"path":2379,"stem":2380,"category":2057,"description":2381,"icon":2272},"useDocsShell","\u002Fen\u002Fdocs\u002Freference\u002Fcomposables\u002Fuse-docs-shell","en\u002Fdocs\u002F6.reference\u002F3.composables\u002F9.use-docs-shell","Load locale-specific navigation and search data, and set the document language and direction.",{"title":2383,"path":2384,"stem":2385,"category":2057,"description":2386,"icon":2387},"A–Z Index","\u002Fen\u002Fdocs\u002Freference\u002Fa-z","en\u002Fdocs\u002F6.reference\u002F9.a-z","Find docs by their English titles, grouped by first letter.","i-lucide-list-ordered",{"data":2389,"body":2390},{},{"type":6,"children":2391},[2392],{"type":9,"tag":10,"props":2393,"children":2394},{},[2395],{"type":14,"value":2396},"Copyright © 2024 - 2026",[2398,2399],{"title":2169,"path":2170,"stem":2171,"description":2172,"icon":2173,"children":-1},{"title":36,"path":35,"stem":2182,"description":2183,"icon":2184,"children":-1},1796367088663,"2ce86a3d-28e5-414a-a0bc-737c9421d4b3"]