1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9143],{76044:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>t,contentTitle:()=>d,default:()=>x,frontMatter:()=>l,metadata:()=>r,toc:()=>o});var i=s(74848),c=s(28453);const l={sidebar_position:13,title:"\ud83d\udd30 \u53ef\u81ea\u5b9a\u4e49\u6a2a\u5e45"},d=void 0,r={id:"features/banners",title:"\ud83d\udd30 \u53ef\u81ea\u5b9a\u4e49\u6a2a\u5e45",description:"\u6982\u8ff0",source:"@site/i18n/cn/docusaurus-plugin-content-docs/current/features/banners.md",sourceDirName:"features",slug:"/features/banners",permalink:"/features/banners",draft:!1,unlisted:!1,editUrl:"https://github.com/open-webui/docs/blob/main/docs/features/banners.md",tags:[],version:"current",sidebarPosition:13,frontMatter:{sidebar_position:13,title:"\ud83d\udd30 \u53ef\u81ea\u5b9a\u4e49\u6a2a\u5e45"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd0e \u68c0\u7d22\u589e\u5f3a\u751f\u6210 (RAG)",permalink:"/features/rag"},next:{title:"\ud83e\ude9d Webhook \u96c6\u6210",permalink:"/features/webhooks"}},t={},o=[{value:"\u6982\u8ff0",id:"\u6982\u8ff0",level:2},{value:"\u901a\u8fc7\u7ba1\u7406\u9762\u677f\u914d\u7f6e\u6a2a\u5e45",id:"\u901a\u8fc7\u7ba1\u7406\u9762\u677f\u914d\u7f6e\u6a2a\u5e45",level:2},{value:"\u901a\u8fc7\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u6a2a\u5e45",id:"\u901a\u8fc7\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u6a2a\u5e45",level:2},{value:"\u73af\u5883\u53d8\u91cf\u63cf\u8ff0",id:"\u73af\u5883\u53d8\u91cf\u63cf\u8ff0",level:2},{value:"\u6a2a\u5e45\u9009\u9879",id:"\u6a2a\u5e45\u9009\u9879",level:2},{value:"\u5e38\u89c1\u95ee\u9898",id:"\u5e38\u89c1\u95ee\u9898",level:2}];function h(e){const n={a:"a",code:"code",h2:"h2",li:"li",ol:"ol",p:"p",pre:"pre",ul:"ul",...(0,c.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h2,{id:"\u6982\u8ff0",children:"\u6982\u8ff0"}),"\n",(0,i.jsxs)(n.p,{children:["Open WebUI \u63d0\u4f9b\u4e86\u4e00\u4e2a\u529f\u80fd\uff0c\u5141\u8bb8\u7ba1\u7406\u5458\u521b\u5efa\u5177\u6709\u5728 ",(0,i.jsx)(n.code,{children:"config.json"})," \u6587\u4ef6\u4e2d\u6301\u4e45\u6027\u7684\u53ef\u81ea\u5b9a\u4e49\u6a2a\u5e45\u3002\u8fd9\u4e9b\u6a2a\u5e45\u53ef\u4ee5\u5177\u6709\u5185\u5bb9\u3001\u80cc\u666f\u989c\u8272\uff08\u4fe1\u606f\u3001\u8b66\u544a\u3001\u9519\u8bef\u6216\u6210\u529f\uff09\u548c\u53ef\u5173\u95ed\u6027\u7684\u9009\u9879\u3002\u6a2a\u5e45\u4ec5\u5bf9\u5df2\u767b\u5f55\u7528\u6237\u53ef\u8bbf\u95ee\uff0c\u786e\u4fdd\u654f\u611f\u4fe1\u606f\u7684\u673a\u5bc6\u6027\u3002"]}),"\n",(0,i.jsx)(n.h2,{id:"\u901a\u8fc7\u7ba1\u7406\u9762\u677f\u914d\u7f6e\u6a2a\u5e45",children:"\u901a\u8fc7\u7ba1\u7406\u9762\u677f\u914d\u7f6e\u6a2a\u5e45"}),"\n",(0,i.jsx)(n.p,{children:"\u8981\u901a\u8fc7\u7ba1\u7406\u9762\u677f\u914d\u7f6e\u6a2a\u5e45\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a"}),"\n",(0,i.jsxs)(n.ol,{children:["\n",(0,i.jsx)(n.li,{children:"\u4f5c\u4e3a\u7ba1\u7406\u5458\u767b\u5f55\u5230\u60a8\u7684 Open WebUI \u5b9e\u4f8b\u3002"}),"\n",(0,i.jsxs)(n.li,{children:["\u5bfc\u822a\u5230 ",(0,i.jsx)(n.code,{children:"\u7ba1\u7406\u9762\u677f"})," -> ",(0,i.jsx)(n.code,{children:"\u8bbe\u7f6e"})," -> ",(0,i.jsx)(n.code,{children:"\u754c\u9762"}),"\u3002"]}),"\n",(0,i.jsxs)(n.li,{children:["\u5728 ",(0,i.jsx)(n.code,{children:"\u9ed8\u8ba4\u63d0\u793a\u5efa\u8bae"})," \u9009\u9879\u6b63\u4e0a\u65b9\u627e\u5230 ",(0,i.jsx)(n.code,{children:"\u6a2a\u5e45"})," \u9009\u9879\u3002"]}),"\n",(0,i.jsxs)(n.li,{children:["\u70b9\u51fb ",(0,i.jsx)(n.code,{children:"+"})," \u56fe\u6807\u6dfb\u52a0\u65b0\u6a2a\u5e45\u3002"]}),"\n",(0,i.jsx)(n.li,{children:"\u9009\u62e9\u6a2a\u5e45\u7c7b\u578b\u5e76\u6839\u636e\u9700\u8981\u8bbe\u7f6e\u6a2a\u5e45\u6587\u672c\u3002"}),"\n",(0,i.jsx)(n.li,{children:"\u9009\u62e9\u6a2a\u5e45\u662f\u5426\u53ef\u5173\u95ed\u3002"}),"\n",(0,i.jsx)(n.li,{children:"\u4e3a\u6a2a\u5e45\u8bbe\u7f6e\u65f6\u95f4\u6233\uff08\u53ef\u9009\uff09\u3002"}),"\n",(0,i.jsxs)(n.li,{children:["\u6309\u9875\u9762\u5e95\u90e8\u7684 ",(0,i.jsx)(n.code,{children:"\u4fdd\u5b58"})," \u4fdd\u5b58\u6a2a\u5e45\u3002"]}),"\n"]}),"\n",(0,i.jsx)(n.h2,{id:"\u901a\u8fc7\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u6a2a\u5e45",children:"\u901a\u8fc7\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u6a2a\u5e45"}),"\n",(0,i.jsxs)(n.p,{children:["\u6216\u8005\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u6a2a\u5e45\u3002\u4e3a\u6b
164\uff0c\u60a8\u9700\u8981\u4f7f\u7528\u4ee5\u4e0b\u683c\u5f0f\u7684\u5b57\u5178\u5217\u8868\u8bbe\u7f6e ",(0,i.jsx)(n.code,{children:"WEBUI_BANNERS"})," \u73af\u5883\u53d8\u91cf\uff1a"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-json",children:'[{"id": "string","type": "string [info, success, warning, error]","title": "string","content": "string","dismissible": False,"timestamp": 1000}]\n'})}),"\n",(0,i.jsxs)(n.p,{children:["\u6709\u5173\u5728 Open WebUI \u4e2d\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u7684\u66f4\u591a\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605",(0,i.jsx)(n.a,{href:"https://docs.openwebui.com/getting-started/env-configuration#webui_banners",children:"\u73af\u5883\u53d8\u91cf\u914d\u7f6e"}),"\u3002"]}),"\n",(0,i.jsx)(n.h2,{id:"\u73af\u5883\u53d8\u91cf\u63cf\u8ff0",children:"\u73af\u5883\u53d8\u91cf\u63cf\u8ff0"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"WEBUI_BANNERS"}),":","\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsx)(n.li,{children:"\u7c7b\u578b: dict \u5217\u8868"}),"\n",(0,i.jsxs)(n.li,{children:["\u9ed8\u8ba4\u503c: ",(0,i.jsx)(n.code,{children:"[]"})]}),"\n",(0,i.jsx)(n.li,{children:"\u63cf\u8ff0: \u8981\u5411\u7528\u6237\u663e\u793a\u7684\u6a2a\u5e45\u5217\u8868\u3002"}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,i.jsx)(n.h2,{id:"\u6a2a\u5e45\u9009\u9879",children:"\u6a2a\u5e45\u9009\u9879"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"id"}),": \u6a2a\u5e45\u7684\u552f\u4e00\u6807\u8bc6\u7b26\u3002"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"type"}),": \u6a2a\u5e45\u7684\u80cc\u666f\u989c\u8272\uff08info\u3001success\u3001warning\u3001error\uff09\u3002"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"title"}),": \u6a2a\u5e45\u7684\u6807\u9898\u3002"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"content"}),": \u6a2a\u5e45\u7684\u5185\u5bb9\u3002"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"dismissible"}),": \u6a2a\u5e45\u662f\u5426\u53ef\u5173\u95ed\u3002"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"timestamp"}),": \u6a2a\u5e45\u7684\u65f6\u95f4\u6233\uff08\u53ef\u9009\uff09\u3002"]}),"\n"]}),"\n",(0,i.jsx)(n.h2,{id:"\u5e38\u89c1\u95ee\u9898",children:"\u5e38\u89c1\u95ee\u9898"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["\u95ee\uff1a\u6211\u53ef\u4ee5\u901a\u8fc7\u7ba1\u7406\u9762\u677f\u914d\u7f6e\u6a2a\u5e45\u5417\uff1f\n\u7b54\uff1a\u662f\u7684\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u5bfc\u822a\u5230 ",(0,i.jsx)(n.code,{children:"\u7ba1\u7406\u9762\u677f"})," -> ",(0,i.jsx)(n.code,{children:"\u8bbe\u7f6e"})," -> ",(0,i.jsx)(n.code,{children:"\u754c\u9762"})," \u5e76\u70b9\u51fb ",(0,i.jsx)(n.code,{children:"+"})," \u56fe\u6807\u6dfb\u52a0\u65b0\u6a2a\u5e45\u6765\u901a\u8fc7\u7ba1\u7406\u9762\u677f\u914d\u7f6e\u6a2a\u5e45\u3002"]}),"\n",(0,i.jsxs)(n.li,{children:["\u95ee\uff1a\u6211\u53ef\u4ee5\u901a\u8fc7\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u6a2a\u5e45\u5417\uff1f\n\u7b54\uff1a\u662f\u7684\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u5b57\u5178\u5217\u8868\u8bbe\u7f6e ",(0,i.jsx)(n.code,{children:"WEBUI_BANNERS"})," \u73af\u5883\u53d8\u91cf\u6765\u901a\u8fc7\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u6a2a\u5e45\u3002"]}),"\n",(0,i.jsxs)(n.li,{children:["\u95ee\uff1a",(0,i.jsx)(n.code,{children:"WEBUI_BANNERS"})," \u73af\u5883\u53d8\u91cf\u7684\u683c\u5f0f\u662f\u4ec0\u4e48\uff1f\n\u7b54\uff1a",(0,i.jsx)(n.code,{children:"WEBUI_BANNERS"})," \u73af\u5883\u53d8\u91cf\u7684\u683c\u5f0f\u662f\u5177\u6709\u4ee5\u4e0b\u952e\u7684\u5b57\u5178\u5217\u8868\uff1a",(0,i.jsx)(n.code,{children:"id"}),"\u3001",(0,i.jsx)(n.code,{children:"type"}),"\u3001",(0,i.jsx)(n.code,{children:"title"}),"\u3001",(0,i.jsx)(n.code,{children:"content"}),"\u3001",(0,i.jsx)(n.code,{children:"dismissible"})," \u548c ",(0,i.jsx)(n.code,{children:"timestamp"}),"\u3002"]}),"\n",(0,i.jsxs)(n.li,{children:["\u95ee\uff1a\u6211\u53ef\u4ee5\u8ba9\u6a2a\u5e45\u53ef\u5173\u95ed\u5417\uff1f\n\u7b54\uff1a\u662f\u7684\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u5728\u6a2a\u5e45\u914d\u7f6e\u4e2d\u5c06 ",(0,i.jsx)(n.code,{children:"dismissible"})," \u952e\u8bbe\u7f6e\u4e3a ",(0,i.jsx)(n.code,{children:"True"})," \u6216\u5728 UI \u4e2d\u5207\u6362\u6a2a\u5e45\u7684\u53ef\u5173\u95ed\u6027\u6765\u8ba9\u6a2a\u5e45\u53ef\u5173\u95ed\u3002"]}),"\n"]})]})}function x(e={}){const{wrapper:n}={...(0,c.R)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(h,{...e})}):h(e)}},28453:(e,n,s)=>{s.d(n,{R:()=>d,x:()=>r});var i=s(96540);const c={},l=i.createContext(c);function d(e){const n=i.useContext(l);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function r(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(c):e.components||c:d(e.components),i.createElement(l.Provider,{value:n},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.