mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-15 11:47:54 +00:00
125 lines
46 KiB
HTML
125 lines
46 KiB
HTML
<!doctype html>
|
||
<html lang="zh-TW" dir="ltr" class="blog-wrapper blog-list-page plugin-blog plugin-id-default" data-has-hydrated="false">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="generator" content="Docusaurus v3.7.0">
|
||
<title data-rh="true">Blog | Bytedesk</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:image" content="https://www.weiyuai.cn/docs/zh-TW/img/docusaurus-social-card.jpg"><meta data-rh="true" name="twitter:image" content="https://www.weiyuai.cn/docs/zh-TW/img/docusaurus-social-card.jpg"><meta data-rh="true" property="og:url" content="https://www.weiyuai.cn/docs/zh-TW/blog"><meta data-rh="true" property="og:locale" content="zh_TW"><meta data-rh="true" property="og:locale:alternate" content="en"><meta data-rh="true" property="og:locale:alternate" content="zh_CN"><meta data-rh="true" name="docusaurus_locale" content="zh-TW"><meta data-rh="true" name="docsearch:language" content="zh-TW"><meta data-rh="true" property="og:title" content="Blog | Bytedesk"><meta data-rh="true" name="description" content="Blog"><meta data-rh="true" property="og:description" content="Blog"><meta data-rh="true" name="docusaurus_tag" content="blog_posts_list"><meta data-rh="true" name="docsearch:docusaurus_tag" content="blog_posts_list"><link data-rh="true" rel="icon" href="/docs/zh-TW/img/favicon.ico"><link data-rh="true" rel="canonical" href="https://www.weiyuai.cn/docs/zh-TW/blog"><link data-rh="true" rel="alternate" href="https://www.weiyuai.cn/docs/blog" hreflang="en"><link data-rh="true" rel="alternate" href="https://www.weiyuai.cn/docs/zh-CN/blog" hreflang="zh-CN"><link data-rh="true" rel="alternate" href="https://www.weiyuai.cn/docs/zh-TW/blog" hreflang="zh-TW"><link data-rh="true" rel="alternate" href="https://www.weiyuai.cn/docs/blog" hreflang="x-default"><script data-rh="true" type="application/ld+json">{"@context":"https://schema.org","@type":"Blog","@id":"https://www.weiyuai.cn/docs/zh-TW/blog","mainEntityOfPage":"https://www.weiyuai.cn/docs/zh-TW/blog","headline":"Blog","description":"Blog","blogPost":[{"@type":"BlogPosting","@id":"https://www.weiyuai.cn/docs/zh-TW/blog/qwen3","mainEntityOfPage":"https://www.weiyuai.cn/docs/zh-TW/blog/qwen3","url":"https://www.weiyuai.cn/docs/zh-TW/blog/qwen3","headline":"微语对接大模型Qwen3指南","name":"微语对接大模型Qwen3指南","description":"在本篇博客中,我们将介绍如何将微语客服系统对接通义千问Qwen3大模型,使您的客服系统拥有强大的AI能力。通过这个集成,您可以为用户提供更智能、更高效的自动化客服体验。","datePublished":"2025-04-30T00:00:00.000Z","author":{"@type":"Person","name":"Jack Ning","description":"Maintainer of Bytedesk","url":"https://github.com/pengjinning","image":"https://www.weiyuai.cn/assets/images/qrcode/wechat.png"},"keywords":[]},{"@type":"BlogPosting","@id":"https://www.weiyuai.cn/docs/zh-TW/blog/scan-to-login","mainEntityOfPage":"https://www.weiyuai.cn/docs/zh-TW/blog/scan-to-login","url":"https://www.weiyuai.cn/docs/zh-TW/blog/scan-to-login","headline":"扫码登录实现流程","name":"扫码登录实现流程","description":"- 桌面客户端生成唯一设备uid:deviceUid","datePublished":"2024-10-08T00:00:00.000Z","author":{"@type":"Person","name":"Jack Ning","description":"Maintainer of Bytedesk","url":"https://github.com/pengjinning","image":"https://www.weiyuai.cn/assets/images/qrcode/wechat.png"},"keywords":[]},{"@type":"BlogPosting","@id":"https://www.weiyuai.cn/docs/zh-TW/blog/welcome","mainEntityOfPage":"https://www.weiyuai.cn/docs/zh-TW/blog/welcome","url":"https://www.weiyuai.cn/docs/zh-TW/blog/welcome","headline":"Welcome","name":"Welcome","description":"Docusaurus blogging features are powered by the blog plugin.","datePublished":"2021-08-26T00:00:00.000Z","author":[{"@type":"Person","name":"Sébastien Lorber","description":"Docusaurus maintainer","url":"https://sebastienlorber.com","image":"https://github.com/slorber.png"},{"@type":"Person","name":"Yangshun Tay","description":"Front End Engineer @ Facebook","url":"https://github.com/yangshun","image":"https://github.com/yangshun.png"}],"keywords":[]},{"@type":"BlogPosting","@id":"https://www.weiyuai.cn/docs/zh-TW/blog/mdx-blog-post","mainEntityOfPage":"https://www.weiyuai.cn/docs/zh-TW/blog/mdx-blog-post","url":"https://www.weiyuai.cn/docs/zh-TW/blog/mdx-blog-post","headline":"MDX Blog Post","name":"MDX Blog Post","description":"Blog posts support Docusaurus Markdown features, such as MDX.","datePublished":"2021-08-01T00:00:00.000Z","author":{"@type":"Person","name":"Sébastien Lorber","description":"Docusaurus maintainer","url":"https://sebastienlorber.com","image":"https://github.com/slorber.png"},"keywords":[]},{"@type":"BlogPosting","@id":"https://www.weiyuai.cn/docs/zh-TW/blog/long-blog-post","mainEntityOfPage":"https://www.weiyuai.cn/docs/zh-TW/blog/long-blog-post","url":"https://www.weiyuai.cn/docs/zh-TW/blog/long-blog-post","headline":"Long Blog Post","name":"Long Blog Post","description":"This is the summary of a very long blog post,","datePublished":"2019-05-29T00:00:00.000Z","author":{"@type":"Person","name":"Yangshun Tay","description":"Front End Engineer @ Facebook","url":"https://github.com/yangshun","image":"https://github.com/yangshun.png"},"keywords":[]},{"@type":"BlogPosting","@id":"https://www.weiyuai.cn/docs/zh-TW/blog/first-blog-post","mainEntityOfPage":"https://www.weiyuai.cn/docs/zh-TW/blog/first-blog-post","url":"https://www.weiyuai.cn/docs/zh-TW/blog/first-blog-post","headline":"First Blog Post","name":"First Blog Post","description":"Lorem ipsum dolor sit amet...","datePublished":"2019-05-28T00:00:00.000Z","author":[{"@type":"Person","name":"Sébastien Lorber","description":"Docusaurus maintainer","url":"https://sebastienlorber.com","image":"https://github.com/slorber.png"},{"@type":"Person","name":"Yangshun Tay","description":"Front End Engineer @ Facebook","url":"https://github.com/yangshun","image":"https://github.com/yangshun.png"}],"keywords":[]}]}</script><link rel="alternate" type="application/rss+xml" href="/docs/zh-TW/blog/rss.xml" title="Bytedesk RSS Feed">
|
||
<link rel="alternate" type="application/atom+xml" href="/docs/zh-TW/blog/atom.xml" title="Bytedesk Atom Feed"><link rel="stylesheet" href="/docs/zh-TW/assets/css/styles.e5fc9141.css">
|
||
<script src="/docs/zh-TW/assets/js/runtime~main.2cabbd24.js" defer="defer"></script>
|
||
<script src="/docs/zh-TW/assets/js/main.7fa0eefe.js" defer="defer"></script>
|
||
</head>
|
||
<body class="navigation-with-keyboard">
|
||
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){try{return new URLSearchParams(window.location.search).get("docusaurus-theme")}catch(t){}}()||function(){try{return window.localStorage.getItem("theme")}catch(t){}}();t(null!==e?e:"light")}(),function(){try{const n=new URLSearchParams(window.location.search).entries();for(var[t,e]of n)if(t.startsWith("docusaurus-data-")){var a=t.replace("docusaurus-data-","data-");document.documentElement.setAttribute(a,e)}}catch(t){}}()</script><div id="__docusaurus"><div role="region" aria-label="跳至主要内容"><a class="skipToContent_BRq2" href="#__docusaurus_skipToContent_fallback">跳至主要内容</a></div><nav aria-label="主導航" class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Toggle navigation bar" aria-expanded="false" class="navbar__toggle clean-btn" type="button"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/docs/zh-TW/"><div class="navbar__logo"><img src="/docs/zh-TW/img/logo.png" alt="Bytedesk Logo" class="themedComponent_g26P themedComponent--light_Fatc"><img src="/docs/zh-TW/img/logo.png" alt="Bytedesk Logo" class="themedComponent_g26P themedComponent--dark_ZdDJ"></div><b class="navbar__title text--truncate">Bytedesk</b></a><a class="navbar__item navbar__link" href="/docs/zh-TW/docs/intro">Docs</a><a aria-current="page" class="navbar__item navbar__link navbar__link--active" href="/docs/zh-TW/blog">Blog</a><a href="https://www.weiyuai.cn/architecture.html" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link">Architecture<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_DnYJ"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a></div><div class="navbar__items navbar__items--right"><a href="https://github.com/bytedesk/bytedesk" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link">GitHub<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_DnYJ"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a><a href="https://www.weiyuai.cn/contact.html" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link">Contact<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_DnYJ"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a href="#" aria-haspopup="true" aria-expanded="false" role="button" class="navbar__link"><svg viewBox="0 0 24 24" width="20" height="20" aria-hidden="true" class="iconLanguage_Q5ad"><path fill="currentColor" d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"></path></svg>繁体中文</a><ul class="dropdown__menu"><li><a href="/docs/blog" target="_self" rel="noopener noreferrer" class="dropdown__link" lang="en">English</a></li><li><a href="/docs/zh-CN/blog" target="_self" rel="noopener noreferrer" class="dropdown__link" lang="zh-CN">简体中文</a></li><li><a href="/docs/zh-TW/blog" target="_self" rel="noopener noreferrer" class="dropdown__link dropdown__link--active" lang="zh-TW">繁体中文</a></li></ul></div><div class="toggle_iYXz colorModeToggle_zFcu"><button class="clean-btn toggleButton_D9J3 toggleButtonDisabled_TlKb" type="button" disabled="" title="切換淺色/暗黑模式(當前為淺色模式)" aria-label="切換淺色/暗黑模式(當前為淺色模式)" aria-live="polite" aria-pressed="false"><svg viewBox="0 0 24 24" width="24" height="24" class="lightToggleIcon_s7Qc"><path fill="currentColor" d="M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"></path></svg><svg viewBox="0 0 24 24" width="24" height="24" class="darkToggleIcon_A6fE"><path fill="currentColor" d="M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"></path></svg></button></div><div class="navbarSearchContainer_VRWw"></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div id="__docusaurus_skipToContent_fallback" class="main-wrapper mainWrapper_PGiE"><div class="container margin-vert--lg"><div class="row"><aside class="col col--3"><nav class="sidebar_Ij43 thin-scrollbar" aria-label="最近部落格文章導覽"><div class="sidebarItemTitle_KC0C margin-bottom--md">Recent posts</div><div role="group"><h3 class="yearGroupHeading_o15C">2025</h3><ul class="sidebarItemList_bFmn clean-list"><li class="sidebarItem_aygK"><a class="sidebarItemLink_P7Yt" href="/docs/zh-TW/blog/qwen3">微语对接大模型Qwen3指南</a></li></ul></div><div role="group"><h3 class="yearGroupHeading_o15C">2024</h3><ul class="sidebarItemList_bFmn clean-list"><li class="sidebarItem_aygK"><a class="sidebarItemLink_P7Yt" href="/docs/zh-TW/blog/scan-to-login">扫码登录实现流程</a></li></ul></div><div role="group"><h3 class="yearGroupHeading_o15C">2021</h3><ul class="sidebarItemList_bFmn clean-list"><li class="sidebarItem_aygK"><a class="sidebarItemLink_P7Yt" href="/docs/zh-TW/blog/welcome">Welcome</a></li><li class="sidebarItem_aygK"><a class="sidebarItemLink_P7Yt" href="/docs/zh-TW/blog/mdx-blog-post">MDX Blog Post</a></li></ul></div><div role="group"><h3 class="yearGroupHeading_o15C">2019</h3><ul class="sidebarItemList_bFmn clean-list"><li class="sidebarItem_aygK"><a class="sidebarItemLink_P7Yt" href="/docs/zh-TW/blog/long-blog-post">Long Blog Post</a></li></ul></div></nav></aside><main class="col col--7"><article class="margin-bottom--xl"><header><h2 class="title_BpF0"><a href="/docs/zh-TW/blog/qwen3">微语对接大模型Qwen3指南</a></h2><div class="container_cyiP margin-vert--md"><time datetime="2025-04-30T00:00:00.000Z">2025年4月30日</time> · <!-- -->閱讀時間約 8 分鐘</div><div class="margin-top--md margin-bottom--sm row"><div class="col col--12 authorCol_NNq5"><div class="avatar margin-bottom--sm"><a href="https://github.com/pengjinning" target="_blank" rel="noopener noreferrer" class="avatar__photo-link"><img class="avatar__photo authorImage_Wfk3" src="https://www.weiyuai.cn/assets/images/qrcode/wechat.png" alt="Jack Ning"></a><div class="avatar__intro authorDetails_Yf6O"><div class="avatar__name"><a href="https://github.com/pengjinning" target="_blank" rel="noopener noreferrer"><span class="authorName_DJtI">Jack Ning</span></a></div><small class="authorTitle_heuk" title="Maintainer of Bytedesk">Maintainer of Bytedesk</small><div class="authorSocials_PQJc"></div></div></div></div></div></header><div class="markdown"><p>在本篇博客中,我们将介绍如何将微语客服系统对接通义千问Qwen3大模型,使您的客服系统拥有强大的AI能力。通过这个集成,您可以为用户提供更智能、更高效的自动化客服体验。</p>
|
||
<h2 class="anchor anchorWithStickyNavbar_VsMM" id="qwen3大模型介绍">Qwen3大模型介绍<a href="#qwen3大模型介绍" class="hash-link" aria-label="Qwen3大模型介绍的直接連結" title="Qwen3大模型介绍的直接連結"></a></h2>
|
||
<p>通义千问Qwen3是阿里云推出的大型语言模型,具有强大的理解能力和生成能力。Qwen3系列模型在多轮对话、文本生成、问答解析等方面表现出色,非常适合客服场景应用。</p>
|
||
<h2 class="anchor anchorWithStickyNavbar_VsMM" id="一ollama安装qwen3">一、Ollama安装Qwen3<a href="#一ollama安装qwen3" class="hash-link" aria-label="一、Ollama安装Qwen3的直接連結" title="一、Ollama安装Qwen3的直接連結"></a></h2>
|
||
<p><a href="https://ollama.ai/" target="_blank" rel="noopener noreferrer">Ollama</a>是一个开源的大模型运行框架,可以在本地部署运行多种大型语言模型,包括Qwen3。下面是安装和配置步骤:</p>
|
||
<h3 class="anchor anchorWithStickyNavbar_VsMM" id="1-安装ollama">1. 安装Ollama<a href="#1-安装ollama" class="hash-link" aria-label="1. 安装Ollama的直接連結" title="1. 安装Ollama的直接連結"></a></h3>
|
||
<p>根据您的操作系统,选择相应的安装方法:</p>
|
||
<p><strong>MacOS</strong>:</p>
|
||
<div class="language-bash codeBlockContainer_L7ux theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_jCTj"><pre tabindex="0" class="prism-code language-bash codeBlock_r3IR thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_mPkQ"><span class="token-line" style="color:#393A34"><span class="token plain">curl -fsSL https://ollama.ai/install.sh | sh</span><br></span></code></pre><div class="buttonGroup_nEdo"><button type="button" aria-label="複製代碼至剪貼簿" title="複製" class="clean-btn"><span class="copyButtonIcons_uvEQ" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon__41q"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_UAYa"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
|
||
<p><strong>Linux</strong>:</p>
|
||
<div class="language-bash codeBlockContainer_L7ux theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_jCTj"><pre tabindex="0" class="prism-code language-bash codeBlock_r3IR thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_mPkQ"><span class="token-line" style="color:#393A34"><span class="token plain">curl -fsSL https://ollama.ai/install.sh | sh</span><br></span></code></pre><div class="buttonGroup_nEdo"><button type="button" aria-label="複製代碼至剪貼簿" title="複製" class="clean-btn"><span class="copyButtonIcons_uvEQ" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon__41q"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_UAYa"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
|
||
<p><strong>Windows</strong>:
|
||
从<a href="https://ollama.ai/download" target="_blank" rel="noopener noreferrer">Ollama官网</a>下载并安装Windows版本。</p>
|
||
<h3 class="anchor anchorWithStickyNavbar_VsMM" id="2-拉取qwen3模型">2. 拉取Qwen3模型<a href="#2-拉取qwen3模型" class="hash-link" aria-label="2. 拉取Qwen3模型的直接連結" title="2. 拉取Qwen3模型的直接連結"></a></h3>
|
||
<p>安装完成后,通过命令行拉取Qwen3模型:</p>
|
||
<div class="language-bash codeBlockContainer_L7ux theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_jCTj"><pre tabindex="0" class="prism-code language-bash codeBlock_r3IR thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_mPkQ"><span class="token-line" style="color:#393A34"><span class="token plain"># 拉取Qwen3 5B模型</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">ollama pull qwen3:5b</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"># 如果需要更大参数的模型,也可以选择其他版本</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"># ollama pull qwen3:7b</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"># ollama pull qwen3:14b</span><br></span></code></pre><div class="buttonGroup_nEdo"><button type="button" aria-label="複製代碼至剪貼簿" title="複製" class="clean-btn"><span class="copyButtonIcons_uvEQ" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon__41q"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_UAYa"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
|
||
<h3 class="anchor anchorWithStickyNavbar_VsMM" id="3-验证模型安装">3. 验证模型安装<a href="#3-验证模型安装" class="hash-link" aria-label="3. 验证模型安装的直接連結" title="3. 验证模型安装的直接連結"></a></h3>
|
||
<p>通过以下命令验证Qwen3模型是否安装成功:</p>
|
||
<div class="language-bash codeBlockContainer_L7ux theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_jCTj"><pre tabindex="0" class="prism-code language-bash codeBlock_r3IR thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_mPkQ"><span class="token-line" style="color:#393A34"><span class="token plain">ollama list</span><br></span></code></pre><div class="buttonGroup_nEdo"><button type="button" aria-label="複製代碼至剪貼簿" title="複製" class="clean-btn"><span class="copyButtonIcons_uvEQ" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon__41q"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_UAYa"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
|
||
<p>您应该能看到已下载的qwen3模型列表。</p>
|
||
<h3 class="anchor anchorWithStickyNavbar_VsMM" id="4-启动ollama服务">4. 启动Ollama服务<a href="#4-启动ollama服务" class="hash-link" aria-label="4. 启动Ollama服务的直接連結" title="4. 启动Ollama服务的直接連結"></a></h3>
|
||
<p>确保Ollama服务正在运行:</p>
|
||
<div class="language-bash codeBlockContainer_L7ux theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_jCTj"><pre tabindex="0" class="prism-code language-bash codeBlock_r3IR thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_mPkQ"><span class="token-line" style="color:#393A34"><span class="token plain"># 在某些系统上,安装后会自动启动服务</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"># 如果没有自动启动,请使用以下命令</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">ollama serve</span><br></span></code></pre><div class="buttonGroup_nEdo"><button type="button" aria-label="複製代碼至剪貼簿" title="複製" class="clean-btn"><span class="copyButtonIcons_uvEQ" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon__41q"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_UAYa"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
|
||
<p>默认情况下,Ollama服务会在<code>http://localhost:11434</code>端口运行。</p>
|
||
<h2 class="anchor anchorWithStickyNavbar_VsMM" id="二在微语管理后台设置qwen3对话模型">二、在微语管理后台设置Qwen3对话模型<a href="#二在微语管理后台设置qwen3对话模型" class="hash-link" aria-label="二、在微语管理后台设置Qwen3对话模型的直接連結" title="二、在微语管理后台设置Qwen3对话模型的直接連結"></a></h2>
|
||
<p>完成Ollama和Qwen3模型的安装后,我们需要在微语管理后台进行配置:</p>
|
||
<h3 class="anchor anchorWithStickyNavbar_VsMM" id="1-登录微语管理后台">1. 登录微语管理后台<a href="#1-登录微语管理后台" class="hash-link" aria-label="1. 登录微语管理后台的直接連結" title="1. 登录微语管理后台的直接連結"></a></h3>
|
||
<p>访问您的微语管理后台,输入账号和密码登录系统。</p>
|
||
<h3 class="anchor anchorWithStickyNavbar_VsMM" id="2-导航到ai设置">2. 导航到AI设置<a href="#2-导航到ai设置" class="hash-link" aria-label="2. 导航到AI设置的直接連結" title="2. 导航到AI设置的直接連結"></a></h3>
|
||
<p>在左侧导航栏中,找到并点击"AI助手"或"大模型设置"选项。</p>
|
||
<h3 class="anchor anchorWithStickyNavbar_VsMM" id="3-添加qwen3模型配置">3. 添加Qwen3模型配置<a href="#3-添加qwen3模型配置" class="hash-link" aria-label="3. 添加Qwen3模型配置的直接連結" title="3. 添加Qwen3模型配置的直接連結"></a></h3>
|
||
<p>在AI设置页面中:</p>
|
||
<ol>
|
||
<li>
|
||
<p>点击"添加新模型"或"新建配置"按钮</p>
|
||
</li>
|
||
<li>
|
||
<p>选择模型类型为"Qwen3"</p>
|
||
</li>
|
||
<li>
|
||
<p>填写配置信息:</p>
|
||
<ul>
|
||
<li>模型名称:自定义一个便于识别的名称,如"Qwen3助手"</li>
|
||
<li>接口地址:填写<code>http://localhost:11434/api/chat</code>(如果Ollama在远程服务器上,请替换localhost为相应IP)</li>
|
||
<li>模型标识:输入<code>qwen3:5b</code>(或您安装的其他版本)</li>
|
||
<li>温度参数:建议设置为0.7(可根据需要调整,较低值更精确,较高值更创造性)</li>
|
||
<li>系统提示词:可以设置默认的AI人设,例如"你是微语客服系统的智能助手,请用专业、友善的口 |